PCI: endpoint: Simplify epc->ops->set_bar()/pci_epc_set_bar()
authorNiklas Cassel <niklas.cassel@axis.com>
Wed, 28 Mar 2018 11:50:07 +0000 (13:50 +0200)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Tue, 3 Apr 2018 11:23:38 +0000 (12:23 +0100)
commitbc4a48976f57bc88319bfa32690bcc4b6cef4a29
tree35c16b6bfbb03cd2111f66d44215791fe8433a3f
parentbf597574b6bee5ac741c58da763ad2f10df19065
PCI: endpoint: Simplify epc->ops->set_bar()/pci_epc_set_bar()

Add barno and flags to struct epf_bar.
That way we can simplify epc->ops->set_bar()/pci_epc_set_bar()
by passing a struct *epf_bar instead of a whole lot of arguments.

This is needed so that epc->ops->set_bar() implementations can
modify BAR flags. Will be utilized in a succeeding patch.

Signed-off-by: Niklas Cassel <niklas.cassel@axis.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Gustavo Pimentel <gustavo.pimentel@synopsys.com>
Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
drivers/pci/cadence/pcie-cadence-ep.c
drivers/pci/dwc/pcie-designware-ep.c
drivers/pci/endpoint/functions/pci-epf-test.c
drivers/pci/endpoint/pci-epc-core.c
drivers/pci/endpoint/pci-epf-core.c
include/linux/pci-epc.h
include/linux/pci-epf.h