Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4863e4cc authored by Aniket Nagarnaik's avatar Aniket Nagarnaik Committed by Marcel Holtmann
Browse files

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: default avatarAniket Nagarnaik <aniketn@marvell.com>
Signed-off-by: default avatarAmitkumar Karwar <akarwar@marvell.com>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 0208bc88
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -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
	 * winner or not, with this test the FW synchronizes when the
	 * module can continue its initialization
	 * module can continue its initialization
@@ -1082,6 +1080,8 @@ static int btmrvl_sdio_download_fw(struct btmrvl_sdio_card *card)
		return -ETIMEDOUT;
		return -ETIMEDOUT;
	}
	}


	sdio_release_host(card->func);

	return 0;
	return 0;


done:
done: