summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorRajmohan Mani <rajmohan.mani@intel.com>2021-02-05 20:51:12 +0100
committerBenson Leung <bleung@chromium.org>2021-02-06 01:41:00 +0100
commit38f56061c892c237ad4ee733cf3981a84f6b6aea (patch)
tree95d38e784b1f3771ca2b6c8c7bd8e5126a30fa7d /drivers/platform
parentplatform/chrome: cros_ec_typec: Decouple partner removal (diff)
downloadlinux-38f56061c892c237ad4ee733cf3981a84f6b6aea.tar.xz
linux-38f56061c892c237ad4ee733cf3981a84f6b6aea.zip
platform/chrome: cros_ec_typec: Skip port partner check in configure_mux()
For certain needs like updating the USB4 retimer firmware when no device are connected, the Type-C ports require mux configuration, to be able to communicate with the retimer. So removed the above check to allow for mux configuration of Type-C ports, to enable retimer communication. Signed-off-by: Rajmohan Mani <rajmohan.mani@intel.com> Reviewed-by: Prashant Malani <pmalani@chromium.org> Link: https://lore.kernel.org/r/20210205195113.20277-2-rajmohan.mani@intel.com Signed-off-by: Benson Leung <bleung@chromium.org>
Diffstat (limited to 'drivers/platform')
-rw-r--r--drivers/platform/chrome/cros_ec_typec.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c
index 91b8fc1fd7f3..6c7180a9a2e5 100644
--- a/drivers/platform/chrome/cros_ec_typec.c
+++ b/drivers/platform/chrome/cros_ec_typec.c
@@ -536,9 +536,6 @@ static int cros_typec_configure_mux(struct cros_typec_data *typec, int port_num,
enum typec_orientation orientation;
int ret;
- if (!port->partner)
- return 0;
-
if (mux_flags & USB_PD_MUX_POLARITY_INVERTED)
orientation = TYPEC_ORIENTATION_REVERSE;
else