From: Sven Peter Date: Wed, 15 May 2024 18:15:02 +0000 (+0000) Subject: Bluetooth: hci_bcm4377: Use correct unit for timeouts X-Git-Tag: v6.11-rc1~163^2~12^2~68 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=56c695a823e4ee1e5294a8340d5afe5de73828ec;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Luiz Augusto von Dentz --- diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c index d90858ea2fe59..a77a30fdc630e 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