PCI: designware-ep: Configure Resizable BAR cap to advertise the smallest size
authorKishon Vijay Abraham I <kishon@ti.com>
Mon, 25 Mar 2019 09:39:44 +0000 (15:09 +0530)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 1 May 2019 14:50:13 +0000 (15:50 +0100)
commitfc9a77040b04c05f036515f40aa7cf4b9c91defd
tree67e0f2cb014853584bdd062246c79ae02a7e6ff4
parent23284ad677a94f26afc92017d540ccaf26c1a581
PCI: designware-ep: Configure Resizable BAR cap to advertise the smallest size

Configure the Resizable BAR capability to advertise the smallest size
(1MB) for a couple of reasons:

- Host side resource allocation of BAR fails for larger sizes
- Endpoint function driver does not allocate memory for all supported
  sizes in the Resizable BAR capability.

If and when there is a usecase required to add more flexibility using
the Resizable BAR capability, this can be revisited.

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
[lorenzo.pieralisi@arm.com: updated commit log]
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
drivers/pci/controller/dwc/pcie-designware-ep.c