]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Bluetooth: hci_ldisc: Use speed set by btattach as oper_speed
authorFrédéric Danis <frederic.danis@collabora.com>
Tue, 20 Aug 2024 14:17:16 +0000 (16:17 +0200)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Tue, 10 Sep 2024 17:05:13 +0000 (13:05 -0400)
commit0519376db710783ebc97f1c72a09424af0bc920a
tree4c8c437345164538ca6dee378b7ad0c5c7efc58c
parentfe4408da5bfd495e0eeea684932a267254f76f11
Bluetooth: hci_ldisc: Use speed set by btattach as oper_speed

Starting a BCM UART controller not defined as a platform device or
a serdev with "btattach -B /dev/ttyS1 -P bcm -S 3000000" works fine
but the serial port remains at the init_speed, i.e. 115200.

The oper_speed is only set if a device is declared in ACPI, device
tree or as a platform device.

This commit copies the serial port speed fixed by hciattach to the
oper_speed on line discipline opening.

Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/hci_ldisc.c