diff options
author | Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com> | 2025-09-12 14:05:02 +0530 |
---|---|---|
committer | Manivannan Sadhasivam <mani@kernel.org> | 2025-09-17 15:39:51 +0530 |
commit | af8df709bf365f5583d31091280354e1ef0b201f (patch) | |
tree | 1d3662bb8c20d8eea52ecde2ca0ca906b389bfdc /rust/helpers/mutex.c | |
parent | ea5fbbc15906abdef174c88cecfec4b2a0c748b9 (diff) |
PCI: qcom: Move host bridge 'phy' and 'reset' pointers to struct qcom_pcie_port
DT binding allows specifying 'phy' and 'reset' properties in both host
bridge and Root Port nodes, though specifying in the host bridge node is
marked as deprecated. Still, the pcie-qcom driver should support both
combinations for maintaining the DT backwards compatibility. For this
purpose, the driver is holding the relevant pointers of these properties in
two structs: struct qcom_pcie_port and struct qcom_pcie.
However, this causes confusion and increases the driver complexity. Hence,
move the pointers from struct qcom_pcie to struct qcom_pcie_port. As a
result, even if these properties are specified in the host bridge node,
the pointers will be stored in struct qcom_pcie_port as if the properties
are specified in a single Root Port node. This logic simplifies the driver
a lot.
Suggested-by: Bjorn Helgaas <helgaas@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@oss.qualcomm.com>
Reviewed-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250912-pci-pwrctrl-perst-v3-2-3c0ac62b032c@oss.qualcomm.com
Diffstat (limited to 'rust/helpers/mutex.c')
0 files changed, 0 insertions, 0 deletions