public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* RE: More CONFIG_PM* simplifications
  2026-01-16 12:50 [PATCH 1/3] Bluetooth: btmtksdio: Simplify dev_pm_ops usage Bastien Nocera
@ 2026-01-16 13:36 ` bluez.test.bot
  0 siblings, 0 replies; 9+ messages in thread
From: bluez.test.bot @ 2026-01-16 13:36 UTC (permalink / raw)
  To: linux-bluetooth, hadess

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: drivers/bluetooth/btmtksdio.c:1472
error: drivers/bluetooth/btmtksdio.c: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 9+ messages in thread

* RE: More CONFIG_PM* simplifications
  2026-01-19 10:27 [PATCH v2 1/3] Bluetooth: btmtksdio: Simplify dev_pm_ops usage Bastien Nocera
@ 2026-01-19 10:56 ` bluez.test.bot
  2026-01-19 11:47   ` Bastien Nocera
  0 siblings, 1 reply; 9+ messages in thread
From: bluez.test.bot @ 2026-01-19 10:56 UTC (permalink / raw)
  To: linux-bluetooth, hadess

[-- Attachment #1: Type: text/plain, Size: 561 bytes --]

This is an automated email and please do not reply to this email.

Dear Submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
While preparing the CI tests, the patches you submitted couldn't be applied to the current HEAD of the repository.

----- Output -----

error: patch failed: drivers/bluetooth/btmtksdio.c:1472
error: drivers/bluetooth/btmtksdio.c: patch does not apply
hint: Use 'git am --show-current-patch' to see the failed patch

Please resolve the issue and submit the patches again.


---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: More CONFIG_PM* simplifications
  2026-01-19 10:56 ` More CONFIG_PM* simplifications bluez.test.bot
