]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
PCI: imx6: Separate PERST# assertion from core reset functions
authorSherry Sun <sherry.sun@nxp.com>
Fri, 6 Mar 2026 03:04:56 +0000 (11:04 +0800)
committerManivannan Sadhasivam <mani@kernel.org>
Thu, 26 Mar 2026 17:11:41 +0000 (22:41 +0530)
commit180ea823bb45eb71dd5ed0dc0b78633accd21096
treeb3ad96b62ca52b8827e04af3f94c69add48a1c35
parent192b8a1bf81c17852b6cf540c95b0a3bcc9c58c4
PCI: imx6: Separate PERST# assertion from core reset functions

The imx_pcie_assert_core_reset() and imx_pcie_deassert_core_reset()
functions are primarily intended to reset the RC controller itself, not
the remote PCIe endpoint devices. However, the PERST# GPIO control was
previously embedded within these functions, which conflates two distinct
reset operations.

Move the PERST# GPIO handling into a dedicated function
imx_pcie_assert_perst(). This makes the code more maintainable and
prepares for parsing the reset-gpios property according to the new
Root Port DT binding in subsequent patches.

No functional change is intended.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Signed-off-by: Manivannan Sadhasivam <mani@kernel.org>
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Link: https://patch.msgid.link/20260306030456.1032815-1-sherry.sun@nxp.com
drivers/pci/controller/dwc/pci-imx6.c