]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ef38a2c2854d87111914cf1e1f01adbe2604764
treed5d49307f495333c143f487cee787c6f1e9c65a9
parentd6c78adfb5e9d3f74cfeb75508bc8d42317a2d20
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