]> asedeno.scripts.mit.edu Git - linux.git/commit
Bluetooth: hci_qca: Add qca_power_on() API to support both wcn399x and Rome power up
authorRocky Liao <rjliao@codeaurora.org>
Mon, 13 Jan 2020 04:30:20 +0000 (12:30 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 14 Jan 2020 13:54:03 +0000 (14:54 +0100)
commit5e6d8401ade984296ae9629cb06458c2784e1882
tree849a0267ec2710fa575597966d598dc63677ed25
parentdde8010be0a0ed9823cc1ddf75ef8448910821a9
Bluetooth: hci_qca: Add qca_power_on() API to support both wcn399x and Rome power up

This patch adds a unified API qca_power_on() to support both wcn399x and
Rome power on. For wcn399x it calls the qca_wcn3990_init() to init the
regulators, and for Rome it pulls up the bt_en GPIO to power up the btsoc.
It also moves all the power up operation from hdev->open() to
hdev->setup().

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