]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: intel_pmc_mux: Do not configure Altmode HPD High
authorUtkarsh Patel <utkarsh.h.patel@intel.com>
Mon, 7 Sep 2020 14:21:51 +0000 (17:21 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Sep 2020 15:04:59 +0000 (17:04 +0200)
commit1dbb1567606ee90191006ccdecc821504be109b5
tree561dd076854b596b66148ac1e18cc7af397763e7
parent4dcde73917e594135d85b96a46827601628d2370
usb: typec: intel_pmc_mux: Do not configure Altmode HPD High

According to the PMC Type C Subsystem (TCSS) Mux programming guide rev
0.7, bit 14 is reserved in Alternate mode.
In DP Alternate Mode state, if the HPD_STATE (bit 7) field in the
status update command VDO is set to HPD_HIGH, HPD is configured via
separate HPD mode request after configuring DP Alternate mode request.
Configuring reserved bit may show unexpected behaviour.
So do not configure them while issuing the Alternate Mode request.

Fixes: fe2cb83abad4 ("usb: typec: mux: intel: Handle alt mode HPD_HIGH")
Cc: stable@vger.kernel.org
Signed-off-by: Utkarsh Patel <utkarsh.h.patel@intel.com>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200907142152.35678-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c