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(-) -- 2.25.1