summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/hci_bcm4377.c
diff options
context:
space:
mode:
authorSven Peter <sven@svenpeter.dev>2024-05-15 18:15:02 +0000
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2024-07-14 21:33:24 -0400
commit56c695a823e4ee1e5294a8340d5afe5de73828ec (patch)
tree6aabb0e2cb6bb178bc04d53a89102411595e5022 /drivers/bluetooth/hci_bcm4377.c
parent0ece498c27d8cd2fdad6f49a6abc34b8badd8fbc (diff)
downloadlwn-56c695a823e4ee1e5294a8340d5afe5de73828ec.tar.gz
lwn-56c695a823e4ee1e5294a8340d5afe5de73828ec.zip
Bluetooth: hci_bcm4377: Use correct unit for timeouts
BCM4377_TIMEOUT is always used to wait for completitions and their API expects a timeout in jiffies instead of msecs. Fixes: 8a06127602de ("Bluetooth: hci_bcm4377: Add new driver for BCM4377 PCIe boards") Signed-off-by: Sven Peter <sven@svenpeter.dev> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth/hci_bcm4377.c')
-rw-r--r--drivers/bluetooth/hci_bcm4377.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c
index d90858ea2fe5..a77a30fdc630 100644
--- a/drivers/bluetooth/hci_bcm4377.c
+++ b/drivers/bluetooth/hci_bcm4377.c
@@ -32,7 +32,7 @@ enum bcm4377_chip {
#define BCM4378_DEVICE_ID 0x5f69
#define BCM4387_DEVICE_ID 0x5f71
-#define BCM4377_TIMEOUT 1000
+#define BCM4377_TIMEOUT msecs_to_jiffies(1000)
/*
* These devices only support DMA transactions inside a 32bit window