Skip to content

Commit

Permalink
Bluetooth: btmrvl: release sdio bus after firmware is up
Browse files Browse the repository at this point in the history
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 <aniketn@marvell.com>
Signed-off-by: Amitkumar Karwar <akarwar@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Aniket Nagarnaik authored and holtmann committed Aug 10, 2015
1 parent 0208bc8 commit 4863e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/bluetooth/btmrvl_sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1071,8 +1071,6 @@ static int btmrvl_sdio_download_fw(struct btmrvl_sdio_card *card)
}
}

sdio_release_host(card->func);

/*
* winner or not, with this test the FW synchronizes when the
* module can continue its initialization
Expand All @@ -1082,6 +1080,8 @@ static int btmrvl_sdio_download_fw(struct btmrvl_sdio_card *card)
return -ETIMEDOUT;
}

sdio_release_host(card->func);

return 0;

done:
Expand Down

0 comments on commit 4863e4c

Please sign in to comment.