1
0
Fork 0
remarkable-linux/drivers/usb/typec/ucsi
Heikki Krogerus 0a7db82ed9 usb: typec: ucsi: Fix for incorrect status data issue
commit 68816e16b4 upstream.

According to UCSI Specification, Connector Change Event only
means a change in the Connector Status and Operation Mode
fields of the STATUS data structure. So any other change
should create another event.

Unfortunately on some platforms the firmware acting as PPM
(platform policy manager - usually embedded controller
firmware) still does not report any other status changes if
there is a connector change event. So if the connector power
or data role was changed when a device was plugged to the
connector, the driver does not get any indication about
that. The port will show wrong roles if that happens.

To fix the issue, always checking the data and power role
together with a connector change event.

Fixes: c1b0bc2dab ("usb: typec: Add support for UCSI interface")
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-07-08 15:30:47 +02:00
..
Kconfig
Makefile usb: typec: ucsi: fix tracepoint related build error 2018-06-21 04:02:47 +09:00
debug.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
trace.c
trace.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ucsi.c usb: typec: ucsi: Fix for incorrect status data issue 2018-07-08 15:30:47 +02:00
ucsi.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
ucsi_acpi.c usb: typec: ucsi: acpi: Workaround for cache mode issue 2018-07-08 15:30:46 +02:00