]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6c3db9ba6ce1857274871f5284a18a2f5c359e78
treeffc7cbcd5f7c5a09075e89b42ac9218665425e0a
parent161f34098dcb08c90a635c1ab36e552e40582cf8
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