]> asedeno.scripts.mit.edu Git - linux.git/commit
Bluetooth: hci_qca: Enable power off/on support during hci down/up for QCA Rome
authorRocky Liao <rjliao@codeaurora.org>
Thu, 16 Jan 2020 03:22:54 +0000 (11:22 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 16 Jan 2020 05:30:35 +0000 (06:30 +0100)
commitae563183b647b3bdb47e8a78a5de879adf733735
tree7f9563d58d681c7c947a760ac5da58b76ec496cf
parentbb2500ab0270aa0d1d39614f08f4f9a2dc0df8c1
Bluetooth: hci_qca: Enable power off/on support during hci down/up for QCA Rome

This patch registers hdev->shutdown() callback and also sets
HCI_QUIRK_NON_PERSISTENT_SETUP for QCA Rome. It will power-off the BT chip
during hci down and power-on/initialize the chip again during hci up. As
wcn399x already enabled this, this patch also removed the callback register
and QUIRK setting in qca_setup() for wcn399x and uniformly do this in the
probe() routine.

Signed-off-by: Rocky Liao <rjliao@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c