usb: typec: intel_pmc_mux: Pass correct USB Type-C port number to SoC
authorAzhar Shaikh <azhar.shaikh@intel.com>
Wed, 16 Sep 2020 09:11:01 +0000 (12:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Sep 2020 10:42:36 +0000 (12:42 +0200)
commit8dba20101aaf67462934e40cb5e6c3641f87d460
tree3732210408c7b5a980f9ee1fa92cfa263d9ff5d3
parentfca3d66982f08c436bff8f037142ad664ef376a8
usb: typec: intel_pmc_mux: Pass correct USB Type-C port number to SoC

The SoC expects the USB Type-C ports numbers to be starting with 0.
If the port number is passed as it is, the IOM status will not be
updated. The IOM port status check fails which will eventually
lead to PMC IPC communication failure.

Fixes: 43d596e32276 ("usb: typec: intel_pmc_mux: Check the port status before connect")
Suggested-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Signed-off-by: Azhar Shaikh <azhar.shaikh@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200916091102.27118-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c