Skip to content

Commit

Permalink
Bluetooth: hci_bcm4377: Increase boot timeout
Browse files Browse the repository at this point in the history
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 <marcan@marcan.st>
  • Loading branch information
marcan committed Oct 5, 2023
1 parent 53adf46 commit 8ec770b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/bluetooth/hci_bcm4377.c
Expand Up @@ -34,7 +34,8 @@ enum bcm4377_chip {
#define BCM4387_DEVICE_ID 0x5f71
#define BCM4388_DEVICE_ID 0x5f72

#define BCM4377_TIMEOUT 1000
#define BCM4377_TIMEOUT msecs_to_jiffies(1000)
#define BCM4377_BOOT_TIMEOUT msecs_to_jiffies(5000)

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

ret = wait_for_completion_interruptible_timeout(&bcm4377->event,
BCM4377_TIMEOUT);
BCM4377_BOOT_TIMEOUT);
if (ret == 0) {
ret = -ETIMEDOUT;
goto out_dma_free;
Expand Down

0 comments on commit 8ec770b

Please sign in to comment.