[RFC PATCH 00/17] Drop uses of pci_read_config_*() return value

Christoph Hellwig hch at infradead.org
Mon Aug 3 02:56:29 EDT 2020


On Sun, Aug 02, 2020 at 02:14:06PM -0500, Bjorn Helgaas wrote:
> But what guarantees that a PCI config register cannot contain ~0?
> If there's something about that in the spec I'd love to know where it
> is because it would simplify a lot of things.

There isn't.  An we even have cases like the NVMe controller memory
buffer and persistent memory region, which are BARs that store
abritrary values for later retreival, so it can't.  (now those
features have a major issue with error detection, but that is another
issue)



More information about the linux-mtd mailing list