]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: btmrvl: release sdio bus after firmware is up
authorAniket Nagarnaik <aniketn@marvell.com>
Thu, 6 Aug 2015 10:43:09 +0000 (03:43 -0700)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 10 Aug 2015 18:41:34 +0000 (20:41 +0200)
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>
drivers/bluetooth/btmrvl_sdio.c

index b9a811900f6ab534087e17f3726c840a8afdb34e..7c097629e59312e232757aa8b5f67f4130b71d3e 100644 (file)
@@ -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
@@ -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: