diff options
author | Heikki Krogerus <heikki.krogerus@linux.intel.com> | 2018-06-21 16:43:19 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-06-25 21:30:12 +0800 |
commit | 68816e16b4789f2d05e77b6dcb77564cf5d6a8d8 (patch) | |
tree | 8c8c8736a5036d6d31cc8bd1df2fd9ebce0cb6f2 /drivers/staging | |
parent | 1f9f9d168ce619608572b01771c47a41b15429e6 (diff) | |
download | linux-68816e16b4789f2d05e77b6dcb77564cf5d6a8d8.tar.bz2 |
usb: typec: ucsi: Fix for incorrect status data issue
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: c1b0bc2dabfa ("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>
Diffstat (limited to 'drivers/staging')
0 files changed, 0 insertions, 0 deletions