kernel_samsung_a53x/drivers/net/usb
Douglas Anderson 3decf39699 r8152: Increase USB control msg timeout to 5000ms as per spec
[ Upstream commit a5feba71ec9c14a54c3babdc732c5b6866d8ee43 ]

According to the comment next to USB_CTRL_GET_TIMEOUT and
USB_CTRL_SET_TIMEOUT, although sending/receiving control messages is
usually quite fast, the spec allows them to take up to 5 seconds.
Let's increase the timeout in the Realtek driver from 500ms to 5000ms
(using the #defines) to account for this.

This is not just a theoretical change. The need for the longer timeout
was seen in testing. Specifically, if you drop a sc7180-trogdor based
Chromebook into the kdb debugger and then "go" again after sitting in
the debugger for a while, the next USB control message takes a long
time. Out of ~40 tests the slowest USB control message was 4.5
seconds.

While dropping into kdb is not exactly an end-user scenario, the above
is similar to what could happen due to an temporary interrupt storm,
what could happen if there was a host controller (HW or SW) issue, or
what could happen if the Realtek device got into a confused state and
needed time to recover.

This change is fairly critical since the r8152 driver in Linux doesn't
expect register reads/writes (which are backed by USB control
messages) to fail.

Fixes: ac718b69301c ("net/usb: new driver for RTL8152")
Suggested-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-by: Grant Grundler <grundler@chromium.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 10:58:29 +01:00
..
aqc111.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
aqc111.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asix.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asix_common.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
asix_devices.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ax88172a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ax88179_178a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
catc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc-phonet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc_eem.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc_ether.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc_mbim.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc_ncm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cdc_subset.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ch9200.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cx82310_eth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dm9601.c net: usb: dm9601: fix uninitialized variable use in dm9601_mdio_read 2024-11-08 11:25:47 +01:00
gl620a.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hso.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
huawei_cdc_ncm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
int51x1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ipheth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kalmia.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kaweth.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lan78xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lan78xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lg-vl600.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mcs7830.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
net1080.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pegasus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pegasus.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
plusb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qmi_wwan.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
r8152.c r8152: Increase USB control msg timeout to 5000ms as per spec 2024-11-18 10:58:29 +01:00
rndis_host.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtl8150.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sierra_net.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smsc75xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smsc75xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
smsc95xx.c net: usb: smsc95xx: Fix uninit-value access in smsc95xx_read_reg 2024-11-18 10:58:29 +01:00
smsc95xx.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sr9700.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sr9700.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sr9800.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sr9800.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
usbnet.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
zaurus.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00