public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Mundt <lethal@linux-sh.org>
To: linux-sh@vger.kernel.org
Subject: Re: [PATCH] sh: P4 ioremap pass-through
Date: Tue, 25 Nov 2008 13:18:52 +0000	[thread overview]
Message-ID: <20081125131852.GC20883@linux-sh.org> (raw)
In-Reply-To: <20081125125729.8565.28530.sendpatchset@rx1.opensource.se>

On Tue, Nov 25, 2008 at 09:57:29PM +0900, Magnus Damm wrote:
> From: Magnus Damm <damm@igel.co.jp>
> 
> This patch adds a pass-through case when ioremapping P4 addresses.
> 
> Addresses passed to ioremap() should be physical addresses, so the
> best option is usually to convert the virtual address to a physical
> address before calling ioremap. This will give you a virtual address
> in P2 which matches the physical address and this works well for
> most internal hardware blocks on the SuperH architecture.
> 
> However, some hardware blocks must be accessed through P4. Converting
> the P4 address to a physical and then back to a P2 does not work. One
> example of this is the sh7722 TMU block, it must be accessed through P4.
> 
> Without this patch P4 addresses will be mapped using PTEs which
> requires the page allocator to be up and running.
> 
> Signed-off-by: Magnus Damm <damm@igel.co.jp>

Applied, thanks.

      reply	other threads:[~2008-11-25 13:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-25 12:57 [PATCH] sh: P4 ioremap pass-through Magnus Damm
2008-11-25 13:18 ` Paul Mundt [this message]

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=20081125131852.GC20883@linux-sh.org \
    --to=lethal@linux-sh.org \
    --cc=linux-sh@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