Message ID | 1396532015-18864-1-git-send-email-jesse.sung@canonical.com |
---|---|
State | New |
Headers | show |
Whats another 300 msec when its already sleeping for 1000.
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; >
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;
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(+)