Re: [PATCH 4/7] PCI: mediatek-gen3: Disable device if further setup fails

From: AngeloGioacchino Del Regno

Date: Wed Feb 25 2026 - 08:14:49 EST


Il 25/02/26 08:22, Chen-Yu Tsai ha scritto:
If further setup fails after the device is powered on and link training
succeeds, we want to place the device back in a quiescence state to
avoid unintended activity and save power. This also helps with power
state tracking and balancing once pwrctrl API is integrated.

Power down the device in the error paths of mtk_pcie_startup_port() and
mtk_pcie_setup().

Signed-off-by: Chen-Yu Tsai <wenst@xxxxxxxxxxxx>

Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@xxxxxxxxxxxxx>