* [PATCH v1] Bluetooth: btintel_pci: Fix build warning
@ 2025-03-06 21:38 Luiz Augusto von Dentz
2025-03-06 21:51 ` Paul Menzel
2025-03-07 15:10 ` patchwork-bot+bluetooth
0 siblings, 2 replies; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2025-03-06 21:38 UTC (permalink / raw)
To: linux-bluetooth
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
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>
---
drivers/bluetooth/btintel_pcie.c | 14 --------------
1 file changed, 14 deletions(-)
diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
index f3ab5b41b050..9114be1fc3ce 100644
--- a/drivers/bluetooth/btintel_pcie.c
+++ b/drivers/bluetooth/btintel_pcie.c
@@ -685,20 +685,6 @@ static int btintel_pcie_enable_bt(struct btintel_pcie_data *data)
return 0;
}
-/* BIT(0) - ROM, BIT(1) - IML and BIT(3) - OP
- * Sometimes during firmware image switching from ROM to IML or IML to OP image,
- * the previous image bit is not cleared by firmware when alive interrupt is
- * received. Driver needs to take care of these sticky bits when deciding the
- * current image running on controller.
- * Ex: 0x10 and 0x11 - both represents that controller is running IML
- */
-static inline bool btintel_pcie_in_rom(struct btintel_pcie_data *data)
-{
- return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_ROM &&
- !(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_IML) &&
- !(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW);
-}
-
static inline bool btintel_pcie_in_op(struct btintel_pcie_data *data)
{
return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW;
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: btintel_pci: Fix build warning
2025-03-06 21:38 [PATCH v1] Bluetooth: btintel_pci: Fix build warning Luiz Augusto von Dentz
@ 2025-03-06 21:51 ` Paul Menzel
2025-03-07 15:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: Paul Menzel @ 2025-03-06 21:51 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Dear Luiz,
Thank you for your patch. Maybe be more specific in the summary/title.
Maybe:
Bluetooth: btintel_pci: Remove unused btintel_pcie_in_rom()
Am 06.03.25 um 22:38 schrieb Luiz Augusto von Dentz:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> 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>
> ---
> drivers/bluetooth/btintel_pcie.c | 14 --------------
> 1 file changed, 14 deletions(-)
>
> diff --git a/drivers/bluetooth/btintel_pcie.c b/drivers/bluetooth/btintel_pcie.c
> index f3ab5b41b050..9114be1fc3ce 100644
> --- a/drivers/bluetooth/btintel_pcie.c
> +++ b/drivers/bluetooth/btintel_pcie.c
> @@ -685,20 +685,6 @@ static int btintel_pcie_enable_bt(struct btintel_pcie_data *data)
> return 0;
> }
>
> -/* BIT(0) - ROM, BIT(1) - IML and BIT(3) - OP
> - * Sometimes during firmware image switching from ROM to IML or IML to OP image,
> - * the previous image bit is not cleared by firmware when alive interrupt is
> - * received. Driver needs to take care of these sticky bits when deciding the
> - * current image running on controller.
> - * Ex: 0x10 and 0x11 - both represents that controller is running IML
> - */
> -static inline bool btintel_pcie_in_rom(struct btintel_pcie_data *data)
> -{
> - return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_ROM &&
> - !(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_IML) &&
> - !(data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW);
> -}
> -
> static inline bool btintel_pcie_in_op(struct btintel_pcie_data *data)
> {
> return data->boot_stage_cache & BTINTEL_PCIE_CSR_BOOT_STAGE_OPFW;
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Kind regards,
Paul
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH v1] Bluetooth: btintel_pci: Fix build warning
2025-03-06 21:38 [PATCH v1] Bluetooth: btintel_pci: Fix build warning Luiz Augusto von Dentz
2025-03-06 21:51 ` Paul Menzel
@ 2025-03-07 15:10 ` patchwork-bot+bluetooth
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+bluetooth @ 2025-03-07 15:10 UTC (permalink / raw)
To: Luiz Augusto von Dentz; +Cc: linux-bluetooth
Hello:
This patch was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:
On Thu, 6 Mar 2025 16:38:46 -0500 you wrote:
> From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
>
> 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)
> | ^~~~~~~~~~~~~~~~~~~
>
> [...]
Here is the summary with links:
- [v1] Bluetooth: btintel_pci: Fix build warning
https://git.kernel.org/bluetooth/bluetooth-next/c/dfa48dfca48e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-07 15:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-06 21:38 [PATCH v1] Bluetooth: btintel_pci: Fix build warning Luiz Augusto von Dentz
2025-03-06 21:51 ` Paul Menzel
2025-03-07 15:10 ` patchwork-bot+bluetooth
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox