Linux PCI subsystem development
 help / color / mirror / Atom feed
* POSSIBLE REGRESSION: PCI/pwrctrl: Skip scanning for the device further if pwrctrl device is created
@ 2025-05-05 17:39 Jim Quinlan
  2025-05-19 14:05 ` Bjorn Helgaas
  2025-05-19 17:26 ` Manivannan Sadhasivam
  0 siblings, 2 replies; 13+ messages in thread
From: Jim Quinlan @ 2025-05-05 17:39 UTC (permalink / raw)
  To: Bjorn Helgaas,
	open list:PCI NATIVE HOST BRIDGE AND ENDPOINT DRIVERS,
	'Cyril Brulebois,
	maintainer:BROADCOM BCM7XXX ARM ARCHITECTURE,
	'Nicolas Saenz Julienne, Lorenzo Pieralisi,
	bartosz.golaszewski, Manivannan Sadhasivam,
	Krzysztof Wilczyński

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

Hello,

I recently rebased to the latest Linux master

ebd297a2affa Linus.Torvalds Merge tag 'net-6.15-rc5' of
git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net

and noticed that PCI is broken for
"drivers/pci/controller/pcie-brcmstb.c"  I've bisected this to the
following commit

2489eeb777af PCI/pwrctrl: Skip scanning for the device further if
pwrctrl device is created

which is part of the series [1].  The driver in pcie-brcmstb.c is
expecting the add_bus() method to be invoked twice per boot-up, but
the second call does not happen.  Not only does this code in
brcm_pcie_add_bus() turn on regulators, it also subsequently initiates
PCIe linkup.

If I revert the aforementioned commit, all is well.

FWIW, I have included the relevant sections of the PCIe DT we use at [2].

Sorry I did not observe this sooner...

Regards,
Jim Quinlan
Broadcom STB/CM



[1] https://lore.kernel.org/lkml/20241231-pci-pwrctrl-slot-v2-0-6a15088ba541@linaro.org/T/#t
[2]

pcie@1000110000 {
        reg = <0x10 0x110000 0x0 0x9130>;
        ...

        pci@0,0 {
                vpcie3v3-supply = <0x45>;
                vpcie12v-supply = <0x44>;
                reg = <0x0 0x0 0x0 0x0 0x0>;
                ranges;
                bus-range = <0x1 0xff>;
                compatible = "pciclass,0604";
                device_type = "pci";
                #address-cells = <0x3>;
                #size-cells = <0x2>;

                pci-ep@0,0 {
                        local-mac-address = [ 00 10 18 f0 35 55 ];
                        reg = <0x10000 0x0 0x0 0x0 0x0>;
                };
        };
}

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/pkcs7-signature, Size: 4197 bytes --]

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

end of thread, other threads:[~2025-05-22  9:42 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-05 17:39 POSSIBLE REGRESSION: PCI/pwrctrl: Skip scanning for the device further if pwrctrl device is created Jim Quinlan
2025-05-19 14:05 ` Bjorn Helgaas
2025-05-19 17:28   ` Manivannan Sadhasivam
2025-05-19 18:25     ` Jim Quinlan
2025-05-19 19:59       ` Jim Quinlan
2025-05-19 21:56         ` Bjorn Helgaas
2025-05-19 23:03           ` Jim Quinlan
2025-05-20  4:11             ` Manivannan Sadhasivam
2025-05-20 15:06               ` Jim Quinlan
2025-05-20 23:40                 ` Manivannan Sadhasivam
2025-05-21 22:08                   ` Jim Quinlan
2025-05-22  9:41                     ` Manivannan Sadhasivam
2025-05-19 17:26 ` Manivannan Sadhasivam

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