Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[Bluetooth]: Add another ignore parameter to the HCI USB driver

This patchs adds the module parameter ignore_dga to the HCI USB driver
which makes it possible to prevent this driver from being loaded by
some buggy Digianswer devices.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Marcel Holtmann and committed by
David S. Miller
7ef934b3 89f5f0ae

+7
+7
drivers/bluetooth/hci_usb.c
··· 65 65 #endif 66 66 67 67 static int ignore = 0; 68 + static int ignore_dga = 0; 68 69 static int ignore_csr = 0; 69 70 static int ignore_sniffer = 0; 70 71 static int reset = 0; ··· 842 841 if (ignore || id->driver_info & HCI_IGNORE) 843 842 return -ENODEV; 844 843 844 + if (ignore_dga && id->driver_info & HCI_DIGIANSWER) 845 + return -ENODEV; 846 + 845 847 if (ignore_csr && id->driver_info & HCI_CSR) 846 848 return -ENODEV; 847 849 ··· 1073 1069 1074 1070 module_param(ignore, bool, 0644); 1075 1071 MODULE_PARM_DESC(ignore, "Ignore devices from the matching table"); 1072 + 1073 + module_param(ignore_dga, bool, 0644); 1074 + MODULE_PARM_DESC(ignore_dga, "Ignore devices with id 08fd:0001"); 1076 1075 1077 1076 module_param(ignore_csr, bool, 0644); 1078 1077 MODULE_PARM_DESC(ignore_csr, "Ignore devices with id 0a12:0001");