diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2012-05-23 06:35:46 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:06 -0400 |
commit | a6c511c636848f871f5b7aef38e25e5b894b3b48 (patch) | |
tree | 847b421858d21575ff61c02c83e92497d97b92d5 /drivers/bluetooth | |
parent | 38351c66e407e610283e5332b819822055db473c (diff) |
Bluetooth: Rename HCI_QUIRK_NO_RESET to HCI_QUIRK_RESET_ON_CLOSE
HCI_QUIRK_NO_RESET name is misleading - purpose of this quirk is to
reset device on close instead of init, not to not reset at all.
Rename it to HCI_QUIRK_RESET_ON_CLOSE to avoid confusion.
Signed-off-by: Szymon Janc <szymon.janc@tieto.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth')
-rw-r--r-- | drivers/bluetooth/bpa10x.c | 2 | ||||
-rw-r--r-- | drivers/bluetooth/btusb.c | 6 | ||||
-rw-r--r-- | drivers/bluetooth/hci_ldisc.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/drivers/bluetooth/bpa10x.c b/drivers/bluetooth/bpa10x.c index 609861a53c28..29caaed2d715 100644 --- a/drivers/bluetooth/bpa10x.c +++ b/drivers/bluetooth/bpa10x.c | |||
@@ -470,7 +470,7 @@ static int bpa10x_probe(struct usb_interface *intf, const struct usb_device_id * | |||
470 | hdev->flush = bpa10x_flush; | 470 | hdev->flush = bpa10x_flush; |
471 | hdev->send = bpa10x_send_frame; | 471 | hdev->send = bpa10x_send_frame; |
472 | 472 | ||
473 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); | 473 | set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); |
474 | 474 | ||
475 | err = hci_register_dev(hdev); | 475 | err = hci_register_dev(hdev); |
476 | if (err < 0) { | 476 | if (err < 0) { |
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c index c9463af8e564..3a6cdc9b75a3 100644 --- a/drivers/bluetooth/btusb.c +++ b/drivers/bluetooth/btusb.c | |||
@@ -1026,7 +1026,7 @@ static int btusb_probe(struct usb_interface *intf, | |||
1026 | data->isoc = usb_ifnum_to_if(data->udev, 1); | 1026 | data->isoc = usb_ifnum_to_if(data->udev, 1); |
1027 | 1027 | ||
1028 | if (!reset) | 1028 | if (!reset) |
1029 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); | 1029 | set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); |
1030 | 1030 | ||
1031 | if (force_scofix || id->driver_info & BTUSB_WRONG_SCO_MTU) { | 1031 | if (force_scofix || id->driver_info & BTUSB_WRONG_SCO_MTU) { |
1032 | if (!disable_scofix) | 1032 | if (!disable_scofix) |
@@ -1038,7 +1038,7 @@ static int btusb_probe(struct usb_interface *intf, | |||
1038 | 1038 | ||
1039 | if (id->driver_info & BTUSB_DIGIANSWER) { | 1039 | if (id->driver_info & BTUSB_DIGIANSWER) { |
1040 | data->cmdreq_type = USB_TYPE_VENDOR; | 1040 | data->cmdreq_type = USB_TYPE_VENDOR; |
1041 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); | 1041 | set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); |
1042 | } | 1042 | } |
1043 | 1043 | ||
1044 | if (id->driver_info & BTUSB_CSR) { | 1044 | if (id->driver_info & BTUSB_CSR) { |
@@ -1046,7 +1046,7 @@ static int btusb_probe(struct usb_interface *intf, | |||
1046 | 1046 | ||
1047 | /* Old firmware would otherwise execute USB reset */ | 1047 | /* Old firmware would otherwise execute USB reset */ |
1048 | if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x117) | 1048 | if (le16_to_cpu(udev->descriptor.bcdDevice) < 0x117) |
1049 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); | 1049 | set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); |
1050 | } | 1050 | } |
1051 | 1051 | ||
1052 | if (id->driver_info & BTUSB_SNIFFER) { | 1052 | if (id->driver_info & BTUSB_SNIFFER) { |
diff --git a/drivers/bluetooth/hci_ldisc.c b/drivers/bluetooth/hci_ldisc.c index e564579a6115..2f9b796e106e 100644 --- a/drivers/bluetooth/hci_ldisc.c +++ b/drivers/bluetooth/hci_ldisc.c | |||
@@ -394,7 +394,7 @@ static int hci_uart_register_dev(struct hci_uart *hu) | |||
394 | set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks); | 394 | set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks); |
395 | 395 | ||
396 | if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags)) | 396 | if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags)) |
397 | set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks); | 397 | set_bit(HCI_QUIRK_RESET_ON_CLOSE, &hdev->quirks); |
398 | 398 | ||
399 | if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags)) | 399 | if (test_bit(HCI_UART_CREATE_AMP, &hu->hdev_flags)) |
400 | hdev->dev_type = HCI_AMP; | 400 | hdev->dev_type = HCI_AMP; |