Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: hci_bcm: Prevent early baudrate setting in autobaud mode

Always prevent trying to set device baudrate before calling setup() when
using autobaud mode.

This was previously happening for devices which had device specific data
with member no_early_set_baudrate set to 0.

Signed-off-by: Hakan Jansson <hakan.jansson@infineon.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Hakan Jansson and committed by
Luiz Augusto von Dentz
9baee415 f8cad620

+1 -4
+1 -4
drivers/bluetooth/hci_bcm.c
··· 484 484 /* If oper_speed is set, ldisc/serdev will set the baudrate 485 485 * before calling setup() 486 486 */ 487 - if (!bcm->dev->no_early_set_baudrate) 487 + if (!bcm->dev->no_early_set_baudrate && !bcm->dev->use_autobaud_mode) 488 488 hu->oper_speed = bcm->dev->oper_speed; 489 489 490 490 err = bcm_gpio_set_power(bcm->dev, true); ··· 1204 1204 { 1205 1205 bdev->use_autobaud_mode = device_property_read_bool(bdev->dev, 1206 1206 "brcm,requires-autobaud-mode"); 1207 - if (bdev->use_autobaud_mode) 1208 - bdev->no_early_set_baudrate = true; 1209 - 1210 1207 device_property_read_u32(bdev->dev, "max-speed", &bdev->oper_speed); 1211 1208 device_property_read_u8_array(bdev->dev, "brcm,bt-pcm-int-params", 1212 1209 bdev->pcm_int_params, 5);