kernel_samsung_a53x/drivers/bluetooth
Francesco Dolcini d849e7892c Bluetooth: btmtkuart: fix recv_buf() return value
[ Upstream commit 64057f051f20c2a2184b9db7f8037d928d68a4f4 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 12:12:38 +01:00
..
ath3k.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm43xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bcm203x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bfusb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bluecard_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bpa10x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bt3c_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btbcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btbcm.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btintel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btintel.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_debugfs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_drv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_main.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_sdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmrvl_sdio.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmtksdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btmtkuart.c Bluetooth: btmtkuart: fix recv_buf() return value 2024-11-18 12:12:38 +01:00
btpower.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btqca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btqca.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btqcomsmd.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrsi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrtl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btrtl.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btsdio.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
btusb.c Bluetooth: btusb: Add 0bda:b85b for Fn-Link RTL8852BE 2024-11-18 11:43:27 +01:00
btwilink.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dtl1_cs.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
h4_recv.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ag6xx.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ath.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_bcm.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_bcsp.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_h4.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_h5.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_intel.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ldisc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_ll.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_mrvl.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_nokia.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_qca.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_serdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_uart.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hci_vhci.c Bluetooth: vhci: Fix race when opening vhci device 2024-11-08 11:26:08 +01:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00