Files
kernel_google_b1c1/include/linux/usb
Badhri Jagan Sridharan 2b4e0221d4 BACKPORT: usb: typec: tcpm: Do not disconnect link for self powered devices
During HARD_RESET the data link is disconnected.
For self powered device, the spec is advising against doing that.

From USB_PD_R3_0
7.1.5 Response to Hard Resets
Device operation during and after a Hard Reset is defined as follows:
Self-powered devices Should Not disconnect from USB during a Hard Reset
(see Section 9.1.2).
Bus powered devices will disconnect from USB during a Hard Reset due to the
loss of their power source.

Tackle this by letting TCPM know whether the device is self or bus powered.

This overcomes unnecessary port disconnections from hard reset.
Also, speeds up the enumeration time when connected to Type-A ports.

Bug: 112376366
Bug: 112296845
Change-Id: I833f89d34cbdba32c43ba43e7d8394385d419bc3
Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
2018-10-10 13:00:56 -07:00
..
2017-10-20 15:04:31 -07:00
2017-10-20 15:04:31 -07:00
2018-02-01 13:41:23 +05:30