]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: mediatek-gen3: Split out device power helpers
authorChen-Yu Tsai <wenst@chromium.org>
Tue, 24 Mar 2026 05:19:57 +0000 (13:19 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 25 Mar 2026 18:47:42 +0000 (13:47 -0500)
commit69b8d3ccf73222518ce13fe4965c93c9d13ba5d7
tree8a974e35d1d7bf9cdd4795e704e634b1e2d03569
parent867054421c3b94a70ddf51db658e992f19382c2f
PCI: mediatek-gen3: Split out device power helpers

In preparation for adding full power on/off control with the pwrctrl API,
split out the existing code that only partially deals with device power
sequencing into separate helper functions. The existing code only handles
PERST#.

This is purely moving code around, and brings no functional changes.

Signed-off-by: Chen-Yu Tsai <wenst@chromium.org>
[mani: moved the 'err' variable to next commit]
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://patch.msgid.link/20260324052002.4072430-6-wenst@chromium.org
drivers/pci/controller/pcie-mediatek-gen3.c