Searched hist:64057 (Results 1 - 1 of 1) sorted by relevance

/linux-master/drivers/bluetooth/
H A Dbtmtkuart.cdiff 64057f05 Mon Dec 11 09:40:19 MST 2023 Francesco Dolcini <francesco.dolcini@toradex.com> Bluetooth: btmtkuart: fix recv_buf() return value

Serdev recv_buf() callback is supposed to return the amount of bytes
consumed, therefore an int in between 0 and count.

Do not return negative number in case of issue, just print an error and
return count. This fixes a WARN in ttyport_receive_buf().

Link: https://lore.kernel.org/all/087be419-ec6b-47ad-851a-5e1e3ea5cfcc@kernel.org/
Fixes: 7237c4c9ec92 ("Bluetooth: mediatek: Add protocol support for MediaTek serial devices")
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

Completed in 155 milliseconds