@ 2026-01-19 11:47   ` Bastien Nocera
  0 siblings, 0 replies; 9+ messages in thread
From: Bastien Nocera @ 2026-01-19 11:47 UTC (permalink / raw)
  To: linux-bluetooth

A similar patch is already in bluetooth-next:
https://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git/commit/?id=fd52b1d0ad7de69b1266c2efa7065e1d2f8acb49

So this patch can be dropped.

On Mon, 2026-01-19 at 02:56 -0800, bluez.test.bot@gmail.com wrote:
> This is an automated email and please do not reply to this email.
> 
> Dear Submitter,
> 
> Thank you for submitting the patches to the linux bluetooth mailing
> list.
> While preparing the CI tests, the patches you submitted couldn't be
> applied to the current HEAD of the repository.
> 
> ----- Output -----
> 
> error: patch failed: drivers/bluetooth/btmtksdio.c:1472
> error: drivers/bluetooth/btmtksdio.c: patch does not apply
> hint: Use 'git am --show-current-patch' to see the failed patch
> 
> Please resolve the issue and submit the patches again.
> 
> 
> ---
> Regards,
> Linux Bluetooth

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 0/2] More CONFIG_PM* simplifications
@ 2026-01-19 12:34 Bastien Nocera
  2026-01-19 12:34 ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Bastien Nocera
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Bastien Nocera @ 2026-01-19 12:34 UTC (permalink / raw)
  To: linux-bluetooth

Follow-up from the earlier "Bluetooth: btusb: Use pm_ptr instead of
#ifdef CONFIG_PM" patch.

Both drivers were successfully compiled with CONFIG_PM disabled.

Changes since v2:
- Drop btmtksdio.c changes, there's a fix in bluetooth-next

Changes since v1:
- Fix "defined but not used" warnings reported by the kernel test robot
- Modify commit messages following review comments

Bastien Nocera (2):
  Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef
  Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's

 drivers/bluetooth/btnxpuart.c |  6 ++----
 drivers/bluetooth/hci_intel.c | 10 ++--------
 2 files changed, 4 insertions(+), 12 deletions(-)

-- 
2.52.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef
  2026-01-19 12:34 [PATCH v3 0/2] More CONFIG_PM* simplifications Bastien Nocera
@ 2026-01-19 12:34 ` Bastien Nocera
  2026-01-19 14:02   ` More CONFIG_PM* simplifications bluez.test.bot
  2026-01-20  6:40   ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Neeraj Sanjay Kale
  2026-01-19 12:35 ` [PATCH v3 2/2] Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's Bastien Nocera
  2026-01-20 18:20 ` [PATCH v3 0/2] More CONFIG_PM* simplifications patchwork-bot+bluetooth
  2 siblings, 2 replies; 9+ messages in thread
From: Bastien Nocera @ 2026-01-19 12:34 UTC (permalink / raw)
  To: linux-bluetooth

The functions are already disabled through the use of pm_ptr() when
CONFIG_PM is disabled, and will be removed from the final linked code
as not needed.

This increases build coverage and allows to drop an #ifdef.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
---
 drivers/bluetooth/btnxpuart.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
index 3b1e9224e965..e7036a48ce48 100644
--- a/drivers/bluetooth/btnxpuart.c
+++ b/drivers/bluetooth/btnxpuart.c
@@ -1947,8 +1947,7 @@ static void nxp_serdev_remove(struct serdev_device *serdev)
 	hci_free_dev(hdev);
 }
 
-#ifdef CONFIG_PM_SLEEP
-static int nxp_serdev_suspend(struct device *dev)
+static int __maybe_unused nxp_serdev_suspend(struct device *dev)
 {
 	struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev);
 	struct ps_data *psdata = &nxpdev->psdata;
@@ -1962,7 +1961,7 @@ static int nxp_serdev_suspend(struct device *dev)
 	return 0;
 }
 
-static int nxp_serdev_resume(struct device *dev)
+static int __maybe_unused nxp_serdev_resume(struct device *dev)
 {
 	struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev);
 	struct ps_data *psdata = &nxpdev->psdata;
@@ -1975,7 +1974,6 @@ static int nxp_serdev_resume(struct device *dev)
 	ps_control(psdata->hdev, PS_STATE_AWAKE);
 	return 0;
 }
-#endif
 
 #ifdef CONFIG_DEV_COREDUMP
 static void nxp_serdev_coredump(struct device *dev)
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH v3 2/2] Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's
  2026-01-19 12:34 [PATCH v3 0/2] More CONFIG_PM* simplifications Bastien Nocera
  2026-01-19 12:34 ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Bastien Nocera
@ 2026-01-19 12:35 ` Bastien Nocera
  2026-01-20 18:20 ` [PATCH v3 0/2] More CONFIG_PM* simplifications patchwork-bot+bluetooth
  2 siblings, 0 replies; 9+ messages in thread
From: Bastien Nocera @ 2026-01-19 12:35 UTC (permalink / raw)
  To: linux-bluetooth

The functions are already disabled if CONFIG_PM or CONFIG_PM_SLEEP are
disabled through the use of SET_SYSTEM_SLEEP_PM_OPS() and
SET_RUNTIME_PM_OPS().

This increases build coverage and allows to drop a few #ifdef's.

Signed-off-by: Bastien Nocera <hadess@hadess.net>
---
 drivers/bluetooth/hci_intel.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/drivers/bluetooth/hci_intel.c b/drivers/bluetooth/hci_intel.c
index 20baf2895dec..f7570c2eaa46 100644
--- a/drivers/bluetooth/hci_intel.c
+++ b/drivers/bluetooth/hci_intel.c
@@ -126,7 +126,6 @@ static int intel_wait_booting(struct hci_uart *hu)
 	return err;
 }
 
-#ifdef CONFIG_PM
 static int intel_wait_lpm_transaction(struct hci_uart *hu)
 {
 	struct intel_data *intel = hu->priv;
@@ -237,7 +236,6 @@ static int intel_lpm_resume(struct hci_uart *hu)
 
 	return 0;
 }
-#endif /* CONFIG_PM */
 
 static int intel_lpm_host_wake(struct hci_uart *hu)
 {
@@ -1066,7 +1064,6 @@ static const struct acpi_device_id intel_acpi_match[] = {
 MODULE_DEVICE_TABLE(acpi, intel_acpi_match);
 #endif
 
-#ifdef CONFIG_PM
 static int intel_suspend_device(struct device *dev)
 {
 	struct intel_device *idev = dev_get_drvdata(dev);
@@ -1090,10 +1087,8 @@ static int intel_resume_device(struct device *dev)
 
 	return 0;
 }
-#endif
 
-#ifdef CONFIG_PM_SLEEP
-static int intel_suspend(struct device *dev)
+static int __maybe_unused intel_suspend(struct device *dev)
 {
 	struct intel_device *idev = dev_get_drvdata(dev);
 
@@ -1103,7 +1098,7 @@ static int intel_suspend(struct device *dev)
 	return intel_suspend_device(dev);
 }
 
-static int intel_resume(struct device *dev)
+static int __maybe_unused intel_resume(struct device *dev)
 {
 	struct intel_device *idev = dev_get_drvdata(dev);
 
@@ -1112,7 +1107,6 @@ static int intel_resume(struct device *dev)
 
 	return intel_resume_device(dev);
 }
-#endif
 
 static const struct dev_pm_ops intel_pm_ops = {
 	SET_SYSTEM_SLEEP_PM_OPS(intel_suspend, intel_resume)
-- 
2.52.0


^ permalink raw reply related	[flat|nested] 9+ messages in thread

* RE: More CONFIG_PM* simplifications
  2026-01-19 12:34 ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Bastien Nocera
@ 2026-01-19 14:02   ` bluez.test.bot
  2026-01-20  6:40   ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Neeraj Sanjay Kale
  1 sibling, 0 replies; 9+ messages in thread
