Skip to contentSkip to conversation

8250_pci include offset in iomap_base

PATCH Applied Alex Williamson 2 participants 2 messages Apr 28, 2003 – Apr 29, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 8250_pci include offset in iomap_base

This one-liner is required for PCI serial ports that have multiple
MMIO ports off a single PCI BAR. Calls to request_mem_resource() fail after the first one otherwise. Patch against 2.5.67. Thanks,

Alex

--
Alex Williamson HP Linux & Open Source Lab

drivers/serial/8250_pci.c +1 -1
@@ -126,7 +126,7 @@
 			return -ENOMEM;
 
 		req->io_type = UPIO_MEM;
-		req->iomap_base = port;
+		req->iomap_base = port + offset;
 		req->iomem_base = priv->remapped_bar[bar] + offset;
 		req->iomem_reg_shift = regshift;
 	} else {
Applied
#1 lore raw
Quoted 3 lines · Alex Williamson

This one-liner is required for PCI serial ports that have multiple
MMIO ports off a single PCI BAR. Calls to request_mem_resource() fail after the first one otherwise. Patch against 2.5.67. Thanks,

Applied.

Signature · 2 lines
Russell King ([email protected])                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html