linux/drivers/usb
Kyle Tso 57cb3d1f7b FROMGIT: usb: typec: tcpm: Relax disconnect threshold during power negotiation
If the voltage is being decreased in power negotiation, the Source will
set the power supply to operate at the new voltage level before sending
PS_RDY. Relax the threshold before sending Request Message so that it
will not race with Source which begins to adjust the voltage right after
it sends Accept Message (PPS) or tSrcTransition (25~35ms) after it sends
Accept Message (non-PPS).

The real threshold will be set after Sink receives PS_RDY Message.

Fixes: f321a02cae ("usb: typec: tcpm: Implement enabling Auto Discharge disconnect support")
Cc: stable <stable@vger.kernel.org>
Cc: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Badhri Jagan Sridharan <badhri@google.com>
Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Kyle Tso <kyletso@google.com>
Link: https://lore.kernel.org/r/20210616090102.1897674-1-kyletso@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 2b537cf877
 https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usb.git usb-next)
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: I7f3f8d8485796e51dcb969e528f962d1ba518799
2021-06-17 16:07:11 +00:00
..
atm
c67x00
cdns3
chipidea
class cdc-wdm: untangle a circular dependency between callback and softint 2021-05-19 10:13:16 +02:00
common
core Merge 5.10.42 into android12-5.10 2021-06-03 18:47:38 +02:00
dwc2 Merge 5.10.43 into android12-5.10 2021-06-12 14:48:14 +02:00
dwc3 UPSTREAM: usb: dwc3: imx8mp: fix error return code in dwc3_imx8mp_probe() 2021-06-10 20:26:47 -07:00
early
gadget FROMGIT: usb: fix various gadget panics on 10gbps cabling 2021-06-09 10:43:33 +00:00
host UPSTREAM: xhci: Fix 5.12 regression of missing xHC cache clearing command after a Stall 2021-05-30 13:59:45 +02:00
image
isp1760
misc USB: trancevibrator: fix control-request direction 2021-06-03 09:00:34 +02:00
mon
mtu3
musb usb: musb: Fix an error message 2021-05-19 10:13:13 +02:00
phy
renesas_usbhs
roles usb: roles: Call try_module_get() from usb_role_switch_find_by_fwnode() 2021-05-14 09:49:55 +02:00
serial USB: serial: pl2303: add device id for ADLINK ND-6530 GC 2021-06-03 09:00:35 +02:00
storage
typec FROMGIT: usb: typec: tcpm: Relax disconnect threshold during power negotiation 2021-06-17 16:07:11 +00:00
usbip usbip: vudc: fix missing unlock on error in usbip_sockfd_store() 2021-05-14 09:50:19 +02:00
Kconfig
Makefile
usb-skeleton.c