From: bluez.test.bot @ 2026-01-19 14:02 UTC (permalink / raw)
  To: linux-bluetooth, hadess

[-- Attachment #1: Type: text/plain, Size: 2913 bytes --]

This is automated email and please do not reply to this email!

Dear submitter,

Thank you for submitting the patches to the linux bluetooth mailing list.
This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=1044140

---Test result---

Test Summary:
CheckPatch                    PENDING   0.48 seconds
GitLint                       PENDING   0.35 seconds
SubjectPrefix                 PASS      0.15 seconds
BuildKernel                   PASS      23.61 seconds
CheckAllWarning               PASS      26.42 seconds
CheckSparse                   PASS      28.89 seconds
BuildKernel32                 PASS      23.45 seconds
TestRunnerSetup               PASS      515.78 seconds
TestRunner_l2cap-tester       PASS      28.67 seconds
TestRunner_iso-tester         FAIL      58.89 seconds
TestRunner_bnep-tester        PASS      6.37 seconds
TestRunner_mgmt-tester        FAIL      124.26 seconds
TestRunner_rfcomm-tester      PASS      9.53 seconds
TestRunner_sco-tester         FAIL      14.63 seconds
TestRunner_ioctl-tester       PASS      10.34 seconds
TestRunner_mesh-tester        FAIL      12.49 seconds
TestRunner_smp-tester         PASS      8.81 seconds
TestRunner_userchan-tester    PASS      6.83 seconds
IncrementalBuild              PENDING   0.71 seconds

Details
##############################
Test: CheckPatch - PENDING
Desc: Run checkpatch.pl script
Output:

##############################
Test: GitLint - PENDING
Desc: Run gitlint
Output:

##############################
Test: TestRunner_iso-tester - FAIL
Desc: Run iso-tester with test-runner
Output:
BUG: KASAN: slab-use-after-free in le_read_features_complete+0x7e/0x2b0
Total: 141, Passed: 141 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mgmt-tester - FAIL
Desc: Run mgmt-tester with test-runner
Output:
Total: 494, Passed: 488 (98.8%), Failed: 2, Not Run: 4

Failed Test Cases
Read Exp Feature - Success                           Failed       0.108 seconds
LL Privacy - Remove Device 3 (Disable RL)            Failed       0.204 seconds
##############################
Test: TestRunner_sco-tester - FAIL
Desc: Run sco-tester with test-runner
Output:
WARNING: possible circular locking dependency detected
BUG: sleeping function called from invalid context at net/core/sock.c:3782
Total: 30, Passed: 30 (100.0%), Failed: 0, Not Run: 0
##############################
Test: TestRunner_mesh-tester - FAIL
Desc: Run mesh-tester with test-runner
Output:
Total: 10, Passed: 8 (80.0%), Failed: 2, Not Run: 0

Failed Test Cases
Mesh - Send cancel - 1                               Timed out    2.711 seconds
Mesh - Send cancel - 2                               Timed out    1.999 seconds
##############################
Test: IncrementalBuild - PENDING
Desc: Incremental build with the patches in the series
Output:



---
Regards,
Linux Bluetooth


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef
  2026-01-19 12:34 ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Bastien Nocera
  2026-01-19 14:02   ` More CONFIG_PM* simplifications bluez.test.bot
@ 2026-01-20  6:40   ` Neeraj Sanjay Kale
  1 sibling, 0 replies; 9+ messages in thread
From: Neeraj Sanjay Kale @ 2026-01-20  6:40 UTC (permalink / raw)
  To: Bastien Nocera, linux-bluetooth@vger.kernel.org
  Cc: Sherry Sun, Amitkumar Karwar

Hi Bastien,

Thank you for the patch. I am okay with this.

Reviewed-by: Neeraj Sanjay Kale <neeraj.sanjaykale@nxp.com>

Thanks,
Neeraj

> The functions are already disabled through the use of pm_ptr() when
> CONFIG_PM is disabled, and will be removed from the final linked code as
> not needed.
> 
> This increases build coverage and allows to drop an #ifdef.
> 
> Signed-off-by: Bastien Nocera <hadess@hadess.net>
> ---
>  drivers/bluetooth/btnxpuart.c | 6 ++----
>  1 file changed, 2 insertions(+), 4 deletions(-)
> 
> diff --git a/drivers/bluetooth/btnxpuart.c b/drivers/bluetooth/btnxpuart.c
> index 3b1e9224e965..e7036a48ce48 100644
> --- a/drivers/bluetooth/btnxpuart.c
> +++ b/drivers/bluetooth/btnxpuart.c
> @@ -1947,8 +1947,7 @@ static void nxp_serdev_remove(struct
> serdev_device *serdev)
>         hci_free_dev(hdev);
>  }
> 
> -#ifdef CONFIG_PM_SLEEP
> -static int nxp_serdev_suspend(struct device *dev)
> +static int __maybe_unused nxp_serdev_suspend(struct device *dev)
>  {
>         struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev);
>         struct ps_data *psdata = &nxpdev->psdata; @@ -1962,7 +1961,7 @@
> static int nxp_serdev_suspend(struct device *dev)
>         return 0;
>  }
> 
> -static int nxp_serdev_resume(struct device *dev)
> +static int __maybe_unused nxp_serdev_resume(struct device *dev)
>  {
>         struct btnxpuart_dev *nxpdev = dev_get_drvdata(dev);
>         struct ps_data *psdata = &nxpdev->psdata; @@ -1975,7 +1974,6 @@
> static int nxp_serdev_resume(struct device *dev)
>         ps_control(psdata->hdev, PS_STATE_AWAKE);
>         return 0;
>  }
> -#endif
> 
>  #ifdef CONFIG_DEV_COREDUMP
>  static void nxp_serdev_coredump(struct device *dev)
> --
> 2.52.0
> 


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH v3 0/2] More CONFIG_PM* simplifications
  2026-01-19 12:34 [PATCH v3 0/2] More CONFIG_PM* simplifications Bastien Nocera
  2026-01-19 12:34 ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Bastien Nocera
  2026-01-19 12:35 ` [PATCH v3 2/2] Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's Bastien Nocera
@ 2026-01-20 18:20 ` patchwork-bot+bluetooth
  2 siblings, 0 replies; 9+ messages in thread
