]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mwifiex: add PCIe function level reset support
authorAmitkumar Karwar <akarwar@marvell.com>
Tue, 26 Jul 2016 14:01:44 +0000 (19:31 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 9 Sep 2016 09:18:32 +0000 (12:18 +0300)
commit4c5dae59d2e9386c706a2f3c7c2746ae277bf568
tree4611b29ce66b7a5dcdc55f30aa5a4de3652a0e0f
parent5251b6be8bb5c5675bdf12347c7b83937a5c91e5
mwifiex: add PCIe function level reset support

This patch implements pre and post FLR handlers to support PCIe FLR
functionality. Software cleanup is performed in pre-FLR whereas
firmware is downloaded and software is re-initialised in
post-FLR handler.

Following command triggers FLR.
echo "1" > /sys/bus/pci/devices/$NUMBER/reset

This feature can be used as a recovery mechanism when firmware gets
hang.

Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/main.c
drivers/net/wireless/marvell/mwifiex/main.h
drivers/net/wireless/marvell/mwifiex/pcie.c
drivers/net/wireless/marvell/mwifiex/pcie.h