staging: mt7621-pci: use generic kernel pci subsystem read and write
authorSergio Paracuellos <sergio.paracuellos@gmail.com>
Fri, 3 Aug 2018 08:26:54 +0000 (10:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Aug 2018 12:08:40 +0000 (14:08 +0200)
commit8571c62d45cb7e9fdff87fe5132002d17fbce7a3
treed5d49307f495333c143f487cee787c6f1e9c65a9
parentc5fe50aaa20c87cd863fdc56ec7c8e504986f31d
staging: mt7621-pci: use generic kernel pci subsystem read and write

map_bus callback is called before every .read/.write operation.
Implement it and change custom read write operations for the
pci subsystem generics. Make the probe function to don't use
legacy stuff and request bus resources directly. Get pci register
base and ranges from device tree.
The driver is not using PCI_LEGACY code anymore and shall use the
PCI_DRIVERS_GENERIC option to correct compile it. Add also new
Kconfig file for this controller setting there its correct dependencies.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Tested-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/Kconfig
drivers/staging/mt7621-pci/Kconfig [new file with mode: 0644]
drivers/staging/mt7621-pci/pci-mt7621.c