From: patchwork-bot+bluetooth @ 2026-01-20 18:20 UTC (permalink / raw)
  To: Bastien Nocera; +Cc: linux-bluetooth

Hello:

This series was applied to bluetooth/bluetooth-next.git (master)
by Luiz Augusto von Dentz <luiz.von.dentz@intel.com>:

On Mon, 19 Jan 2026 13:34:58 +0100 you wrote:
> Follow-up from the earlier "Bluetooth: btusb: Use pm_ptr instead of
> #ifdef CONFIG_PM" patch.
> 
> Both drivers were successfully compiled with CONFIG_PM disabled.
> 
> Changes since v2:
> - Drop btmtksdio.c changes, there's a fix in bluetooth-next
> 
> [...]

Here is the summary with links:
  - [v3,1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef
    https://git.kernel.org/bluetooth/bluetooth-next/c/854aa613b6b3
  - [v3,2/2] Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's
    https://git.kernel.org/bluetooth/bluetooth-next/c/ba93b539e8d4

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] 9+ messages in thread

end of thread, other threads:[~2026-01-20 18:20 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-19 12:34 [PATCH v3 0/2] More CONFIG_PM* simplifications Bastien Nocera
2026-01-19 12:34 ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Bastien Nocera
2026-01-19 14:02   ` More CONFIG_PM* simplifications bluez.test.bot
2026-01-20  6:40   ` [PATCH v3 1/2] Bluetooth: btnxpuart: Remove unneeded CONFIG_PM ifdef Neeraj Sanjay Kale
2026-01-19 12:35 ` [PATCH v3 2/2] Bluetooth: btintel: Remove unneeded CONFIG_PM* #ifdef's Bastien Nocera
2026-01-20 18:20 ` [PATCH v3 0/2] More CONFIG_PM* simplifications patchwork-bot+bluetooth
  -- strict thread matches above, loose matches on Subject: below --
2026-01-19 10:27 [PATCH v2 1/3] Bluetooth: btmtksdio: Simplify dev_pm_ops usage Bastien Nocera
2026-01-19 10:56 ` More CONFIG_PM* simplifications bluez.test.bot
2026-01-19 11:47   ` Bastien Nocera
2026-01-16 12:50 [PATCH 1/3] Bluetooth: btmtksdio: Simplify dev_pm_ops usage Bastien Nocera
2026-01-16 13:36 ` More CONFIG_PM* simplifications bluez.test.bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox