diff mbox

[Saucy/Trusty] UBUNTU: SAUCE: Bluetooth: Give restart command more time to complete its job

Message ID 1396532015-18864-1-git-send-email-jesse.sung@canonical.com
State New
Headers show

Commit Message

Wen-chien Jesse Sung April 3, 2014, 1:33 p.m. UTC
BugLink: https://launchpad.net/bugs/1301908

Some broadcom modules need more time to complete restart command (at
least for 0a5c:216c).

Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
---
 drivers/bluetooth/btusb.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Tim Gardner April 3, 2014, 3 p.m. UTC | #1
Whats another 300 msec when its already sleeping for 1000.
Brad Figg April 3, 2014, 4:03 p.m. UTC | #2
On 04/03/2014 06:33 AM, Wen-chien Jesse Sung wrote:
> BugLink: https://launchpad.net/bugs/1301908
> 
> Some broadcom modules need more time to complete restart command (at
> least for 0a5c:216c).
> 
> Signed-off-by: Wen-chien Jesse Sung <jesse.sung@canonical.com>
> ---
>  drivers/bluetooth/btusb.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
> index b5ffde1..b09a3a5 100644
> --- a/drivers/bluetooth/btusb.c
> +++ b/drivers/bluetooth/btusb.c
> @@ -1375,6 +1375,7 @@ static int btusb_setup_patchram(struct hci_dev *hdev)
>  	if (err)
>  		goto out;
>  
> +	msleep(300);
>  	err = btusb_setup_patchram_packet(hdev, 0xfc2e, 1, &val);
>  	if (err)
>  		goto out;
>
Tim Gardner April 3, 2014, 8:57 p.m. UTC | #3

diff mbox

Patch

diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index b5ffde1..b09a3a5 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -1375,6 +1375,7 @@  static int btusb_setup_patchram(struct hci_dev *hdev)
 	if (err)
 		goto out;
 
+	msleep(300);
 	err = btusb_setup_patchram_packet(hdev, 0xfc2e, 1, &val);
 	if (err)
 		goto out;