pci_iomap bug?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I noticed that the pci_iomap() function in the lib/iomap.c file seems (to me) do be doing the wrong thing here:

    if (flags & IORESOURCE_CACHEABLE)
      return ioremap(start, len);
    return ioremap_nocache(start, len);

since, as of 2.6.26 or so, the ioremap() function is defined as:
static inline void __iomem *ioremap(resource_size_t offset, unsigned long size)
{
  return ioremap_nocache(offset, size);
}

So it seems to me that pci_iomap() is calling ioremap_nocache() regardless of the IORESOURCE_CACHEABLE flag?--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux