Re: [PATCH 6/6] staging: mt7621-pci: properly adjust base address for the IO window
From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-09-25 17:33:26
Also in:
linux-pci, linux-staging, lkml
From: Arnd Bergmann <arnd@arndb.de>
Date: 2021-09-25 17:33:26
Also in:
linux-pci, linux-staging, lkml
On Fri, Sep 24, 2021 at 11:11 PM Sergio Paracuellos [off-list ref] wrote:
The value to adjust in the bridge register RALINK_PCI_IOBASE must take into account the raw value from DT, not only the translated linux port number. As long as io_offset is zero, the two are the same, but if you were to use multiple host bridge in the system, or pick a different bus address in DT, you can have a nonzero io_offset. At this means to take into account the bus address which is used to calculate this offset, substracting it from the IO resource start address. Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
Acked-by: Arnd Bergmann <arnd@arndb.de>