diff options
author | Badhri Jagan Sridharan <badhri@google.com> | 2020-12-10 23:19:11 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-12-11 11:24:12 +0100 |
commit | 3db4c21c0f71f7a51ce5c50f0d4d3742c9ec4a65 (patch) | |
tree | bbcbd5eb37e62e9a295ad6c1136ae628e4844ac1 /fs/nfsd/nfs4xdr.c | |
parent | 3b6c3d04808965167ff19d028789bc92a4b12c8c (diff) | |
download | linux-stable-3db4c21c0f71f7a51ce5c50f0d4d3742c9ec4a65.tar.gz linux-stable-3db4c21c0f71f7a51ce5c50f0d4d3742c9ec4a65.tar.bz2 linux-stable-3db4c21c0f71f7a51ce5c50f0d4d3742c9ec4a65.zip |
usb: typec: tcpm: Update vbus_vsafe0v on init
During init, vbus_vsafe0v does not get updated till the first
connect as a sink. This causes TCPM to be stuck in SRC_ATTACH_WAIT
state while booting with a sink (For instance: a headset) connected.
[ 1.429168] Start toggling
[ 1.439907] CC1: 0 -> 0, CC2: 0 -> 0 [state TOGGLING, polarity 0, disconnected]
[ 1.445242] CC1: 0 -> 0, CC2: 0 -> 0 [state TOGGLING, polarity 0, disconnected]
[ 53.358528] CC1: 0 -> 0, CC2: 0 -> 2 [state TOGGLING, polarity 0, connected]
[ 53.358564] state change TOGGLING -> SRC_ATTACH_WAIT [rev1 NONE_AMS]
Fix this by updating vbus_vsafe0v based on vbus_present status
on boot.
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Link: https://lore.kernel.org/r/20201211071911.2205197-1-badhri@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
0 files changed, 0 insertions, 0 deletions