diff options
author | Stefan Wahren <wahrenst@gmx.net> | 2019-10-06 18:28:19 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2019-10-21 18:05:14 +0300 |
commit | 3347a80965b38f096b1d6f995c00c9c9e53d4b8b (patch) | |
tree | 9f65520a39317e5df0a9194f7f3365c07843ef8a /drivers/bluetooth/hci_bcm.c | |
parent | bba79fee7a54ff5351fa36cb324d16b108a7ca06 (diff) | |
download | linux-3347a80965b38f096b1d6f995c00c9c9e53d4b8b.tar.xz |
Bluetooth: hci_bcm: Fix RTS handling during startup
The RPi 4 uses the hardware handshake lines for CYW43455, but the chip
doesn't react to HCI requests during DT probe. The reason is the inproper
handling of the RTS line during startup. According to the startup
signaling sequence in the CYW43455 datasheet, the hosts RTS line must
be driven after BT_REG_ON and BT_HOST_WAKE.
Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/hci_bcm.c')
-rw-r--r-- | drivers/bluetooth/hci_bcm.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index 7646636f2d18..0f73f6a686cb 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c @@ -445,9 +445,11 @@ static int bcm_open(struct hci_uart *hu) out: if (bcm->dev) { + hci_uart_set_flow_control(hu, true); hu->init_speed = bcm->dev->init_speed; hu->oper_speed = bcm->dev->oper_speed; err = bcm_gpio_set_power(bcm->dev, true); + hci_uart_set_flow_control(hu, false); if (err) goto err_unset_hu; } |