Skip to content

Commit

Permalink
Staging: ipack/bridges/tpci200: use ioremap_nocache instead of ioremap
Browse files Browse the repository at this point in the history
The CPU might write-combine and/or cache memory access.  Something that for
most modules is not desired.

Signed-off-by: Samuel Iglesias Gonsálvez <siglesias@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Samuel Iglesias Gonsálvez authored and Greg Kroah-Hartman committed Aug 14, 2012
1 parent f45651f commit 5b47f3c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/staging/ipack/bridges/tpci200.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,15 @@ static int tpci200_register(struct tpci200_board *tpci200)

/* Map internal tpci200 driver user space */
tpci200->info->interface_regs =
ioremap(pci_resource_start(tpci200->info->pdev,
ioremap_nocache(pci_resource_start(tpci200->info->pdev,
TPCI200_IP_INTERFACE_BAR),
TPCI200_IFACE_SIZE);
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_IOIDINT_SIZE);
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_SIZE);

Expand Down Expand Up @@ -677,7 +677,7 @@ static int tpci200_slot_map_space(struct ipack_device *dev,

virt_addr_space->size = size_to_map;
virt_addr_space->address =
ioremap((unsigned long)phys_address, size_to_map);
ioremap_nocache((unsigned long)phys_address, size_to_map);

out_unlock:
mutex_unlock(&tpci200->mutex);
Expand Down

0 comments on commit 5b47f3c

Please sign in to comment.