Bluetooth: hci_bcm: Add suspend/resume runtime PM functions
authorFrederic Danis <frederic.danis@linux.intel.com>
Wed, 23 Sep 2015 16:18:11 +0000 (18:18 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 24 Sep 2015 14:25:44 +0000 (16:25 +0200)
commite88ab30d3669f08e94e66e7f926713be93af97fc
tree34f074a384a4965259f81ee045b022e9c615f8eb
parent7649faff1cfe4f76dabf78cd53d659d39f65b3c1
Bluetooth: hci_bcm: Add suspend/resume runtime PM functions

Adds autosuspend runtime functionality to BCM UART driver.
Autosuspend is enabled at end of bcm_setup.

bcm_device_lock is used for system sleep functions as they can be
called at any time.
bcm_device_lock is not held for runtime suspend functions as this
is only enabled as long as platform device is opened.

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