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)
commitd31ab3577eca0f74126ceb1d406710e620a155a0
tree876368d0dd6f1ad002595a0b2e27e06d8826fa93
parentb2cb1a900a104642401faea7bada3c48289402f4
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 9a821f5 "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