]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
usb: typec: intel_pmc_mux: Do not configure SBU and HSL Orientation in Alternate...
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Mon, 7 Sep 2020 14:21:52 +0000 (17:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Sep 2020 15:05:02 +0000 (17:05 +0200)
commit7c6bbdf086ac7f1374bcf1ef0994b15109ecaf48
tree507cd275697e98dc95bd191e16d92235c40f26b2
parent294955fd43dbf1e8f3a84cffa4797c6f22badc31
usb: typec: intel_pmc_mux: Do not configure SBU and HSL Orientation in Alternate modes

According to the PMC Type C Subsystem (TCSS) Mux programming guide rev
0.7, bits 4 and 5 are reserved in Alternate modes.
SBU Orientation and HSL Orientation needs to be configured only during
initial cable detection in USB connect flow based on device property of
"sbu-orientation" and "hsl-orientation".
Configuring these reserved bits in the Alternate modes may result in delay
in display link training or some unexpected behaviour.
So do not configure them while issuing Alternate Mode requests.

Fixes: ff4a30d5e243 ("usb: typec: mux: intel_pmc_mux: Support for static SBU/HSL orientation")
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200907142152.35678-3-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c