Skip to content

Commit

Permalink
Bluetooth: Do not auto off AMP controller
Browse files Browse the repository at this point in the history
Since AMP controller is not managed by user space do not shut it down.

Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
  • Loading branch information
Andrei Emeltchenko authored and Gustavo Padovan committed Jun 30, 2012
1 parent 74ad8fd commit ce2be9a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion net/bluetooth/hci_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1743,8 +1743,11 @@ int hci_register_dev(struct hci_dev *hdev)
}
}

set_bit(HCI_AUTO_OFF, &hdev->dev_flags);
set_bit(HCI_SETUP, &hdev->dev_flags);

if (hdev->dev_type != HCI_AMP)
set_bit(HCI_AUTO_OFF, &hdev->dev_flags);

schedule_work(&hdev->power_on);

hci_notify(hdev, HCI_DEV_REG);
Expand Down

0 comments on commit ce2be9a

Please sign in to comment.