]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_bcm: Add PM for BCM devices
authorFrederic Danis <frederic.danis@linux.intel.com>
Tue, 11 Aug 2015 14:35:35 +0000 (16:35 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 11 Aug 2015 19:26:26 +0000 (21:26 +0200)
commitc17ce64a4fe900dab20f6aa88825642a7c96103f
treeadcc678aece135fc5e19b3c5e57e2a743b075a72
parent8bcd52681763b46e4d19e24038d1119132ee1352
Bluetooth: hci_bcm: Add PM for BCM devices

Retrieve "shutdown" and "device_wakeup" GPIOs from ACPI.
Set device off during platform device enumeration.
Set device on only when attached.
As driver can be unbound we need to check if the bcm_device still exists
before calling GPIO's functions, this is protected using device_list_lock.

Signed-off-by: Frederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_bcm.c