[PATCH] nvme: Use pci_iomap instead of ioremap

Christoph Hellwig hch at lst.de
Thu Jan 27 08:01:29 PST 2022


On Thu, Jan 27, 2022 at 09:26:28PM +0530, Pankaj Raghav wrote:
> `ioremap` has a comment to prefer pci_iomap if the area we are trying 
> to map is a PCI BAR. Does it makes sense then to have a comment in 
> the nvme pci driver as to why ioremap is preferred over pci_iomap?

I don't think that comment is correct.  pci_iomap is not a replacement
for ioremap, but an interface that helps drivers that need to
transparently deal with MMIO and Port I/O - something that is mostly
of historic interest these days.



More information about the Linux-nvme mailing list