Message ID | 1590767936-21907-1-git-send-email-zijuhu@codeaurora.org (mailing list archive) |
---|---|
State | Mainlined |
Commit | d3a0fe6b0988241c64ef4f6a1045423cc79a612a |
Headers | show |
Series | [v1] Bluetooth: btmtkuart: Use serdev_device_write_buf() instead of serdev_device_write() | expand |
Hi Zijun, > 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> > --- > drivers/bluetooth/btmtkuart.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) patch has been applied to bluetooth-next tree. Regards Marcel
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;
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> --- drivers/bluetooth/btmtkuart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)