Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291064
b: refs/heads/master
c: a55e1f3
h: refs/heads/master
v: v3
  • Loading branch information
Marcel Holtmann authored and Johan Hedberg committed Feb 24, 2012
1 parent af45226 commit aec05cf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28b8df77449faa03b573638e089a855f8d25e0ed
refs/heads/master: a55e1f388767116836d32457a50eda7da3e925e5
11 changes: 3 additions & 8 deletions trunk/drivers/bluetooth/hci_ldisc.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@

#define VERSION "2.2"

static bool reset = 0;

static struct hci_uart_proto *hup[HCI_UART_MAX_PROTO];

int hci_uart_register_proto(struct hci_uart_proto *p)
Expand Down Expand Up @@ -392,12 +390,12 @@ static int hci_uart_register_dev(struct hci_uart *hu)
hdev->send = hci_uart_send_frame;
hdev->parent = hu->tty->dev;

if (!reset)
set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks);

if (test_bit(HCI_UART_RAW_DEVICE, &hu->hdev_flags))
set_bit(HCI_QUIRK_RAW_DEVICE, &hdev->quirks);

if (!test_bit(HCI_UART_RESET_ON_INIT, &hu->hdev_flags))
set_bit(HCI_QUIRK_NO_RESET, &hdev->quirks);

if (hci_register_dev(hdev) < 0) {
BT_ERR("Can't register HCI device");
hci_free_dev(hdev);
Expand Down Expand Up @@ -584,9 +582,6 @@ static void __exit hci_uart_exit(void)
module_init(hci_uart_init);
module_exit(hci_uart_exit);

module_param(reset, bool, 0644);
MODULE_PARM_DESC(reset, "Send HCI reset command on initialization");

MODULE_AUTHOR("Marcel Holtmann <marcel@holtmann.org>");
MODULE_DESCRIPTION("Bluetooth HCI UART driver ver " VERSION);
MODULE_VERSION(VERSION);
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/bluetooth/hci_uart.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
#define HCI_UART_ATH3K 5

#define HCI_UART_RAW_DEVICE 0
#define HCI_UART_RESET_ON_INIT 1

struct hci_uart;

Expand Down

0 comments on commit aec05cf

Please sign in to comment.