]> git.baikalelectronics.ru Git - kernel.git/commit
usb: typec: intel_pmc_mux: Configure HPD first for HPD+IRQ request
authorMadhusudanarao Amara <madhusudanarao.amara@intel.com>
Wed, 16 Dec 2020 14:09:18 +0000 (19:39 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Dec 2020 14:44:26 +0000 (15:44 +0100)
commitf00e3c31dde37c941cc71a42108678d85f0e7a38
tree2e0d68ccf1629e72d5de4535dc0ff2847220b62d
parentdbaa5e8fd7f7dc84883515e3f909248ad4d178c1
usb: typec: intel_pmc_mux: Configure HPD first for HPD+IRQ request

Warm reboot scenarios some times type C Mux driver gets Mux configuration
request as HPD=1,IRQ=1. In that scenario typeC Mux driver need to configure
Mux as follows as per IOM requirement:
 (1). Confgiure Mux HPD = 1, IRQ = 0
 (2). Configure Mux with HPD = 1, IRQ = 1

IOM expects TypeC Mux configuration as follows:
 (1). HPD=1, IRQ=0
 (2). HPD=1, IRQ=1
if IOM gets mux config request (2) without configuring (1), it will ignore
the request. The impact of this is there is no DP_alt mode display.

Fixes: dc42a35a5125 ("usb: typec: intel_pmc_mux: Check the port status before connect")
Cc: stable@vger.kernel.org
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Madhusudanarao Amara <madhusudanarao.amara@intel.com>
Link: https://lore.kernel.org/r/20201216140918.49197-1-madhusudanarao.amara@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/mux/intel_pmc_mux.c