aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/mwifiex/main.c
diff options
context:
space:
mode:
authorXinming Hu <huxm@marvell.com>2014-12-23 08:44:11 -0500
committerKalle Valo <kvalo@codeaurora.org>2015-01-06 13:54:30 -0500
commit809c6ea8abe9f18b74253e6c8c7b23dd73f74b7a (patch)
treeb059a21a1b8a97edb2393ca6ec0b7237ccfa4ba4 /drivers/net/wireless/mwifiex/main.c
parent11cd07a9694cbd4d06361d6f46b735a47daa9a77 (diff)
mwifiex: save sdio register values before firmware dump
This patch saves sdio registers value before firmware dump, this can be used to find out reason for FW dump. Signed-off-by: Xinming Hu <huxm@marvell.com> Signed-off-by: Cathy Luo <cluo@marvell.com> Signed-off-by: Avinash Patil <patila@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/mwifiex/main.c')
-rw-r--r--drivers/net/wireless/mwifiex/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/wireless/mwifiex/main.c b/drivers/net/wireless/mwifiex/main.c
index 4edaaf48259b..6125d1c8ae3a 100644
--- a/drivers/net/wireless/mwifiex/main.c
+++ b/drivers/net/wireless/mwifiex/main.c
@@ -884,6 +884,12 @@ void mwifiex_dump_drv_info(struct mwifiex_adapter *adapter)
884 priv->netdev->name, priv->num_tx_timeout); 884 priv->netdev->name, priv->num_tx_timeout);
885 } 885 }
886 886
887 if (adapter->iface_type == MWIFIEX_SDIO) {
888 p += sprintf(p, "\n=== SDIO register DUMP===\n");
889 if (adapter->if_ops.reg_dump)
890 p += adapter->if_ops.reg_dump(adapter, p);
891 }
892
887 p += sprintf(p, "\n=== MORE DEBUG INFORMATION\n"); 893 p += sprintf(p, "\n=== MORE DEBUG INFORMATION\n");
888 debug_info = kzalloc(sizeof(*debug_info), GFP_KERNEL); 894 debug_info = kzalloc(sizeof(*debug_info), GFP_KERNEL);
889 if (debug_info) { 895 if (debug_info) {