mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-19 00:54:41 +08:00
mwifiex: claim sdio bus while downloading the firmware
Our 8887 A2 chip can have separate firmware images for bluetooth and WLAN. We observed an issue during parallel downloading of these images by btmrvl and mwifiex drivers. This patch claims sdio bus before starting of the firmware download in mwifiex and releases it after completion to fix the problem. Signed-off-by: Aniket Nagarnaik <aniketn@marvell.com> Signed-off-by: Amitkumar Karwar <akarwar@marvell.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
2375fa2b36
commit
cb9d61e530
@ -920,6 +920,8 @@ static int mwifiex_prog_fw_w_helper(struct mwifiex_adapter *adapter,
|
||||
if (!fwbuf)
|
||||
return -ENOMEM;
|
||||
|
||||
sdio_claim_host(card->func);
|
||||
|
||||
/* Perform firmware data transfer */
|
||||
do {
|
||||
/* The host polls for the DN_LD_CARD_RDY and CARD_IO_READY
|
||||
@ -1024,6 +1026,8 @@ static int mwifiex_prog_fw_w_helper(struct mwifiex_adapter *adapter,
|
||||
offset += txlen;
|
||||
} while (true);
|
||||
|
||||
sdio_release_host(card->func);
|
||||
|
||||
mwifiex_dbg(adapter, MSG,
|
||||
"info: FW download over, size %d bytes\n", offset);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user