android_kernel_oneplus_msm8998/drivers
Thierry Strudel 782f48975e Revert "usb: hub: Prevent hub autosuspend if usbcore.autosuspend is -1"
Certain USB-C devices are failing to enumerate if the bus
transitions from active to suspend between connection and enumeration.

When a USB-C accessory is inserted in a phone and is detected by the
CC lines, the controller driver is loaded and the only devices present
on the bus are the root hubs, until the device enumerations.
As a result, a suspend transition between device connection and
enumeration is very likely.

This change leaves the hub autosuspend set to the usbcore.autosuspend
value so a value can be set high enough to prevent this race.

This reverts:
commit bdd405d2a5 ("usb: hub: Prevent hub autosuspend if usbcore.autosuspend is -1")

  If user specifies that USB autosuspend must be disabled by module
  parameter "usbcore.autosuspend=-1" then we must prevent
  autosuspend of USB hub devices as well.

  commit 596d789a21 introduced in v3.8 changed the original behaivour
  and stopped respecting the usbcore.autosuspend parameter for hubs.

Bug: 71936484
Change-Id: Ie20471b9e8d44f92f9eff97ed12ccd903c98c272
Signed-off-by: Thierry Strudel <tstrudel@google.com>
Signed-off-by: Andrew Chant <achant@google.com>
2020-11-03 21:30:36 +01:00
..
accessibility
acpi ACPI / SBS: Fix rare oops when removing modules 2019-11-25 15:54:46 +01:00
amba
android binder: Disable debug mask 2020-11-03 21:30:24 +01:00
ata ata: ep93xx: Use proper enums for directions 2019-11-25 15:54:36 +01:00
atm atm: zatm: Fix empty body Clang warnings 2019-11-28 18:25:46 +01:00
auxdisplay
base cpuidle: don't disable cpuidle when entering suspend 2020-11-03 21:30:17 +01:00
bcma
bif
block Merge android-4.4-p.204 (583bdda) into msm-4.4 2019-12-02 10:58:49 +05:30
bluetooth Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
bus
cdrom
char msm_rng: fix issue with unbalanced clk_put 2020-11-03 21:30:21 +01:00
clk Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
clocksource
connector
cpufreq cpufreq: deoneplusify and remove PM QOS changes 2020-11-03 21:30:19 +01:00
cpuidle drivers: cpuidle: lpm-levels: Reset suspend wake time 2020-11-03 21:30:29 +01:00
crypto treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
dca
devfreq PM / devfreq: bw_hwmon: Add missing mutex unlock 2020-11-03 21:30:30 +01:00
dio
dma Merge android-4.4-p.203 (40ef73d) into msm-4.4 2019-11-26 10:42:36 +05:30
dma-buf
edac Merge android-4.4.187 (8eb3d65) into msm-4.4 2019-08-07 11:03:21 +05:30
eisa
esoc
extcon Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
firewire
firmware Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
fmc
fpga
gpio Merge android-4.4-p.203 (40ef73d) into msm-4.4 2019-11-26 10:42:36 +05:30
gpu msm: kgsl: Increase priority of RT thread 2020-11-03 21:30:28 +01:00
hid Merge android-4.4-p.200 (903fbe7) into msm-4.4 2019-11-13 10:41:54 +05:30
hsi
hv
hwmon Merge android-4.4-p.203 (40ef73d) into msm-4.4 2019-11-26 10:42:36 +05:30
hwspinlock
hwtracing Merge android-4.4.191 (6da3fbc) into msm-4.4 2019-09-09 11:30:20 +05:30
i2c i2c-msm-v2: allow i2c_adapter to retry on arbitration lost 2020-11-03 21:30:22 +01:00
ide
idle
iio Merge android-4.4-p.203 (40ef73d) into msm-4.4 2019-11-26 10:42:36 +05:30
infiniband IB/mthca: Fix error return code in __mthca_init_one() 2019-11-25 15:54:35 +01:00
input touchscreen: fw_update_v7: Fix constant logical operand warning 2020-11-03 21:30:25 +01:00
iommu Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
ipack
irqchip Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
isdn mISDN: Fix type of switch control variable in ctrl_teimanager 2019-11-28 18:25:49 +01:00
leds treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
lguest
lightnvm
macintosh macintosh/windfarm_smu_sat: Fix debug output 2019-11-28 18:25:45 +01:00
mailbox
mcb
md Merge android-4.4-p.204 (583bdda) into msm-4.4 2019-12-02 10:58:49 +05:30
media treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
memory
memstick memstick: jmb38x_ms: Fix an error handling path in 'jmb38x_ms_probe()' 2019-10-29 09:13:31 +01:00
message
mfd mfd: wcd9xxx: disable slimbus register access for debugfs 2020-11-03 21:30:23 +01:00
misc treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
mmc Merge android-4.4-p.204 (583bdda) into msm-4.4 2019-12-02 10:58:49 +05:30
mtd Merge android-4.4-p.203 (40ef73d) into msm-4.4 2019-11-26 10:42:36 +05:30
net Silences WLAN, PCIe, and CPU suspend state kernel messages 2020-11-03 21:30:30 +01:00
nfc nfc: pn5xx: Fix enum-conversion warnings 2020-11-03 21:30:26 +01:00
ntb ntb: intel: fix return value for ndev_vec_mask() 2019-11-28 18:25:59 +01:00
nubus
nvdimm
nvme
nvmem nvmem: core: return error code instead of NULL from nvmem_device_get 2019-11-25 15:53:55 +01:00
oem_debug drivers: Fix up disabling CONFIG_OEM_FORCE_DUMP 2020-11-03 21:30:24 +01:00
of Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
oneplus drivers: Allow disabling OEM debug support 2020-11-03 21:30:16 +01:00
oprofile
param_read_write Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
parisc parisc: Disable HP HSC-PCI Cards to prevent kernel crash 2019-10-05 12:27:52 +02:00
parport
pci Silences WLAN, PCIe, and CPU suspend state kernel messages 2020-11-03 21:30:30 +01:00
pcmcia
perf
phy Merge android-4.4.187 (8eb3d65) into msm-4.4 2019-08-07 11:03:21 +05:30
pinctrl pinctrl: qcom: Add irq_enable callback for msm gpio 2020-11-03 21:30:32 +01:00
platform treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
pnp
power power_supply: Fix unbalanced the power supplies 2020-11-03 21:30:35 +01:00
powercap
pps Merge android-4.4.187 (8eb3d65) into msm-4.4 2019-08-07 11:03:21 +05:30
ps3
ptp
pwm pwm-qpnp: fix the uninitialized pwm mode issue 2020-11-03 21:30:15 +01:00
rapidio
ras
regulator treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
remoteproc
reset
rpmsg
rtc Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
s390 This is the 4.4.203 stable release 2019-11-25 17:44:35 +01:00
sbus
scsi scsi: ufs: synchronize between rls handler and clock scaling 2020-11-03 21:30:31 +01:00
sensors
sfi
sh
slimbus slimbus: Add missing brackets in slim_change_existing_chans 2020-11-03 21:30:31 +01:00
sn
soc project_info: Fix size arguement clang error 2020-11-03 21:30:26 +01:00
soundwire
spi Merge android-4.4-p.204 (583bdda) into msm-4.4 2019-12-02 10:58:49 +05:30
spmi Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
ssb
staging ion: ion_system_heap: update supported page-orders for ion pool 2020-11-03 21:30:28 +01:00
switch
target scsi: target: core: Do not overwrite CDB byte 1 2019-11-10 11:21:08 +01:00
tc
tee
thermal thermal: tsens: Disable tsens_poll_check for msm8998 2020-11-03 21:30:34 +01:00
thunderbolt thunderbolt: Use 32-bit writes when writing ring producer/consumer 2019-11-06 12:09:17 +01:00
tty serial: msm_serial_hs: Protect spurious irqs after wakeup irq enablement 2020-11-03 21:30:35 +01:00
uio
usb Revert "usb: hub: Prevent hub autosuspend if usbcore.autosuspend is -1" 2020-11-03 21:30:36 +01:00
uwb
vfio vfio/pci: Fix potential memory leak in vfio_msi_cap_len 2019-11-25 15:54:13 +01:00
vhost commit e82b9b0727ff ("vhost: introduce vhost_exceeds_weight()") 2019-11-13 18:43:09 -08:00
video treewide: Fix code issues detected using GCC 8.2.0 2020-11-03 21:30:25 +01:00
virt
virtio
vlynq
vme
w1
watchdog watchdog: bcm2835_wdt: Fix module autoload 2019-09-06 10:18:15 +02:00
xen xen/pci: reserve MCFG areas earlier 2019-10-17 13:40:55 -07:00
zorro
Kconfig Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30
Makefile Synchronize codes for Oneplus 5/5T OxygenOS 10.0.0 2020-06-22 11:51:14 +05:30