]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: keystone: Cleanup configuration space access
authorKishon Vijay Abraham I <kishon@ti.com>
Wed, 17 Oct 2018 07:41:06 +0000 (13:11 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 17 Oct 2018 08:47:23 +0000 (09:47 +0100)
commit75e55d6f0307a9f727b7ea85ed939624ae8e6eaf
tree7ef6aa30d55c6c441d9a30860620cc2c8ecce23a
parentf635619497f5fcb8ab01cd986b2e273b68b1c750
PCI: keystone: Cleanup configuration space access

Cleanup configuration space access by removing ks_pcie_cfg_setup()
which has an unncessary check of "if (bus == 0)" which will never be the
case of *_other_conf() and adding macros for configuring the CFG_SETUP
register required for accessing the configuration space of the device.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pci-keystone.c