]> git.baikalelectronics.ru Git - kernel.git/commit
mwifiex: add support for SDIO card reset
authorAmitkumar Karwar <akarwar@marvell.com>
Fri, 2 Nov 2012 01:44:14 +0000 (18:44 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 14 Nov 2012 19:55:37 +0000 (14:55 -0500)
commit7e7353a5492bfe17a39a3e367d76212fedd6b4b8
tree876368d0dd6f1ad002595a0b2e27e06d8826fa93
parent3cbabbe13cf81d556654e2f02f31acc63ec9f401
mwifiex: add support for SDIO card reset

When command timeout happens due to a bug in firmware/hardware,
the timeout handler just prints some debug information. User is
unable to reload the driver in this case.

Inspired by 234fc8e "libertas: add sd8686 reset_card support",
this patch adds card reset support for SDIO interface when
command timeout happens. If the SDIO host contoller supports
MMC_POWER_OFF|UP|ON operations, the chip will be reset and the
firmware will be re-downloaded.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/mwifiex/cmdevt.c
drivers/net/wireless/mwifiex/main.h
drivers/net/wireless/mwifiex/sdio.c
drivers/net/wireless/mwifiex/sdio.h