Commit ed798ff
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]1 parent 0af2f6b commit ed798ff
1 file changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
713 | 713 | | |
714 | 714 | | |
715 | 715 | | |
716 | | - | |
| 716 | + | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
717 | 726 | | |
718 | 727 | | |
719 | 728 | | |
| |||
1634 | 1643 | | |
1635 | 1644 | | |
1636 | 1645 | | |
1637 | | - | |
1638 | 1646 | | |
1639 | 1647 | | |
1640 | 1648 | | |
| |||
1664 | 1672 | | |
1665 | 1673 | | |
1666 | 1674 | | |
1667 | | - | |
1668 | | - | |
1669 | | - | |
1670 | | - | |
1671 | | - | |
1672 | | - | |
1673 | | - | |
1674 | 1675 | | |
1675 | 1676 | | |
1676 | 1677 | | |
| |||
0 commit comments