Skip to content

PCI: tegra: A couple of cleanups

Anand Moon linux-devicetree linux-pci linux-tegra lkml 6 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest posting 3/35 patches 4 repliesIn review
  2. v2 posting 2/24 patches 4 repliesSuperseded
  3. v3 posting 2/32 patches 6 repliesApplied
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v3 posting 1/32 patches4 repliesSuperseded
v2 posting 1/22 patches4 repliesSuperseded
v13 patches16 repliesSuperseded

Patches in v3 posting 3/3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dt-bindings: PCI: Convert nvidia,tegra-pcie to DT schemaDocumentation/devicetree/bindings/pci/nvidia,tegra-pcie.yaml Documentation/devicetree/bindings/pci/nvidia,tegra20-pcie.txt MAINTAINERS+529 -6713 replies
2/5arm64: dts: tegra: tegra186-p2771: Fix invalid PCIe nvidia,num-lanesarch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts+1 -10 replies
3/5PCI: tegra: Simplify clock handling by using clk_bulk*() functionsdrivers/pci/controller/pci-tegra.c+12 -590 replies
4/5PCI: tegra: Use readl_poll_timeout() for link status pollingdrivers/pci/controller/pci-tegra.c+14 -230 replies
5/5PCI: tegra: Use BIT() and GENMASK() macros for register definitionsdrivers/pci/controller/pci-tegra.c+65 -640 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 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.

v3: Fix the DT binding for nvidia,tegra-pcie.yaml
tried to address issue for Krzysztof and Jon.
Added missing regulator and new patch to fix the device tree check. Added missing entry in MAINTAINERS.

v2: Fix the DT binding for nvidia,tegra-pcie.yaml
switch back to devm_clk_bulk_get_all to get all the clocks improve the commit message.

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.

jetson-nano:~$ lspci -tvv
-[0000:00]-+-01.0-[01]----00.0  Intel Corporation Wireless 8265 / 8275
           \-02.0-[02]----00.0  Realtek Semiconductor Co., Ltd. RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet Controller
v2:   https://lore.kernel.org/linux-tegra/[email protected]/
v1:   https://lore.kernel.org/linux-tegra/[email protected]/
RFC : https://lore.kernel.org/linux-tegra/[email protected]/

Thanks
-Anand

Anand Moon (5):
dt-bindings: PCI: Convert nvidia,tegra-pcie to DT schema
arm64: dts: tegra: tegra186-p2771: Fix invalid PCIe nvidia,num-lanes
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

 .../bindings/pci/nvidia,tegra-pcie.yaml       | 528 ++++++++++++++
 .../bindings/pci/nvidia,tegra20-pcie.txt      | 670 ------------------
 MAINTAINERS                                   |   2 +-
 .../boot/dts/nvidia/tegra186-p2771-0000.dts   |   2 +-
 drivers/pci/controller/pci-tegra.c            | 237 +++----
 5 files changed, 621 insertions(+), 818 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: 6de23f81a5e08be8fbf5e8d7e9febc72a5b5f27f

Signature · 1 line
2.50.1