Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH] Bluetooth: hci_bcm: Default to 4 Mbps
@ 2026-08-29 10:02 Paul Cercueil
  2026-08-29 10:50 ` bluez.test.bot
  2026-08-31 14:56 ` [PATCH] " Luiz Augusto von Dentz
  0 siblings, 2 replies; 4+ messages in thread
From: Paul Cercueil @ 2026-08-29 10:02 UTC (permalink / raw)
  To: Marcel Holtmann, Luiz Augusto von Dentz
  Cc: linux-bluetooth, linux-kernel, Paul Cercueil

The ACPI path already did default to 4000000 baud, while the OF path did
not, for some reason. This meant that unless overridden with the
'max-speed' OF property, the serial port would stay at the init speed of
115200 bps, making it unsuitable with high-speed Bluetooth devices like
audio equipment.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
---
 drivers/bluetooth/hci_bcm.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c
index 9a103db7e355..c44d552f9ad5 100644
--- a/drivers/bluetooth/hci_bcm.c
+++ b/drivers/bluetooth/hci_bcm.c
@@ -1224,6 +1224,7 @@ static int bcm_acpi_probe(struct bcm_device *dev)
 
 static int bcm_of_probe(struct bcm_device *bdev)
 {
+	bdev->oper_speed = 4000000;
 	bdev->use_autobaud_mode = device_property_read_bool(bdev->dev,
 							    "brcm,requires-autobaud-mode");
 	device_property_read_u32(bdev->dev, "max-speed", &bdev->oper_speed);
-- 
2.53.0


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

* RE: Bluetooth: hci_bcm: Default to 4 Mbps
  2026-08-29 10:02 [PATCH] Bluetooth: hci_bcm: Default to 4 Mbps Paul Cercueil
@ 2026-08-29 10:50 ` bluez.test.bot
  2026-08-31 14:56 ` [PATCH] " Luiz Augusto von Dentz
  1 sibling, 0 replies; 4+ messages in thread
From: bluez.test.bot @ 2026-08-29 10:50 UTC (permalink / raw)
  To: linux-bluetooth, paul

[-- Attachment #1: Type: text/plain, Size: 1181 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1153580

---Test result---

Test Summary:
CheckPatch                    PASS      0.98 seconds
VerifyFixes                   PASS      0.13 seconds
VerifySignedoff               PASS      0.14 seconds
GitLint                       PASS      0.45 seconds
SubjectPrefix                 PASS      0.13 seconds
BuildKernel                   PASS      25.20 seconds
CheckAllWarning               PASS      28.30 seconds
CheckSparse                   PASS      27.21 seconds
BuildKernel32                 PASS      24.78 seconds
CheckKernelLLVM               SKIP      0.00 seconds
TestRunnerSetup               PASS      459.99 seconds
IncrementalBuild              PASS      23.99 seconds

Details
##############################
Test: CheckKernelLLVM - SKIP
Desc: Build kernel with LLVM + context analysis
Output:
Clang not found


https://github.com/bluez/bluetooth-next/pull/663

---
Regards,
Linux Bluetooth


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

* Re: [PATCH] Bluetooth: hci_bcm: Default to 4 Mbps
  2026-08-29 10:02 [PATCH] Bluetooth: hci_bcm: Default to 4 Mbps Paul Cercueil
  2026-08-29 10:50 ` bluez.test.bot
@ 2026-08-31 14:56 ` Luiz Augusto von Dentz
  2026-09-01 14:24   ` Paul Cercueil
  1 sibling, 1 reply; 4+ messages in thread
From: Luiz Augusto von Dentz @ 2026-08-31 14:56 UTC (permalink / raw)
  To: Paul Cercueil; +Cc: Marcel Holtmann, linux-bluetooth, linux-kernel

Hi Paul,

On Sat, Aug 29, 2026 at 6:02 AM Paul Cercueil <paul@crapouillou.net> wrote:
>
> The ACPI path already did default to 4000000 baud, while the OF path did
> not, for some reason. This meant that unless overridden with the
> 'max-speed' OF property, the serial port would stay at the init speed of
> 115200 bps, making it unsuitable with high-speed Bluetooth devices like
> audio equipment.
>
> Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> ---
>  drivers/bluetooth/hci_bcm.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c
> index 9a103db7e355..c44d552f9ad5 100644
> --- a/drivers/bluetooth/hci_bcm.c
> +++ b/drivers/bluetooth/hci_bcm.c
> @@ -1224,6 +1224,7 @@ static int bcm_acpi_probe(struct bcm_device *dev)
>
>  static int bcm_of_probe(struct bcm_device *bdev)
>  {
> +       bdev->oper_speed = 4000000;
>         bdev->use_autobaud_mode = device_property_read_bool(bdev->dev,
>                                                             "brcm,requires-autobaud-mode");
>         device_property_read_u32(bdev->dev, "max-speed", &bdev->oper_speed);
> --
> 2.53.0

Sashiko flagged a problem with this:

https://sashiko.dev/#/patchset/20260829100205.113655-1-paul%40crapouillou.net

-- 
Luiz Augusto von Dentz

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

* Re: [PATCH] Bluetooth: hci_bcm: Default to 4 Mbps
  2026-08-31 14:56 ` [PATCH] " Luiz Augusto von Dentz
@ 2026-09-01 14:24   ` Paul Cercueil
  0 siblings, 0 replies; 4+ messages in thread
From: Paul Cercueil @ 2026-09-01 14:24 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: Marcel Holtmann, linux-bluetooth, linux-kernel

Hi Luiz,

Le lundi 31 août 2026 à 10:56 -0400, Luiz Augusto von Dentz a écrit :
> Hi Paul,
> 
> On Sat, Aug 29, 2026 at 6:02 AM Paul Cercueil <paul@crapouillou.net>
> wrote:
> > 
> > The ACPI path already did default to 4000000 baud, while the OF
> > path did
> > not, for some reason. This meant that unless overridden with the
> > 'max-speed' OF property, the serial port would stay at the init
> > speed of
> > 115200 bps, making it unsuitable with high-speed Bluetooth devices
> > like
> > audio equipment.
> > 
> > Signed-off-by: Paul Cercueil <paul@crapouillou.net>
> > ---
> >  drivers/bluetooth/hci_bcm.c | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/drivers/bluetooth/hci_bcm.c
> > b/drivers/bluetooth/hci_bcm.c
> > index 9a103db7e355..c44d552f9ad5 100644
> > --- a/drivers/bluetooth/hci_bcm.c
> > +++ b/drivers/bluetooth/hci_bcm.c
> > @@ -1224,6 +1224,7 @@ static int bcm_acpi_probe(struct bcm_device
> > *dev)
> > 
> >  static int bcm_of_probe(struct bcm_device *bdev)
> >  {
> > +       bdev->oper_speed = 4000000;
> >         bdev->use_autobaud_mode = device_property_read_bool(bdev-
> > >dev,
> >                                                            
> > "brcm,requires-autobaud-mode");
> >         device_property_read_u32(bdev->dev, "max-speed", &bdev-
> > >oper_speed);
> > --
> > 2.53.0
> 
> Sashiko flagged a problem with this:
> 
> https://sashiko.dev/#/patchset/20260829100205.113655-1-paul%40crapouillou.net

Noted.

The argument about breaking Devicetree backwards compatibility is a
good point, I didn't think about that.

Disregard this patch then.

Cheers,
-Paul

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

end of thread, other threads:[~2026-09-01 14:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-29 10:02 [PATCH] Bluetooth: hci_bcm: Default to 4 Mbps Paul Cercueil
2026-08-29 10:50 ` bluez.test.bot
2026-08-31 14:56 ` [PATCH] " Luiz Augusto von Dentz
2026-09-01 14:24   ` Paul Cercueil

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