]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: hci_intel: Add support for platform driver
authorLoic Poulain <loic.poulain@intel.com>
Thu, 27 Aug 2015 05:21:51 +0000 (07:21 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 28 Aug 2015 19:00:38 +0000 (21:00 +0200)
commit2e2a03b56451dd6c35c01d97b7b9a670a8999f56
tree50f19623771183e0e201e89f0a6ad1c35bd1a833
parent14e05ddbb90522e28050ed23bce62cad8b5c660e
Bluetooth: hci_intel: Add support for platform driver

A platform device can be used to provide some specific resources in
order to manage the controller. In this first patch we retrieve the
reset gpio which is used to power on/off the controller.

The main issue is to match the current tty with the correct pdev.
In case of ACPI, we can easily find the right tty/pdev pair because
they are both child of the same UART port.

If controller is powered-on from the driver, we need to wait for a
HCI boot event before being able to send any command.

Signed-off-by: Loic Poulain <loic.poulain@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_intel.c