public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Bluetooth: hci_bcm4377 fixes
@ 2024-05-12 12:12 Sven Peter via B4 Relay
  2024-05-12 12:12 ` [PATCH 1/2] Bluetooth: hci_bcm4377: Increase boot timeout Sven Peter via B4 Relay
  2024-05-12 12:12 ` [PATCH 2/2] Bluetooth: hci_bcm4377: Fix msgid release Sven Peter via B4 Relay
  0 siblings, 2 replies; 7+ messages in thread
From: Sven Peter via B4 Relay @ 2024-05-12 12:12 UTC (permalink / raw)
  To: Hector Martin, Alyssa Rosenzweig, Marcel Holtmann,
	Luiz Augusto von Dentz
  Cc: asahi, linux-arm-kernel, linux-bluetooth, linux-kernel,
	Sven Peter, stable

Hi,

There are just two minor fixes from Hector that we've been carrying downstream
for a while now. One increases the timeout while waiting for the firmware to
boot which is optional for the controller already supported upstream but
required for a newer 4388 board for which we'll also submit support soon.
It also fixes the units for the timeouts which is why I've already included it
here. The other one fixes a call to bitmap_release_region where we only wanted
to release a single bit but are actually releasing much more.

Best,

Sven

Signed-off-by: Sven Peter <sven@svenpeter.dev>
---
Hector Martin (2):
      Bluetooth: hci_bcm4377: Increase boot timeout
      Bluetooth: hci_bcm4377: Fix msgid release

 drivers/bluetooth/hci_bcm4377.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
---
base-commit: cf87f46fd34d6c19283d9625a7822f20d90b64a4
change-id: 20240512-btfix-msgid-d76029a7d917

Best regards,
-- 
Sven Peter <sven@svenpeter.dev>



^ permalink raw reply	[flat|nested] 7+ messages in thread
* [PATCH v2 1/3] Bluetooth: hci_bcm4377: Use correct unit for timeouts
@ 2024-05-15 18:15 Sven Peter via B4 Relay
  2024-05-15 18:59 ` Bluetooth: hci_bcm4377 fixes bluez.test.bot
  0 siblings, 1 reply; 7+ messages in thread
From: Sven Peter via B4 Relay @ 2024-05-15 18:15 UTC (permalink / raw)
  To: Hector Martin, Alyssa Rosenzweig, Marcel Holtmann,
	Luiz Augusto von Dentz
  Cc: asahi, linux-arm-kernel, linux-bluetooth, linux-kernel,
	Sven Peter

From: Sven Peter <sven@svenpeter.dev>

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>
---
 drivers/bluetooth/hci_bcm4377.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/bluetooth/hci_bcm4377.c b/drivers/bluetooth/hci_bcm4377.c
index 9a7243d5db71..caf9b64c8111 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

-- 
2.34.1



^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2024-05-15 18:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-12 12:12 [PATCH 0/2] Bluetooth: hci_bcm4377 fixes Sven Peter via B4 Relay
2024-05-12 12:12 ` [PATCH 1/2] Bluetooth: hci_bcm4377: Increase boot timeout Sven Peter via B4 Relay
2024-05-12 12:40   ` Bluetooth: hci_bcm4377 fixes bluez.test.bot
2024-05-12 12:54   ` [PATCH 1/2] Bluetooth: hci_bcm4377: Increase boot timeout Stefan Wahren
2024-05-12 12:12 ` [PATCH 2/2] Bluetooth: hci_bcm4377: Fix msgid release Sven Peter via B4 Relay
2024-05-14  1:15   ` Neal Gompa
  -- strict thread matches above, loose matches on Subject: below --
2024-05-15 18:15 [PATCH v2 1/3] Bluetooth: hci_bcm4377: Use correct unit for timeouts Sven Peter via B4 Relay
2024-05-15 18:59 ` Bluetooth: hci_bcm4377 fixes bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox