diff options
author | Sven Peter <sven@svenpeter.dev> | 2024-05-15 18:15:02 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-03 08:53:44 +0200 |
commit | 424b424fad37a9a7e980ec9971fdb56d60f1084c (patch) | |
tree | 3d3948cb26fa6b2423f7b182cc6ae74a6ac0ffaa /drivers/bluetooth | |
parent | 7c1118588aa66ef5946a109cb06f3e094f37a36a (diff) | |
download | linux-rpi-424b424fad37a9a7e980ec9971fdb56d60f1084c.tar.gz linux-rpi-424b424fad37a9a7e980ec9971fdb56d60f1084c.tar.bz2 linux-rpi-424b424fad37a9a7e980ec9971fdb56d60f1084c.zip |
Bluetooth: hci_bcm4377: Use correct unit for timeouts
[ Upstream commit 56c695a823e4ee1e5294a8340d5afe5de73828ec ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/hci_bcm4377.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c index cf36cdac652d..0dc3ca3d4107 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 |