OSDN Git Service

Bluetooth: hci_qca: Request Tx clock vote off only when Tx is pending
authorBalakrishna Godavarthi <bgodavar@codeaurora.org>
Fri, 12 Jun 2020 12:15:17 +0000 (17:45 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 12 Jun 2020 13:17:47 +0000 (15:17 +0200)
commit201a11246d6018bb4ce648e62ed099950f4b174a
treeffc7cbcd5f7c5a09075e89b42ac9218665425e0a
parent2d68476cfc2afa1a1a2d9007a23264ffc6308e77
Bluetooth: hci_qca: Request Tx clock vote off only when Tx is pending

Tx pending flag is set to true when HOST IBS state is AWAKE or
AWAKEING. If IBS state is ASLEEP, then Tx clock is already voted
off. To optimize further directly calling serial_clock_vote()
instead of qca_wq_serial_tx_clock_vote_off(), at this point of
qca_suspend() already data is sent out. No need to wake up hci to
send data.

Signed-off-by: Balakrishna Godavarthi <bgodavar@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/hci_qca.c