Re: [PATCH v2 5/8] PCI: brcmstb: Fix potential premature regulator disabling

From: Florian Fainelli
Date: Thu Feb 20 2025 - 12:41:53 EST




On 2/14/2025 9:39 AM, Jim Quinlan wrote:
Our system for enabling and disabling regulators is designed to work only
on the port driver below the root complex. The conditions to discriminate
for this case should be the same when we are adding or removing the bus.
Without this change the regulators may be disabled prematurely when a bus
further down the tree is removed.

Fixes: 9e6be018b263 ("PCI: brcmstb: Enable child bus device regulators from DT")
Signed-off-by: Jim Quinlan <james.quinlan@xxxxxxxxxxxx>

Reviewed-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxx>
--
Florian