usb: typec: intel_pmc_mux: Use correct response message bits
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Thu, 3 Dec 2020 22:08:13 +0000 (14:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Dec 2020 13:37:33 +0000 (14:37 +0100)
commit3a288efb08543b1368f8d49342e5943f1adf58ea
tree626ee000e0bd3dd523ec0f35c410f89c2b5bc4ab
parentd6ff32478d7e95d6ca199b5c852710d6964d5811
usb: typec: intel_pmc_mux: Use correct response message bits

When Intel PMC Mux agent driver receives the response message from PMC, it
checks for the same response bits for all the mux states.
Corrected it by checking correct response message bits, Bit 8 & 9 for the
SAFE Mode and Alternate Modes and Bit 16 & 17 for the Connect and
Disconnect Modes.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Link: https://lore.kernel.org/r/20201203220813.16281-1-utkarsh.h.patel@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c