android_kernel_xiaomi_sm8350/drivers/net/wimax/i2400m
Inaky Perez-Gonzalez 923d708fed wimax/i2400m: fix reboot echo/ack barker deadlock
The i2400m based devices can get in a sort of a deadlock some times;
when they boot, they send a reboot "barker" (a magic number) and then
the driver has to echo that same barker to ack reception
(echo/ack). Then the device does a final ack by sending an ACK barker.

The first time this happens, we don't know ahead of time with barker
the device is going to send, as different device models and SKUs will
send different barker depending on the EEPROM programming.

If the device has sent the barker before the driver has been able to
read it, the driver looses, as it doesn't know which barker it has to
echo/ack back. With older devices, we tried a couple of combinations
and that always worked; but now, with adding support for more, in
which we have an unlimited number of new barkers, that is not an
option.

So we rework said case so that when the device gets stuck, we just
cycle through all the known types until one forces the device to send
an ack. Otherwise, the driver gives up and aborts.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
2009-10-19 15:55:55 +09:00
..
control.c i2400m: keep index within ms_to_errno[] 2009-10-19 15:55:35 +09:00
debug-levels.h
debugfs.c
driver.c wimax/i2400m: rework bootrom initialization to be more flexible 2009-10-19 15:55:53 +09:00
fw.c wimax/i2400m: fix reboot echo/ack barker deadlock 2009-10-19 15:55:55 +09:00
i2400m-sdio.h wimax/iwmc3200: increase wait time before enable retry 2009-10-19 15:55:43 +09:00
i2400m-usb.h wimax/i2400m: USB driver uses a configurable endpoint map 2009-10-19 15:55:44 +09:00
i2400m.h wimax/i2400m: rework bootrom initialization to be more flexible 2009-10-19 15:55:53 +09:00
Kconfig
Makefile
netdev.c i2400m: minimal ethtool support 2009-10-19 15:55:37 +09:00
op-rfkill.c
rx.c wimax/i2400m: rework bootrom initialization to be more flexible 2009-10-19 15:55:53 +09:00
sdio-debug-levels.h
sdio-fw.c wimax/i2400m: be smarter about copying command buffer to bm_cmd_buf 2009-10-19 15:55:46 +09:00
sdio-rx.c wimax/i2400m: rework bootrom initialization to be more flexible 2009-10-19 15:55:53 +09:00
sdio-tx.c
sdio.c wimax: allow specifying debug levels as command line option 2009-10-19 15:55:50 +09:00
sysfs.c
tx.c wimax: misplaced parenthesis 2009-10-19 15:55:36 +09:00
usb-debug-levels.h
usb-fw.c wimax/i2400m: workaround not-so-working %zd printf format 2009-10-19 15:55:51 +09:00
usb-notif.c wimax/i2400m: rework bootrom initialization to be more flexible 2009-10-19 15:55:53 +09:00
usb-rx.c wimax/i2400m: USB driver uses a configurable endpoint map 2009-10-19 15:55:44 +09:00
usb-tx.c wimax/i2400m: USB driver uses a configurable endpoint map 2009-10-19 15:55:44 +09:00
usb.c wimax: allow specifying debug levels as command line option 2009-10-19 15:55:50 +09:00