]> www.infradead.org Git - users/jedix/linux-maple.git/commit
PCI: brcmstb: Fix potential premature regulator disabling
authorJim Quinlan <james.quinlan@broadcom.com>
Fri, 14 Feb 2025 17:39:33 +0000 (12:39 -0500)
committerKrzysztof Wilczyński <kwilczynski@kernel.org>
Tue, 4 Mar 2025 16:01:30 +0000 (16:01 +0000)
commitb7de1b60ecab2f7b6f05d8116e93228a0bbb8563
tree6776d7aa2901d015027148bc1731b5cefae3f72c
parent3651ad5249c51cf7eee078e12612557040a6bdb4
PCI: brcmstb: Fix potential premature regulator disabling

The platform supports enabling and disabling regulators only on
ports below the Root Complex.

Thus, we need to verify this both when adding and removing the bus,
otherwise regulators may be disabled prematurely when a bus further
down the topology is removed.

Fixes: 9e6be018b263 ("PCI: brcmstb: Enable child bus device regulators from DT")
Signed-off-by: Jim Quinlan <james.quinlan@broadcom.com>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20250214173944.47506-6-james.quinlan@broadcom.com
[kwilczynski: commit log]
Signed-off-by: Krzysztof Wilczyński <kwilczynski@kernel.org>
drivers/pci/controller/pcie-brcmstb.c