]> git.karo-electronics.de Git - linux-beck.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)
commit1ab1f239bf17e91b183a0f18fbb22722ff16d164
tree50f19623771183e0e201e89f0a6ad1c35bd1a833
parent0ed97e829458496cc41ff8c39eb330d5a2247191
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