* [PATCH] 8250_pci include offset in iomap_base
@ 2003-04-28 17:31 Alex Williamson
2003-04-29 14:08 ` Russell King
0 siblings, 1 reply; 2+ messages in thread
From: Alex Williamson @ 2003-04-28 17:31 UTC (permalink / raw)
To: linux-kernel
[-- Attachment #1: Type: text/plain, Size: 286 bytes --]
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
[-- Attachment #2: 8250_pci_mmio.diff --]
[-- Type: text/plain, Size: 399 bytes --]
--- linux-2.5.67.clean/drivers/serial/8250_pci.c 2003-04-07 11:32:18.000000000 -0600
+++ linux-2.5.67/drivers/serial/8250_pci.c 2003-04-28 11:08:38.000000000 -0600
@@ -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 {
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] 8250_pci include offset in iomap_base
2003-04-28 17:31 [PATCH] 8250_pci include offset in iomap_base Alex Williamson
@ 2003-04-29 14:08 ` Russell King
0 siblings, 0 replies; 2+ messages in thread
From: Russell King @ 2003-04-29 14:08 UTC (permalink / raw)
To: Alex Williamson; +Cc: linux-kernel
On Mon, Apr 28, 2003 at 11:31:30AM -0600, Alex Williamson wrote:
> 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.
--
Russell King (rmk@arm.linux.org.uk) The developer of ARM Linux
http://www.arm.linux.org.uk/personal/aboutme.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-04-29 13:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-28 17:31 [PATCH] 8250_pci include offset in iomap_base Alex Williamson
2003-04-29 14:08 ` Russell King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).