On 11.04.2016 13:04, Alexander Gordeev wrote: > This is needed to facilitate other-sized PCI configuration > space accessors, not just 32 bit one. > > Cc: Thomas Huth <thuth@xxxxxxxxxx> > Cc: Andrew Jones <drjones@xxxxxxxxxx> > Signed-off-by: Alexander Gordeev <agordeev@xxxxxxxxxx> > --- > lib/pci.c | 8 ++++---- > lib/x86/asm/pci.h | 2 +- > 2 files changed, 5 insertions(+), 5 deletions(-) ... > diff --git a/lib/x86/asm/pci.h b/lib/x86/asm/pci.h > index 4ec20e17d25b..d10a32c38dd5 100644 > --- a/lib/x86/asm/pci.h > +++ b/lib/x86/asm/pci.h > @@ -9,7 +9,7 @@ > #include "pci.h" > #include "x86/io.h" > > -static inline uint32_t pci_config_read(pcidevaddr_t dev, uint8_t reg) > +static inline uint32_t pci_config_readl(pcidevaddr_t dev, uint8_t reg) > { > uint32_t index = reg | (dev << 8) | (0x1 << 31); > outl(index, 0xCF8); Did you consider "pci_config_read32" instead? ... that would be even more clear about the size. Anyway, I'm also fine with "readl", so: Reviewed-by: Thomas Huth <thuth@xxxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html