Watch
1
Fork
You've already forked kernel_a52xq
0
mirror of https://github.com/a52xq-dev/kernel.git synced 2026-10-19 06:08:12 +07:00
kernel_a52xq/include/linux/usb
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Badhri Jagan Sridharan 579f3fc1f4 usb: typec: tcpm: Do not disconnect link for self powered devices
[ Upstream commit 23b5f73266e59a598c1e5dd435d87651b5a7626b ]

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.

Signed-off-by: Badhri Jagan Sridharan <badhri@google.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
---------
Version history:
V3:
Rebase on top of usb-next

V2:
Based on feedback from heikki.krogerus@linux.intel.com
- self_powered added to the struct tcpm_port which is populated from
  a. "connector" node of the device tree in tcpm_fw_get_caps()
  b. "self_powered" node of the tcpc_config in tcpm_copy_caps

Based on feedbase from linux@roeck-us.net
- Code was refactored
- SRC_HARD_RESET_VBUS_OFF sets the link state to false based
  on self_powered flag

V1 located here:
https://lkml.org/lkml/2018/9/13/94
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-01-26 09:32:34 +01:00
..
association.h
audio-v2.h sound updates for 4.18 2018-06-06 09:08:38 -07:00
audio-v3.h ALSA: usb-audio: Initial Power Domain support 2018-07-31 15:01:22 +02:00
audio.h
c67x00.h
cdc-wdm.h
cdc.h
cdc_ncm.h
ch9.h
chipidea.h
composite.h usb: gadget: composite Allow for larger configuration descriptors 2018-05-21 10:36:14 +03:00
ehci-dbgp.h
ehci_def.h
ehci_pdriver.h
ezusb.h
functionfs.h
g_hid.h
gadget.h
gadget_configfs.h
gpio_vbus.h
hcd.h USB: Report wakeup events on root-hub ports 2018-06-25 21:44:43 +08:00
input.h
iowarrior.h
irda.h
isp116x.h
isp1301.h
isp1362.h
isp1760.h
m66592.h
musb-ux500.h
musb.h usb: musb: remove unused members in struct musb_hdrc_config 2018-05-22 12:03:25 +02:00
net2280.h
of.h
ohci_pdriver.h
otg-fsm.h
otg.h
pd.h usb: pd: include kernel.h 2018-06-28 19:52:07 +09:00
pd_ado.h
pd_bdo.h
pd_ext_sdb.h
pd_vdo.h
phy.h
phy_companion.h
quirks.h USB: Wait for extra delay time after USB_PORT_FEAT_RESET for quirky hub 2018-11-27 16:13:09 +01:00
r8a66597.h
renesas_usbhs.h
rndis_host.h
role.h
samsung_usb_phy.h
serial.h
sl811.h
storage.h
tcpm.h usb: typec: tcpm: Do not disconnect link for self powered devices 2019-01-26 09:32:34 +01:00
tegra_usb_phy.h
typec.h usb: typec: Bus type for alternate modes 2018-07-02 17:42:36 +02:00
typec_altmode.h usb: typec: Bus type for alternate modes 2018-07-02 17:42:36 +02:00
typec_dp.h usb: typec: Add driver for DisplayPort alternate mode 2018-07-02 17:42:36 +02:00
typec_mux.h usb: typec: mux: Get the mux identifier from function parameter 2018-07-02 17:42:36 +02:00
uas.h
ulpi.h
usb338x.h
usb_phy_generic.h
usbnet.h
wusb-wa.h
wusb.h
xhci-dbgp.h