Skip to content

staging: mt7621-pci: complete review

Sergio Paracuellos linux-staging 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10staging: mt7621-pci: make use of kernel clock apisdrivers/staging/mt7621-pci/pci-mt7621.c+26 -180 replies
2/10staging: mt7621-pci: avoid to set gpio mode in driverdrivers/staging/mt7621-pci/pci-mt7621.c+0 -70 replies
3/10staging: mt7621-pci: remove some not needed includesdrivers/staging/mt7621-pci/pci-mt7621.c+0 -50 replies
4/10staging: mt7621-pci: group io resource assignments all togetherdrivers/staging/mt7621-pci/pci-mt7621.c+2 -20 replies
5/10staging: mt7621-pci: replace mdelay with msleepdrivers/staging/mt7621-pci/pci-mt7621.c+2 -20 replies
6/10staging: mt7621-pci: directly return 'mt7621_pcie_register_host'drivers/staging/mt7621-pci/pci-mt7621.c+1 -70 replies
7/10staging: mt7621-pci: avoid custom 'map_irq' functiondrivers/staging/mt7621-pci/pci-mt7621.c+0 -880 replies
8/10staging: mt7621-pci: remove two blank linesdrivers/staging/mt7621-pci/pci-mt7621.c+0 -20 replies
9/10staging: mt7621-dts: use 'interrupt-map' and 'interrupt-map-mask'drivers/staging/mt7621-dts/mt7621.dtsi+14 -40 replies
10/10staging: mt7621-dts: properly organize pcie nodedrivers/staging/mt7621-dts/mt7621.dtsi+7 -90 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/10] staging: mt7621-pci: complete review

This patchet contains different missing stuff to give this driver a try to get mainlined into a proper place in the kernel:
- Make use of kernel clock apis.
- Avoid to request gpio mode since it is already being requested through the pin control driver.
- Properly map interrupts using 'interrupt-map' and 'interrupt-map-mask' device tree properties instead of using a custom 'map_irq' callback.
- Use msleep instead of mdelay in remaining places.
- Other minor cleanups.

After this changes, LOC decreased a bit which is always a good thing :-).

All of this has been tested in two different boards resulting in a working platform:
- GNUBee PC1
- HiLink HLK-7621A Evaluation Board.

Best regards,
Sergio Paracuellos

Sergio Paracuellos (10):
staging: mt7621-pci: make use of kernel clock apis
staging: mt7621-pci: avoid to set gpio mode in driver
staging: mt7621-pci: remove some not needed includes
staging: mt7621-pci: group io resource assignments all together
staging: mt7621-pci: replace mdelay with msleep
staging: mt7621-pci: directly return 'mt7621_pcie_register_host'
staging: mt7621-pci: avoid custom 'map_irq' function
staging: mt7621-pci: remove two blank lines
staging: mt7621-dts: use 'interrupt-map' and 'interrupt-map-mask'
staging: mt7621-dts: properly organize pcie node

 drivers/staging/mt7621-dts/mt7621.dtsi  |  34 ++++--
 drivers/staging/mt7621-pci/pci-mt7621.c | 154 +++++-------------------
 2 files changed, 48 insertions(+), 140 deletions(-)
Signature · 1 line
2.25.1