]> 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)
commitd8492de7f8b597387e57285f9cbbe3d70fec2d27
tree7ef6aa30d55c6c441d9a30860620cc2c8ecce23a
parent9274e671272680e5c57870e9e28d9bbffd97c084
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