[PATCH v2] Bluetooth: btrtl: Enable WBS for the specific Realtek devices

2021-01-18 Thread max.chou
From: Max Chou By this change, it will enable WBS supported on the specific Realtek BT devices, such as RTL8822C and RTL8852A. In the future, it's able to maintain what the Realtek devices support WBS here. Tested-by: Hilda Wu Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Max Chou --- v

[PATCH] Bluetooth: btusb: Add a Kconfig option to disable USB wakeup by default

2020-12-29 Thread max.chou
From: Max Chou For the original commit of 9e45524a011107a73bc2cdde8370c61e82e93a4d, wakeup is always disabled for Realtek Bluetooth devices. However, there's the capability for Realtek Bluetooth devices to apply USB wakeup. Otherwise, there's the better power consumption without USB wakeup during

[PATCH v3] Bluetooth: btrtl: Enable WBS for the specific Realtek devices

2021-01-21 Thread max.chou
From: Max Chou By this change, it will enable WBS supported on the specific Realtek BT devices, such as RTL8822C and RTL8852A. In the future, it's able to maintain what the Realtek devices support WBS here. Tested-by: Hilda Wu Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Max Chou --- c

[PATCH v4] Bluetooth: btrtl: Enable WBS for the specific Realtek devices

2021-01-26 Thread max.chou
From: Max Chou By this change, it will enable WBS supported on the specific Realtek BT devices, such as RTL8822C and RTL8852A. In the future, it's able to maintain what the Realtek devices support WBS here. Tested-by: Hilda Wu Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Max Chou --- c

[PATCH v5] Bluetooth: btrtl: Enable WBS for the specific Realtek devices

2021-01-26 Thread max.chou
From: Max Chou By this change, it will enable WBS supported on the specific Realtek BT devices, such as RTL8822C and RTL8852A. In the future, it's able to maintain what the Realtek devices support WBS here. Tested-by: Hilda Wu Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Max Chou --- c

[PATCH v6] Bluetooth: btrtl: Enable WBS for the specific Realtek devices

2021-01-26 Thread max.chou
From: Max Chou By this change, it will enable WBS supported on the specific Realtek BT devices, such as RTL8822C and RTL8852A. In the future, it's able to maintain what the Realtek devices support WBS here. Tested-by: Hilda Wu Reviewed-by: Abhishek Pandit-Subedi Signed-off-by: Max Chou --- c

[PATCH] Bluetooth: btrtl: Enable WBS for the specific Realtek devices

2021-01-18 Thread max.chou
From: Max Chou By this change, it will enable WBS supported on the specific Realtek BT devices, such as RTL8822C and RTL8852A. In the future, it's able to maintain what the Realtek devices support WBS here. Tested-by: Hilda Wu Signed-off-by: Max Chou --- drivers/bluetooth/btrtl.c | 26 +++

[PATCH] Bluetooth: btrtl: Fix an issue that failing to download the FW which size is over 32K bytes

2019-09-02 Thread max.chou
From: Max Chou Fix the issue that when the FW size is 32K+, it will fail for the download process because of the incorrect index. Signed-off-by: Max Chou --- drivers/bluetooth/btrtl.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/drivers/bluetooth/btrtl.c b/drivers

[PATCH] Bluetooth: btrtl: Fix an issue that failing to download the FW which size is over 32K bytes

2019-09-04 Thread max.chou
From: Max Chou Fix the issue that when the FW size is 32K+, it will fail for the download process because of the incorrect index. When firmware patch length is over 32K, "dl_cmd->index" may >= 0x80. It will be thought as "data end" that download process will not complete. However, driver should

[PATCH v2] Bluetooth: btrtl: Fix an issue that failing to download the FW which size is over 32K bytes

2019-09-04 Thread max.chou
From: Max Chou Fix the issue that when the FW size is 32K+, it will fail for the download process because of the incorrect index. When firmware patch length is over 32K, "dl_cmd->index" may >= 0x80. It will be thought as "data end" that download process will not complete. However, driver should

[PATCH] Bluetooth: btrtl: Fix an issue for the incorrect error return code.

2019-09-18 Thread max.chou
From: Max Chou It does not need the '-' for PTR_ERR(skb) because PTR_ERR(skb) will return the negative value during errors. Signed-off-by: Max Chou --- drivers/bluetooth/btrtl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btrtl.c b/drivers/bluetooth/bt

[PATCH] Bluetooth: btusb: Add more IDs to usb_device_id table for Realtek RTL8822CE

2020-10-28 Thread max.chou
From: Max Chou Add more IDs to usb_device_id table for Realtek RTL8822CE and also support the wideband speech capability. Signed-off-by: Max Chou --- drivers/bluetooth/btusb.c | 18 -- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/drivers/bluetooth/btusb.c b/dr

[PATCH v2] Bluetooth: btusb: Add more IDs to usb_device_id table for Realtek RTL8822CE

2020-10-29 Thread max.chou
From: Max Chou Add more IDs to usb_device_id table for Realtek RTL8822CE and also support the wideband speech capability for all RTL8822CE devices. -Device(04c5:161f) from /sys/kernel/debug/usb/devices T: Bus=02 Lev=02 Prnt=02 Port=05 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.00 Cls=e0(wlcon)

[PATCH] Bluetooth: btrtl: Refine the ic_id_table for clearer and more regular

2020-11-04 Thread max.chou
From: Max Chou Enhance the ic_id_table that it's able to maintain regularly. To judge which chip should be initialized by LMP subversion, HCI revision, HCI version and HCI bus which were given in the ic_id_table. Also, refine the incorrect LMP subversion of ROM for RTL8723D and RTL8723A. Sugges

[PATCH v3] Bluetooth: btusb: Add the more support IDs for Realtek RTL8822CE

2020-11-05 Thread max.chou
From: Max Chou Add the more IDs to usb_device_id table for Realtek RTL8822CE and also support the wideband speech capability for all RTL8822CE devices. -Device(04c5:161f) from /sys/kernel/debug/usb/devices T: Bus=02 Lev=02 Prnt=02 Port=05 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.00 Cls=e0(wl

[PATCH] Bluetooth: btusb: btrtl: Add support for RTL8852A

2020-11-09 Thread max.chou
From: Max Chou Add the support for RTL8852A BT controller on USB interface. The necessary firmware will be submitted to linux-firmware project. The device info from /sys/kernel/debug/usb/devices as below. T: Bus=02 Lev=02 Prnt=02 Port=05 Cnt=01 Dev#= 10 Spd=12 MxCh= 0 D: Ver= 1.00 Cls=e0(wl

[PATCH] Bluetooth: Return NOTIFY_DONE for hci_suspend_notifier

2020-07-23 Thread max.chou
From: Max Chou The original return is NOTIFY_STOP, but notifier_call_chain would stop the future call for register_pm_notifier even registered on other Kernel modules with the same priority which value is zero. Signed-off-by: Max Chou --- net/bluetooth/hci_core.c | 2 +- 1 file changed, 1 inse