]> 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)
commit57434f6baf34ecbc4a1625387daafc350d248a88
tree50f19623771183e0e201e89f0a6ad1c35bd1a833
parent54722eabfffa6db740d20affcf4cef798c65f994
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