Re: [PATCH v2 1/4] x86: spi: Add a way to access the SPI mapping via registers

2020-05-28 Thread Bin Meng
On Thu, May 28, 2020 at 3:36 PM Bin Meng wrote: > > On Wed, May 27, 2020 at 8:58 PM Simon Glass wrote: > > > > At present the PCI BDF (bus/device/function) is needed to access the SPI > > mapping, since the registers are at BAR0. This doesn't work when PCI > > auto-config has not been done yet,

Re: [PATCH v2 1/4] x86: spi: Add a way to access the SPI mapping via registers

2020-05-28 Thread Bin Meng
On Wed, May 27, 2020 at 8:58 PM Simon Glass wrote: > > At present the PCI BDF (bus/device/function) is needed to access the SPI > mapping, since the registers are at BAR0. This doesn't work when PCI > auto-config has not been done yet, since BARs are unassigned. > > Add another way to find the

[PATCH v2 1/4] x86: spi: Add a way to access the SPI mapping via registers

2020-05-27 Thread Simon Glass
At present the PCI BDF (bus/device/function) is needed to access the SPI mapping, since the registers are at BAR0. This doesn't work when PCI auto-config has not been done yet, since BARs are unassigned. Add another way to find the mapping, using the MMIO base, if the caller knows this. Also add