aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pcie-designware-host.c
diff options
context:
space:
mode:
authorHans Zhang <[email protected]>2025-04-07 12:43:31 +0000
committerManivannan Sadhasivam <[email protected]>2025-05-02 17:36:45 +0000
commited798ff1c52f6fe232ce2e24e68fb63f5470ab97 (patch)
treeeef0cf9bfca521e9c9969488f6dfeeceb840669c /drivers/pci/controller/dwc/pcie-designware-host.c
parentLinux 6.15-rc1 (diff)
downloadkernel-ed798ff1c52f6fe232ce2e24e68fb63f5470ab97.tar.gz
kernel-ed798ff1c52f6fe232ce2e24e68fb63f5470ab97.zip
PCI: tegra194: Create debugfs directory only when CONFIG_PCIEASPM is enabled
Previously, the debugfs directory was unconditionally created in tegra_pcie_config_rp() regardless of the CONFIG_PCIEASPM setting. This led to unnecessary directory creation when ASPM support was disabled since only ASPM state count was exposed through debugfs. Hence, move the debugfs directory creation into init_debugfs() which is conditionally compiled based on CONFIG_PCIEASPM. This ensures that both the directory and 'aspm_state_cnt' entry are only created when ASPM is enabled and avoids cluttering debugfs with empty directories when ASPM is disabled. Signed-off-by: Hans Zhang <[email protected]> [mani: subject and description change] Signed-off-by: Manivannan Sadhasivam <[email protected]> Reviewed-by: Christophe JAILLET <[email protected]> Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-designware-host.c')
0 files changed, 0 insertions, 0 deletions