usb: typec: intel_pmc_mux: Handle SCU IPC error conditions
authorMadhusudanarao Amara <madhusudanarao.amara@intel.com>
Wed, 16 Sep 2020 09:11:02 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 11:09:31 +0000 (13:09 +0200)
commitd69030c91b3765934048151792f141f0571efa86
treed8d77241cd419efc4420cc717547378e2ee6bf3a
parentbcea6dafeeef7d1a6a8320a249aabf981d63b881
usb: typec: intel_pmc_mux: Handle SCU IPC error conditions

Check and return if there are errors. The response bits are valid
only on no errors.

Fixes: b7404a29cd3d ("usb: typec: intel_pmc_mux: Definitions for response status bits")
Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200916091102.27118-4-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c