Commit 5b47f3cb authored by Samuel Iglesias Gonsálvez's avatar Samuel Iglesias Gonsálvez Committed by Greg Kroah-Hartman

Staging: ipack/bridges/tpci200: use ioremap_nocache instead of ioremap

The CPU might write-combine and/or cache memory access.  Something that for
most modules is not desired.
Signed-off-by: default avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f45651f9
...@@ -390,15 +390,15 @@ static int tpci200_register(struct tpci200_board *tpci200) ...@@ -390,15 +390,15 @@ static int tpci200_register(struct tpci200_board *tpci200)
/* Map internal tpci200 driver user space */ /* Map internal tpci200 driver user space */
tpci200->info->interface_regs = tpci200->info->interface_regs =
ioremap(pci_resource_start(tpci200->info->pdev, ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_IP_INTERFACE_BAR), TPCI200_IP_INTERFACE_BAR),
TPCI200_IFACE_SIZE); TPCI200_IFACE_SIZE);
tpci200->info->ioidint_space = tpci200->info->ioidint_space =
ioremap(pci_resource_start(tpci200->info->pdev, ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_IO_ID_INT_SPACES_BAR), TPCI200_IO_ID_INT_SPACES_BAR),
TPCI200_IOIDINT_SIZE); TPCI200_IOIDINT_SIZE);
tpci200->info->mem8_space = tpci200->info->mem8_space =
ioremap(pci_resource_start(tpci200->info->pdev, ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_MEM8_SPACE_BAR), TPCI200_MEM8_SPACE_BAR),
TPCI200_MEM8_SIZE); TPCI200_MEM8_SIZE);
...@@ -677,7 +677,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev, ...@@ -677,7 +677,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev,
virt_addr_space->size = size_to_map; virt_addr_space->size = size_to_map;
virt_addr_space->address = virt_addr_space->address =
ioremap((unsigned long)phys_address, size_to_map); ioremap_nocache((unsigned long)phys_address, size_to_map);
out_unlock: out_unlock:
mutex_unlock(&tpci200->mutex); mutex_unlock(&tpci200->mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment