android_kernel_xiaomi_sm8350/drivers/net/wimax/i2400m
Inaky Perez-Gonzalez 2618ab774e wimax/i2400m: usb: fix device reset on autosuspend while not yet idle
When the i2400m is connected to a network, the host interface (USB)
cannot be suspended. For that to happen, the device has to have
negotiated with the basestation to put the link on IDLE state.

If the host tries to put the device in standby while it is connected
but not idle, the device resets, as the driver should not do that.

To avoid triggering that, when the USB susbsytem requires the driver
to autosuspend the device, the driver checks if the device is not yet
idle. If it is not, the request is requested (will be retried again
later on after the autosuspend timeout). At some point the device will
enter idle and the request will succeed (unless of course, there is
network traffic, but at that point, there is no idle neither in the
link or the host interface).

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
2009-05-28 18:02:27 -07:00
..
control.c wimax/i2400m: remove redundant readiness checks from i2400m_report_tlv_*() 2009-05-28 18:01:58 -07:00
debug-levels.h
debugfs.c
driver.c wimax/i2400m: allow kernel commands to device to be logged too 2009-05-28 18:01:42 -07:00
fw.c
i2400m-sdio.h
i2400m-usb.h
i2400m.h wimax/i2400m: generate fake source MAC address with random_ether_addr() 2009-05-28 18:01:24 -07:00
Kconfig
Makefile
netdev.c wimax/i2400m: generate fake source MAC address with random_ether_addr() 2009-05-28 18:01:24 -07:00
op-rfkill.c
rx.c wimax/i2400m: remove redundant readiness checks from i2400m_report_tlv_*() 2009-05-28 18:01:58 -07:00
sdio-debug-levels.h
sdio-fw.c
sdio-rx.c
sdio-tx.c
sdio.c wimax/i2400m: sdio: set the block size before enabling the function 2009-05-28 18:02:11 -07:00
sysfs.c
tx.c
usb-debug-levels.h
usb-fw.c
usb-notif.c
usb-rx.c
usb-tx.c
usb.c wimax/i2400m: usb: fix device reset on autosuspend while not yet idle 2009-05-28 18:02:27 -07:00