]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
platform/chrome: cros_ec_typec: Skip port partner check in configure_mux()
authorRajmohan Mani <rajmohan.mani@intel.com>
Fri, 5 Feb 2021 19:51:12 +0000 (11:51 -0800)
committerBenson Leung <bleung@chromium.org>
Sat, 6 Feb 2021 00:41:00 +0000 (16:41 -0800)
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>
drivers/platform/chrome/cros_ec_typec.c

index 91b8fc1fd7f3c49d0f0c3361ea8bd6965429ed79..6c7180a9a2e52412d925d630ffb5f20420d43fab 100644 (file)
@@ -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