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)
commit0395ffc1ee0509df11ad830772c22d13627e02ec
treeadcc678aece135fc5e19b3c5e57e2a743b075a72
parent85998229161f8a83863c371aa021bdb0887b9a63
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