Skip to content

Commit

Permalink
HACK: bluetooth: hci_bcm: Sleep explicite after power up
Browse files Browse the repository at this point in the history
The driver relies on the fact that CTS signalize the availability
of the chip. Since the RPi 3 doesn't have any hardware flow-control
the driver sends data too soon. So avoid a possible data loss by
sleeping until the chip came up.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
  • Loading branch information
lategoodbye committed Mar 7, 2018
1 parent 8942885 commit ed59002
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions drivers/bluetooth/hci_bcm.c
Expand Up @@ -227,6 +227,11 @@ static int bcm_gpio_set_power(struct bcm_device *dev, bool powered)

dev->clk_enabled = powered;

if (powered) {
/* Don't rely on CTS and wait until chip came up */
msleep(15);
}

return 0;

err_revert_shutdown:
Expand Down

0 comments on commit ed59002

Please sign in to comment.