diff options
author | Zijun Hu <zijuhu@codeaurora.org> | 2020-05-29 18:58:56 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2020-06-01 09:05:07 +0300 |
commit | d3a0fe6b0988241c64ef4f6a1045423cc79a612a (patch) | |
tree | 3d6936d77084310ea55384b1054e725966e4ba4e /drivers/bluetooth | |
parent | 4942857b015ede4fab8b262931244a3c1006a2a6 (diff) | |
download | linux-d3a0fe6b0988241c64ef4f6a1045423cc79a612a.tar.xz |
Bluetooth: btmtkuart: Use serdev_device_write_buf() instead of serdev_device_write()
serdev_device_write() is not appropriate at here because
serdev_device_write_wakeup() is not used to release completion hold
by the former at @write_wakeup member of struct serdev_device_ops.
Fix by using serdev_device_write_buf() instead of serdev_device_write().
Signed-off-by: Zijun Hu <zijuhu@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/btmtkuart.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/bluetooth/btmtkuart.c b/drivers/bluetooth/btmtkuart.c index 8a81fbca5c9d..6c40bc75fb5b 100644 --- a/drivers/bluetooth/btmtkuart.c +++ b/drivers/bluetooth/btmtkuart.c @@ -695,8 +695,7 @@ static int btmtkuart_change_baudrate(struct hci_dev *hdev) /* Send a dummy byte 0xff to activate the new baudrate */ param = 0xff; - err = serdev_device_write(bdev->serdev, ¶m, sizeof(param), - MAX_SCHEDULE_TIMEOUT); + err = serdev_device_write_buf(bdev->serdev, ¶m, sizeof(param)); if (err < 0 || err < sizeof(param)) return err; |