Skip to content

Commit 4863e4c

Browse files
Aniket Nagarnaikholtmann
Aniket Nagarnaik
authored andcommitted
Bluetooth: btmrvl: release sdio bus after firmware is up
We will not release sdio bus until firmware is completely downloaded and becomes ready. Our 8887 A2 chip can have separate firmware images for WLAN and bluetooth. This patch fixes an issue observed when both drivers simultaneously try to download respective firmwares. Signed-off-by: Aniket Nagarnaik <[email protected]> Signed-off-by: Amitkumar Karwar <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
1 parent 0208bc8 commit 4863e4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/bluetooth/btmrvl_sdio.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,6 @@ static int btmrvl_sdio_download_fw(struct btmrvl_sdio_card *card)
10711071
}
10721072
}
10731073

1074-
sdio_release_host(card->func);
1075-
10761074
/*
10771075
* winner or not, with this test the FW synchronizes when the
10781076
* module can continue its initialization
@@ -1082,6 +1080,8 @@ static int btmrvl_sdio_download_fw(struct btmrvl_sdio_card *card)
10821080
return -ETIMEDOUT;
10831081
}
10841082

1083+
sdio_release_host(card->func);
1084+
10851085
return 0;
10861086

10871087
done:

0 commit comments

Comments
 (0)