From: Rajmohan Mani Date: Fri, 5 Feb 2021 19:51:12 +0000 (-0800) Subject: platform/chrome: cros_ec_typec: Skip port partner check in configure_mux() X-Git-Tag: v5.12-rc1~112^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=38f56061c892c237ad4ee733cf3981a84f6b6aea;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Prashant Malani Link: https://lore.kernel.org/r/20210205195113.20277-2-rajmohan.mani@intel.com Signed-off-by: Benson Leung --- diff --git a/drivers/platform/chrome/cros_ec_typec.c b/drivers/platform/chrome/cros_ec_typec.c index 91b8fc1fd7f3c..6c7180a9a2e52 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