android_kernel_xiaomi_sm8350/drivers/net/wimax/i2400m
Inaky Perez-Gonzalez c77ca950ab wimax/i2400m: during probe, call sdio_disable at most once
In the Intel Wireless Multicomm 3200, the initialization is
orchestrated by a component called Top. This component also monitors
how many times a function is reset (via sdio_disable) to detect
possible issues and will reset the whole multifunction device if any
function triggers a maximum reset level.

During WiMAX's probe, the driver needs to wait for Top to come up
before it can enable the WiMAX function. If it cannot, it will return
-ENODEV and the Top driver will rescan the SDIO bus once done
loading.

Currently, the WiMAX SDIO probe routine was trying a few times before
returning -ENODEV, and this was triggering Top's too-many-resets
detector. This is, in any case, unnecessary because the Top driver will
force the bus rescan when the functions can be probed successfully.

Added then a maxtries argument to i2400ms_enable_func() and set it to
1 when calling from probe. We want to reuse this function instead of
flat calling out sdio_enable_func() to take advantage of hardware
quirk workarounds.

Reported-by: Cindy H Kao <cindy.h.kao@intel.com>
Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
2009-10-19 15:55:48 +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: Ensure boot mode cmd and ack buffers are alloc'd before first message 2009-10-19 15:55:39 +09:00
fw.c wimax/i2400m: don't write to memory allocated by request_firmware() 2009-10-19 15:55:47 +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: Make boot retries a BUS-specific parameter 2009-10-19 15:55:40 +09:00
Kconfig
Makefile
netdev.c i2400m: minimal ethtool support 2009-10-19 15:55:37 +09:00
op-rfkill.c
rx.c
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/sdio: clear the INTR status bit after reading size 2009-10-19 15:55:45 +09:00
sdio-tx.c
sdio.c wimax/i2400m: during probe, call sdio_disable at most once 2009-10-19 15:55:48 +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: be smarter about copying command buffer to bm_cmd_buf 2009-10-19 15:55:46 +09:00
usb-notif.c wimax/i2400m: USB driver uses a configurable endpoint map 2009-10-19 15:55:44 +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/i2400m: USB driver uses a configurable endpoint map 2009-10-19 15:55:44 +09:00