Bluetooth: hci_ll: Add support for the external clock
authorUlf Hansson <ulf.hansson@linaro.org>
Wed, 7 Jun 2017 09:08:21 +0000 (11:08 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 9 Jun 2017 05:35:32 +0000 (07:35 +0200)
commit43d3d092c7cbd1685e1c8ff25ae0b89b5b729388
treeb1be6a6cb7fda03059ccb37f79557044800c0f2a
parent3c8e42a7935f720c403612abf896d962a7aa1495
Bluetooth: hci_ll: Add support for the external clock

Add support to manage the external clock provided to the WiLink combo chip
as it's needed for any of the transport interfaces.

To avoid breaking platforms not yet specifying the external clock, we make
it optional. In case the clock is successfully fetched during ->probe(),
let's manage it via the ->open|close() callbacks, to make sure the device
get properly powered on/off.

Fixes: ea452678734e ("arm64: dts: hikey: Fix WiFi support")
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_ll.c