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

From: Bartosz Golaszewski

Date: Wed Feb 25 2026 - 03:24:42 EST


On Wed, 25 Feb 2026 08:22:21 +0100, Chen-Yu Tsai <wenst@xxxxxxxxxxxx> said:
> 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: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>