Skip to content

Commit 8ec770b

Browse files
committed
Bluetooth: hci_bcm4377: Increase boot timeout
BCM4388 takes over 2 seconds to boot, so increase the timeout (and also fix the units while we're here). Signed-off-by: Hector Martin <[email protected]>
1 parent 53adf46 commit 8ec770b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

drivers/bluetooth/hci_bcm4377.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ enum bcm4377_chip {
3434
#define BCM4387_DEVICE_ID 0x5f71
3535
#define BCM4388_DEVICE_ID 0x5f72
3636

37-
#define BCM4377_TIMEOUT 1000
37+
#define BCM4377_TIMEOUT msecs_to_jiffies(1000)
38+
#define BCM4377_BOOT_TIMEOUT msecs_to_jiffies(5000)
3839

3940
/*
4041
* These devices only support DMA transactions inside a 32bit window
@@ -1871,7 +1872,7 @@ static int bcm4377_boot(struct bcm4377_data *bcm4377)
18711872
dev_dbg(&bcm4377->pdev->dev, "waiting for firmware to boot\n");
18721873

18731874
ret = wait_for_completion_interruptible_timeout(&bcm4377->event,
1874-
BCM4377_TIMEOUT);
1875+
BCM4377_BOOT_TIMEOUT);
18751876
if (ret == 0) {
18761877
ret = -ETIMEDOUT;
18771878
goto out_dma_free;

0 commit comments

Comments
 (0)