Skip to content

PCI: tegra: A couple of cleanups

Anand Moon linux-devicetree linux-pci linux-tegra lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: PCI: Convert the existing nvidia,tegra-pcie.txt bindings documentation into a YAML schemaDocumentation/devicetree/bindings/pci/nvidia,tegra-pcie.yaml Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt+651 -6708 replies
2/5PCI: tegra: Simplify clock handling by using clk_bulk*() functionsdrivers/pci/controller/pci-tegra.c+45 -554 replies
3/5PCI: tegra: Use readl_poll_timeout() for link status pollingdrivers/pci/controller/pci-tegra.c+14 -234 replies
4/5PCI: tegra: Use BIT() and GENMASK() macros for register definitionsdrivers/pci/controller/pci-tegra.c+65 -640 replies
5/5PCI: tegra: Document map_lock and mask_lock usagedrivers/pci/controller/pci-tegra.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/5] PCI: tegra: A couple of cleanups

Hi All,

This small series provides two cleanup patches for the Tegra PCIe driver. The overall goal is to replace custom, open-coded logic with standard kernel helper functions.

These changes improve the driver's readability and maintainability by everaging modern, well-tested APIs for clock management and register polling.

v1 Added new devicetree binding nvidia,tegra-pcie.yaml file.
Switch from devm_clk_bulk_get_all() -> devm_clk_bulk_get() api. Fixed checkpatch warnings.

Tested on Jetson Nano 4 GB ram.

RFC : https://lore.kernel.org/linux-tegra/[email protected]/

Thanks
-Anand

Anand Moon (5):
dt-bindings: PCI: Convert the existing nvidia,tegra-pcie.txt bindings
documentation into a YAML schema
PCI: tegra: Simplify clock handling by using clk_bulk*() functions
PCI: tegra: Use readl_poll_timeout() for link status polling
PCI: tegra: Use BIT() and GENMASK() macros for register definitions
PCI: tegra: Document map_lock and mask_lock usage

 .../bindings/pci/nvidia,tegra-pcie.yaml       | 651 +++++++++++++++++
 .../bindings/pci/nvidia,tegra20-pcie.txt      | 670 ------------------
 drivers/pci/controller/pci-tegra.c            | 268 ++++---
 3 files changed, 777 insertions(+), 812 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/pci/nvidia,tegra-pcie.yaml
 delete mode 100644 Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt

base-commit: 4ff71af020ae59ae2d83b174646fc2ad9fcd4dc4

Signature · 1 line
2.50.1