https://github.com/torvalds/linux
Revision 12701ce524bc9b7c6345a2425208501fd2c62aad authored by Badhri Jagan Sridharan on 10 May 2021, 21:17:56 UTC, committed by Greg Kroah-Hartman on 13 May 2021, 13:01:04 UTC
This is a regression introduced by 1373fefc6243 ("usb: typec: tcpm: Allow slow charging loops to comply to pSnkStby") When Source advertises Rp-default, tcpm would request 500mA when in SINK_DISCOVERY, Type-C spec advises the sink to follow BC1.2 current limits when Rp-default is advertised. [12750.503381] Requesting mux state 1, usb-role 2, orientation 1 [12750.503837] state change SNK_ATTACHED -> SNK_STARTUP [rev3 NONE_AMS] [12751.003891] state change SNK_STARTUP -> SNK_DISCOVERY [12751.003900] Setting voltage/current limit 5000 mV 500 mA This patch restores the behavior where the tcpm would request 0mA when Rp-default is advertised by the source. [ 73.174252] Requesting mux state 1, usb-role 2, orientation 1 [ 73.174749] state change SNK_ATTACHED -> SNK_STARTUP [rev3 NONE_AMS] [ 73.674800] state change SNK_STARTUP -> SNK_DISCOVERY [ 73.674808] Setting voltage/current limit 5000 mV 0 mA During SNK_DISCOVERY, Cap the current limit to PD_P_SNK_STDBY_MW / 5 only for slow_charger_loop case. Fixes: 1373fefc6243 ("usb: typec: tcpm: Allow slow charging loops to comply to pSnkStby") Reviewed-by: Guenter Roeck <linux@roeck-us.net> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Badhri Jagan Sridharan <badhri@google.com> Link: https://lore.kernel.org/r/20210510211756.3346954-1-badhri@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 3c12878
Tip revision: 12701ce524bc9b7c6345a2425208501fd2c62aad authored by Badhri Jagan Sridharan on 10 May 2021, 21:17:56 UTC
usb: typec: tcpm: Fix SINK_DISCOVERY current limit for Rp-default
usb: typec: tcpm: Fix SINK_DISCOVERY current limit for Rp-default
Tip revision: 12701ce
File | Mode | Size |
---|---|---|
CREDITS | -rw-r--r-- | 7.2 KB |
acm.rst | -rw-r--r-- | 4.9 KB |
authorization.rst | -rw-r--r-- | 3.9 KB |
chipidea.rst | -rw-r--r-- | 3.7 KB |
dwc3.rst | -rw-r--r-- | 1.8 KB |
ehci.rst | -rw-r--r-- | 9.9 KB |
functionfs.rst | -rw-r--r-- | 3.0 KB |
gadget-testing.rst | -rw-r--r-- | 26.1 KB |
gadget_configfs.rst | -rw-r--r-- | 10.5 KB |
gadget_hid.rst | -rw-r--r-- | 11.6 KB |
gadget_multi.rst | -rw-r--r-- | 5.5 KB |
gadget_printer.rst | -rw-r--r-- | 10.8 KB |
gadget_serial.rst | -rw-r--r-- | 11.4 KB |
index.rst | -rw-r--r-- | 489 bytes |
iuu_phoenix.rst | -rw-r--r-- | 2.7 KB |
linux-cdc-acm.inf | -rw-r--r-- | 3.3 KB |
linux.inf | -rw-r--r-- | 2.2 KB |
mass-storage.rst | -rw-r--r-- | 9.7 KB |
misc_usbsevseg.rst | -rw-r--r-- | 1.5 KB |
mtouchusb.rst | -rw-r--r-- | 2.8 KB |
ohci.rst | -rw-r--r-- | 1.5 KB |
raw-gadget.rst | -rw-r--r-- | 3.7 KB |
text_files.rst | -rw-r--r-- | 329 bytes |
usb-help.rst | -rw-r--r-- | 517 bytes |
usb-serial.rst | -rw-r--r-- | 19.7 KB |
usbdevfs-drop-permissions.c | -rw-r--r-- | 2.3 KB |
usbip_protocol.rst | -rw-r--r-- | 29.4 KB |
usbmon.rst | -rw-r--r-- | 14.8 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...