]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Bluetooth: btintel_pcie: Make driver wait for alive interrupt
authorKiran K <kiran.k@intel.com>
Mon, 21 Jul 2025 09:44:36 +0000 (15:14 +0530)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Jul 2025 14:34:14 +0000 (10:34 -0400)
commit69b3d3acf3dba21e2abad863c80c7114eb110b3d
treecc2c4b7ceebfb422646ecf0d15ea679c9ed7de76
parent7af4d7b53502286c6cf946d397ab183e76d14820
Bluetooth: btintel_pcie: Make driver wait for alive interrupt

The firmware raises an alive interrupt upon receiving the HCI_RESET or
BTINTEL_HCI_OP_RESET (Intel reset - 0xfc01) command. This change fixes
the driver to properly wait for the alive interrupt to avoid driver
sending commands to firmware before it is ready to process.

For details on the handshake between the driver and firmware, refer to
commit 05c200c8f029 ("Bluetooth: btintel_pcie: Add handshake between
driver and firmware").

As the driver needs to handle two interrupts for HCI_OP_RESET and
BTINTEL_HCI_OP_RESET, the firmware ensures that the TX completion
interrupt is always followed by the alive interrupt.

Fixes: 05c200c8f029 ("Bluetooth: btintel_pcie: Add handshake between driver and firmware")
Signed-off-by: Sai Teja Aluvala <aluvala.sai.teja@intel.com>
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
drivers/bluetooth/btintel_pcie.c