[PATCH v5 3/7] PCI: mediatek-gen3: Move controller setup steps before PERST# control
Bartosz Golaszewski
brgl at kernel.org
Wed Mar 11 01:17:39 PDT 2026
On Wed, 11 Mar 2026 08:52:18 +0100, Chen-Yu Tsai <wenst at chromium.org> said:
> Setting up the translation windows and enabling MSI involve only
> configuring the controller, not the device. These can be done before the
> device is enabled.
>
> Move these steps before the existing PERST# control. This provides a
> cleaner separation of controller vs device setup. This also allows the
> later patches that split out PERST# control and add device power
> control to have cleaner teardown.
>
> This change only moves code. No functional change is expected.
>
> Suggested-by: Bjorn Helgaas <helgaas at kernel.org>
> Link: https://lore.kernel.org/all/20260309215056.GA603013@bhelgaas/
> Signed-off-by: Chen-Yu Tsai <wenst at chromium.org>
> ---
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski at oss.qualcomm.com>
More information about the Linux-mediatek
mailing list