]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: mux: intel: Handle alt mode HPD_HIGH
authorPrashant Malani <pmalani@chromium.org>
Wed, 29 Apr 2020 05:44:28 +0000 (22:44 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 11:06:46 +0000 (13:06 +0200)
commitfe2cb83abad4f96ddf8ac5589f9706a198700dc6
tree33826d1a4361b209e26e2af0a66a7af9d36b353f
parent765e3c26f51331e6edf69970a5b76f2637f86339
usb: typec: mux: intel: Handle alt mode HPD_HIGH

According to the PMC Type C Subsystem (TCSS) Mux programming guide rev
0.6, when a device is transitioning to DP Alternate Mode state, if the
HPD_STATE (bit 7) field in the status update command VDO is set to
HPD_HIGH, the HPD_HIGH field in the Alternate Mode request “mode_data”
field (bit 14) should also be set. Ensure the bit is correctly handled
while issuing the Alternate Mode request.

Signed-off-by: Prashant Malani <pmalani@chromium.org>
Fixes: 75d0ef9fd5a1 ("usb: typec: driver for Intel PMC mux control")
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20200429054432.134178-1-pmalani@chromium.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c