Skip to content

Commit

Permalink
um: virt-pci: fix platform map offset
Browse files Browse the repository at this point in the history
The offset is currently always zero so the backend can't distinguish
between accesses to different ioremapped areas.

Fixes: 522c532 ("virt-pci: add platform bus support")
Signed-off-by: Vincent Whitchurch <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
  • Loading branch information
vwax authored and richardweinberger committed Jan 4, 2024
1 parent 861deac commit 32253f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/virt-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,7 @@ static long um_pci_map_platform(unsigned long offset, size_t size,
*ops = &um_pci_device_bar_ops;
*priv = &um_pci_platform_device->resptr[0];

return 0;
return offset;
}

static const struct logic_iomem_region_ops um_pci_platform_ops = {
Expand Down

0 comments on commit 32253f0

Please sign in to comment.