Skip to content

Commit 42c6c7a

Browse files
committed
Bluetooth: btintel_pci: Fix build warning
This fixes the following warning: drivers/bluetooth/btintel_pcie.c:695:20: warning: unused function 'btintel_pcie_in_rom' [-Wunused-function] 695 | static inline bool btintel_pcie_in_rom(struct btintel_pcie_data *data) | ^~~~~~~~~~~~~~~~~~~ Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
1 parent 15f6f62 commit 42c6c7a

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

drivers/bluetooth/btintel_pcie.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -685,20 +685,6 @@ static int btintel_pcie_enable_bt(struct btintel_pcie_data *data)
685685
return 0;
686686
}
687687

688-
/* BIT(0) - ROM, BIT(1) - IML and BIT(3) - OP
689-
* Sometimes during firmware image switching from ROM to IML or IML to OP image,
690-
* the previous image bit is not cleared by firmware when alive interrupt is
691-
* received. Driver needs to take care of these sticky bits when deciding the
692-
* current image running on controller.
693-
* Ex: 0x10 and 0x11 - both represents that controller is running IML
694-
*/
695-
static inline bool btintel_pcie_in_rom(struct btintel_pcie_data *data)
696-
{
697-
return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_ROM &&
698-
!(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_IML) &&
699-
!(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW);
700-
}
701-
702688
static inline bool btintel_pcie_in_op(struct btintel_pcie_data *data)
703689
{
704690
return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW;

0 commit comments

Comments
 (0)