public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Alex Williamson <alex_williamson@hp.com>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] 8250_pci include offset in iomap_base
Date: Mon, 28 Apr 2003 11:31:30 -0600	[thread overview]
Message-ID: <3EAD6572.8622DDC3@hp.com> (raw)

[-- 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 {

             reply	other threads:[~2003-04-28 17:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-28 17:31 Alex Williamson [this message]
2003-04-29 14:08 ` [PATCH] 8250_pci include offset in iomap_base Russell King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EAD6572.8622DDC3@hp.com \
    --to=alex_williamson@hp.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox