* [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
@ 2026-04-01 19:10 Arnd Bergmann
2026-04-02 15:38 ` Bartosz Golaszewski
2026-04-03 12:20 ` Bartosz Golaszewski
0 siblings, 2 replies; 6+ messages in thread
From: Arnd Bergmann @ 2026-04-01 19:10 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam
Cc: Arnd Bergmann, Ulf Hansson, Michal Wilczynski, linux-pm,
linux-kernel
From: Arnd Bergmann <arnd@arndb.de>
The newly added serdev code fails to link when serdev is turned off:
arm-linux-gnueabi-ld: drivers/power/sequencing/pwrseq-pcie-m2.o: in function `pwrseq_pcie_m2_remove_serdev':
pwrseq-pcie-m2.c:(.text+0xc8): undefined reference to `serdev_device_remove'
arm-linux-gnueabi-ld: drivers/power/sequencing/pwrseq-pcie-m2.o: in function `pwrseq_m2_pcie_notify':
pwrseq-pcie-m2.c:(.text+0x69c): undefined reference to `of_find_serdev_controller_by_node'
arm-linux-gnueabi-ld: pwrseq-pcie-m2.c:(.text+0x6f8): undefined reference to `serdev_device_alloc'
arm-linux-gnueabi-ld: pwrseq-pcie-m2.c:(.text+0x724): undefined reference to `serdev_device_add'
Add another Kconfig dependency for this
Fixes: 3f736aecbdc8 ("power: sequencing: pcie-m2: Create serdev device for WCN7850 bluetooth")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
I noticed this one only after I had already sent the patch to add the other
two dependency, feel free to combine the patches into one
---
drivers/power/sequencing/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/power/sequencing/Kconfig b/drivers/power/sequencing/Kconfig
index 77c6d9227251..1c5f5820f5b7 100644
--- a/drivers/power/sequencing/Kconfig
+++ b/drivers/power/sequencing/Kconfig
@@ -39,6 +39,7 @@ config POWER_SEQUENCING_PCIE_M2
tristate "PCIe M.2 connector power sequencing driver"
depends on OF
depends on PCI
+ depends on SERIAL_DEV_BUS
select OF_DYNAMIC
help
Say Y here to enable the power sequencing driver for PCIe M.2
--
2.39.5
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
2026-04-01 19:10 [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency Arnd Bergmann
@ 2026-04-02 15:38 ` Bartosz Golaszewski
2026-04-02 15:42 ` Arnd Bergmann
2026-04-03 12:20 ` Bartosz Golaszewski
1 sibling, 1 reply; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-04-02 15:38 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Manivannan Sadhasivam, Arnd Bergmann, Ulf Hansson,
Michal Wilczynski, linux-pm, linux-kernel
On Wed, Apr 1, 2026 at 9:10 PM Arnd Bergmann <arnd@kernel.org> wrote:
>
> From: Arnd Bergmann <arnd@arndb.de>
>
> The newly added serdev code fails to link when serdev is turned off:
>
> arm-linux-gnueabi-ld: drivers/power/sequencing/pwrseq-pcie-m2.o: in function `pwrseq_pcie_m2_remove_serdev':
> pwrseq-pcie-m2.c:(.text+0xc8): undefined reference to `serdev_device_remove'
> arm-linux-gnueabi-ld: drivers/power/sequencing/pwrseq-pcie-m2.o: in function `pwrseq_m2_pcie_notify':
> pwrseq-pcie-m2.c:(.text+0x69c): undefined reference to `of_find_serdev_controller_by_node'
> arm-linux-gnueabi-ld: pwrseq-pcie-m2.c:(.text+0x6f8): undefined reference to `serdev_device_alloc'
> arm-linux-gnueabi-ld: pwrseq-pcie-m2.c:(.text+0x724): undefined reference to `serdev_device_add'
>
> Add another Kconfig dependency for this
>
> Fixes: 3f736aecbdc8 ("power: sequencing: pcie-m2: Create serdev device for WCN7850 bluetooth")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> ---
> I noticed this one only after I had already sent the patch to add the other
> two dependency, feel free to combine the patches into one
> ---
> drivers/power/sequencing/Kconfig | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/power/sequencing/Kconfig b/drivers/power/sequencing/Kconfig
> index 77c6d9227251..1c5f5820f5b7 100644
> --- a/drivers/power/sequencing/Kconfig
> +++ b/drivers/power/sequencing/Kconfig
> @@ -39,6 +39,7 @@ config POWER_SEQUENCING_PCIE_M2
> tristate "PCIe M.2 connector power sequencing driver"
> depends on OF
> depends on PCI
> + depends on SERIAL_DEV_BUS
> select OF_DYNAMIC
> help
> Say Y here to enable the power sequencing driver for PCIe M.2
> --
> 2.39.5
>
I assume with this patch[1] from Mani, we no longer need this one?
Bart
[1] https://lore.kernel.org/all/20260401070735.107162-2-manivannan.sadhasivam@oss.qualcomm.com/
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
2026-04-02 15:38 ` Bartosz Golaszewski
@ 2026-04-02 15:42 ` Arnd Bergmann
2026-04-02 16:36 ` Bartosz Golaszewski
0 siblings, 1 reply; 6+ messages in thread
From: Arnd Bergmann @ 2026-04-02 15:42 UTC (permalink / raw)
To: Bartosz Golaszewski, Arnd Bergmann
Cc: Manivannan Sadhasivam, Ulf Hansson, Michal Wilczynski, linux-pm,
linux-kernel
On Thu, Apr 2, 2026, at 17:38, Bartosz Golaszewski wrote:
> On Wed, Apr 1, 2026 at 9:10 PM Arnd Bergmann <arnd@kernel.org> wrote:
>> diff --git a/drivers/power/sequencing/Kconfig b/drivers/power/sequencing/Kconfig
>> index 77c6d9227251..1c5f5820f5b7 100644
>> --- a/drivers/power/sequencing/Kconfig
>> +++ b/drivers/power/sequencing/Kconfig
>> @@ -39,6 +39,7 @@ config POWER_SEQUENCING_PCIE_M2
>> tristate "PCIe M.2 connector power sequencing driver"
>> depends on OF
>> depends on PCI
>> + depends on SERIAL_DEV_BUS
>> select OF_DYNAMIC
>> help
>> Say Y here to enable the power sequencing driver for PCIe M.2
>> --
>> 2.39.5
>>
>
> I assume with this patch[1] from Mani, we no longer need this one?
>
> [1]
> https://lore.kernel.org/all/20260401070735.107162-2-manivannan.sadhasivam@oss.qualcomm.com/
Depends on which one you mean with 'this one'.
My patch is needed with or without Mani's, while
his patch is harmless but does not fix the issue.
Arnd
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
2026-04-02 15:42 ` Arnd Bergmann
@ 2026-04-02 16:36 ` Bartosz Golaszewski
2026-04-02 16:58 ` Arnd Bergmann
0 siblings, 1 reply; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-04-02 16:36 UTC (permalink / raw)
To: Arnd Bergmann
Cc: Arnd Bergmann, Manivannan Sadhasivam, Ulf Hansson,
Michal Wilczynski, linux-pm, linux-kernel
On Thu, Apr 2, 2026 at 5:42 PM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Thu, Apr 2, 2026, at 17:38, Bartosz Golaszewski wrote:
> > On Wed, Apr 1, 2026 at 9:10 PM Arnd Bergmann <arnd@kernel.org> wrote:
> >> diff --git a/drivers/power/sequencing/Kconfig b/drivers/power/sequencing/Kconfig
> >> index 77c6d9227251..1c5f5820f5b7 100644
> >> --- a/drivers/power/sequencing/Kconfig
> >> +++ b/drivers/power/sequencing/Kconfig
> >> @@ -39,6 +39,7 @@ config POWER_SEQUENCING_PCIE_M2
> >> tristate "PCIe M.2 connector power sequencing driver"
> >> depends on OF
> >> depends on PCI
> >> + depends on SERIAL_DEV_BUS
> >> select OF_DYNAMIC
> >> help
> >> Say Y here to enable the power sequencing driver for PCIe M.2
> >> --
> >> 2.39.5
> >>
> >
> > I assume with this patch[1] from Mani, we no longer need this one?
> >
> > [1]
> > https://lore.kernel.org/all/20260401070735.107162-2-manivannan.sadhasivam@oss.qualcomm.com/
>
> Depends on which one you mean with 'this one'.
>
> My patch is needed with or without Mani's, while
> his patch is harmless but does not fix the issue.
>
> Arnd
Mani's patch adds stubs for the symbols that the linker couldn't find
in the build error you posted above. I thought this would fix the
issue?
Bart
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
2026-04-02 16:36 ` Bartosz Golaszewski
@ 2026-04-02 16:58 ` Arnd Bergmann
0 siblings, 0 replies; 6+ messages in thread
From: Arnd Bergmann @ 2026-04-02 16:58 UTC (permalink / raw)
To: Bartosz Golaszewski
Cc: Arnd Bergmann, Manivannan Sadhasivam, Ulf Hansson,
Michal Wilczynski, linux-pm, linux-kernel
On Thu, Apr 2, 2026, at 18:36, Bartosz Golaszewski wrote:
> On Thu, Apr 2, 2026 at 5:42 PM Arnd Bergmann <arnd@arndb.de> wrote:
>
> Mani's patch adds stubs for the symbols that the linker couldn't find
> in the build error you posted above. I thought this would fix the
> issue?
No, when you have POWER_SEQUENCING_PCIE_M2=y and
CONFIG_SERIAL_DEV_BUS=m, you still get the same build failure.
Arnd
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
2026-04-01 19:10 [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency Arnd Bergmann
2026-04-02 15:38 ` Bartosz Golaszewski
@ 2026-04-03 12:20 ` Bartosz Golaszewski
1 sibling, 0 replies; 6+ messages in thread
From: Bartosz Golaszewski @ 2026-04-03 12:20 UTC (permalink / raw)
To: Bartosz Golaszewski, Manivannan Sadhasivam, Arnd Bergmann
Cc: Bartosz Golaszewski, Arnd Bergmann, Ulf Hansson,
Michal Wilczynski, linux-pm, linux-kernel
On Wed, 01 Apr 2026 21:10:13 +0200, Arnd Bergmann wrote:
> The newly added serdev code fails to link when serdev is turned off:
>
> arm-linux-gnueabi-ld: drivers/power/sequencing/pwrseq-pcie-m2.o: in function `pwrseq_pcie_m2_remove_serdev':
> pwrseq-pcie-m2.c:(.text+0xc8): undefined reference to `serdev_device_remove'
> arm-linux-gnueabi-ld: drivers/power/sequencing/pwrseq-pcie-m2.o: in function `pwrseq_m2_pcie_notify':
> pwrseq-pcie-m2.c:(.text+0x69c): undefined reference to `of_find_serdev_controller_by_node'
> arm-linux-gnueabi-ld: pwrseq-pcie-m2.c:(.text+0x6f8): undefined reference to `serdev_device_alloc'
> arm-linux-gnueabi-ld: pwrseq-pcie-m2.c:(.text+0x724): undefined reference to `serdev_device_add'
>
> [...]
Applied, thanks!
[1/1] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency
https://git.kernel.org/brgl/c/b4464d8f313f903ba72db06042f3958a9a1e464a
Best regards,
--
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-04-03 12:21 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-01 19:10 [PATCH] power: sequencing: pcie-m2: add SERIAL_DEV_BUS dependency Arnd Bergmann
2026-04-02 15:38 ` Bartosz Golaszewski
2026-04-02 15:42 ` Arnd Bergmann
2026-04-02 16:36 ` Bartosz Golaszewski
2026-04-02 16:58 ` Arnd Bergmann
2026-04-03 12:20 ` Bartosz Golaszewski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox