staging: slicoss: ensure mapping of io-memory is uncached
authorLino Sanfilippo <lsanfil@marvell.com>
Fri, 22 Jul 2016 21:09:13 +0000 (23:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 15:59:45 +0000 (17:59 +0200)
Writes to registers should be done uncached for various reasons. Ensure
this by replacing ioremap() with ioremap_nocache().

Signed-off-by: Lino Sanfilippo <LinoSanfilippo@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/slicoss/slicoss.c

index a9323a9f37d92ec52c2dc045340fc56ce3983e60..4dba08082911f1783f9aec9379602845b9bd1e8f 100644 (file)
@@ -3136,7 +3136,7 @@ static int slic_entry_probe(struct pci_dev *pcidev,
        mmio_start = pci_resource_start(pcidev, 0);
        mmio_len = pci_resource_len(pcidev, 0);
 
-       memmapped_ioaddr = ioremap(mmio_start, mmio_len);
+       memmapped_ioaddr = ioremap_nocache(mmio_start, mmio_len);
        if (!memmapped_ioaddr) {
                dev_err(&pcidev->dev, "cannot remap MMIO region %lx @ %lx\n",
                        mmio_len, mmio_start);