Skip to contentSkip to conversation

Bluetooth: btusb: Fix quirks table naming

PATCH Applied Bastien Nocera 4 participants 5 messages Aug 22, 2023 – Aug 23, 2023 Bluetooth drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Bluetooth: btusb: Fix quirks table naming

The quirks table was named "blacklist_table" which isn't a good description for that table as devices detected using it weren't ignored by the driver.

Rename the table to match what it actually does.

---
 drivers/bluetooth/btusb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btusb.c +2 -2
index 764d176e9735..a1be66ef175c 100644
@@ -175,7 +175,7 @@ static const struct usb_device_id btusb_table[] = {
 
 MODULE_DEVICE_TABLE(usb, btusb_table);
 
-static const struct usb_device_id blacklist_table[] = {
+static const struct usb_device_id quirks_table[] = {
 	/* CSR BlueCore devices */
 	{ USB_DEVICE(0x0a12, 0x0001), .driver_info = BTUSB_CSR },
 
@@ -4113,7 +4113,7 @@ static int btusb_probe(struct usb_interface *intf,
 	if (!id->driver_info) {
 		const struct usb_device_id *match;
 
-		match = usb_match_id(intf, blacklist_table);
+		match = usb_match_id(intf, quirks_table);
 		if (match)
 			id = match;
 	}
Signature · 1 line
2.41.0
Reviewed-by on v1 1/1
#1 lore raw

Dear Bastian,

Thank you for the patch.

Am 22.08.23 um 12:20 schrieb Bastien Nocera:

Quoted 5 lines

The quirks table was named "blacklist_table" which isn't a good description for that table as devices detected using it weren't ignored by the driver.

Rename the table to match what it actually does.

Maybe mention the new name also in the summary to be more specific? Maybe:

Bluetooth: btusb: Rename blacklist_table to quirks_table

Quoted 19 lines
---
  drivers/bluetooth/btusb.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btusb.c +1 -1
index 764d176e9735..a1be66ef175c 100644
@@ -175,7 +175,7 @@ static const struct usb_device_id btusb_table[] = {
 
  MODULE_DEVICE_TABLE(usb, btusb_table);
 
-static const struct usb_device_id blacklist_table[] = {
+static const struct usb_device_id quirks_table[] = {
  	/* CSR BlueCore devices */
  	{ USB_DEVICE(0x0a12, 0x0001), .driver_info = BTUSB_CSR },
 

drivers/bluetooth/btusb.c static int btusb_probe(struct usb_interface *intf, · line 4119

Quoted 8 lines
drivers/bluetooth/btusb.c +1 -1
@@ -4113,7 +4113,7 @@ static int btusb_probe(struct usb_interface *intf,
  	if (!id->driver_info) {
  		const struct usb_device_id *match;
 
-		match = usb_match_id(intf, blacklist_table);
+		match = usb_match_id(intf, quirks_table);
  		if (match)
  			id = match;
  	}

Thank you for doing this.

Kind regards,

Paul

#2 lore raw
Quoted 11 lines · Paul Menzel

Dear Bastian,

Thank you for the patch.

Am 22.08.23 um 12:20 schrieb Bastien Nocera:

Quoted 5 lines

The quirks table was named "blacklist_table" which isn't a good description for that table as devices detected using it weren't ignored
by the driver.

Quoted 6 lines
Quoted 1 line

Rename the table to match what it actually does.

Maybe mention the new name also in the summary to be more specific? Maybe:

Bluetooth: btusb: Rename blacklist_table to quirks_table

I think that's clear enough from the commit message itself.

Quoted 38 lines
Quoted 23 lines

---
  drivers/bluetooth/btusb.c | 4 ++--

  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/bluetooth/btusb.c +0 -0
index 764d176e9735..a1be66ef175c 100644
@@ -175,7 +175,7 @@ static const struct usb_device_id btusb_table[]
 = {


  MODULE_DEVICE_TABLE(usb, btusb_table);

drivers/bluetooth/btusb.c +1 -1
-static const struct usb_device_id blacklist_table[] = {
+static const struct usb_device_id quirks_table[] = {

        /* CSR BlueCore devices */
        { USB_DEVICE(0x0a12, 0x0001), .driver_info = BTUSB_CSR },

drivers/bluetooth/btusb.c +0 -0
@@ -4113,7 +4113,7 @@ static int btusb_probe(struct usb_interface
 *intf,
         if (!id->driver_info) {
                 const struct usb_device_id *match;
Quoted 6 lines


-               match = usb_match_id(intf, blacklist_table); +               match = usb_match_id(intf, quirks_table); if (match)
                        id = match;
        }

Thank you for doing this.

Kind regards,

Paul

#3 lore raw
In reply to Bastien Nocera

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=778167

---Test result---

Test Summary:

CheckPatch                    PASS      0.54 seconds
GitLint                       PASS      0.23 seconds
SubjectPrefix                 PASS      0.07 seconds
BuildKernel                   PASS      42.21 seconds
CheckAllWarning               PASS      40.29 seconds
CheckSparse                   PASS      44.94 seconds
CheckSmatch                   PASS      129.05 seconds
BuildKernel32                 PASS      34.84 seconds
TestRunnerSetup               PASS      557.30 seconds
TestRunner_l2cap-tester       PASS      33.48 seconds
TestRunner_iso-tester         PASS      77.29 seconds
TestRunner_bnep-tester        PASS      13.25 seconds
TestRunner_mgmt-tester        PASS      248.29 seconds
TestRunner_rfcomm-tester      PASS      19.17 seconds
TestRunner_sco-tester         PASS      25.49 seconds
TestRunner_ioctl-tester       PASS      24.16 seconds
TestRunner_mesh-tester        PASS      15.32 seconds
TestRunner_smp-tester         PASS      16.72 seconds
TestRunner_userchan-tester    PASS      14.04 seconds
IncrementalBuild              PASS      34.63 seconds

---
Regards,
Linux Bluetooth

#4 lore raw
In reply to Bastien Nocera
This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:

Hello:

This patch was applied to bluetooth/bluetooth-next.git (master) by Luiz Augusto von Dentz <[email protected]>:

Quoted 9 lines · On Tue, 22 Aug 2023 12:20:24 +0200 you wrote:

The quirks table was named "blacklist_table" which isn't a good description for that table as devices detected using it weren't ignored by the driver.

Rename the table to match what it actually does.

[...]

Here is the summary with links:
- Bluetooth: btusb: Fix quirks table naming

    https://git.kernel.org/bluetooth/bluetooth-next/c/5cef82c572a5

You are awesome, thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html