lkml.org 
[lkml]   [2003]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 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--- 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 {
\
 
 \ /
  Last update: 2005-03-22 13:35    [W:0.924 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site