From: Simon Horman <horms@verge.net.au>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [RFC 08/17] ARM: shmobile: r8a7779: Add helper to read mode pins
Date: Tue, 26 Nov 2013 00:34:45 +0000 [thread overview]
Message-ID: <20131126003445.GI15227@verge.net.au> (raw)
In-Reply-To: <52933A35.7070206@cogentembedded.com>
On Mon, Nov 25, 2013 at 03:53:25PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 25-11-2013 5:18, Simon Horman wrote:
>
> >Add and use helper to read mode pins.
> >This will be re-used when moving marzen-reference to
> >the common clock framework.
>
> >Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> >---
> > arch/arm/mach-shmobile/clock-r8a7779.c | 11 ++---------
> > arch/arm/mach-shmobile/include/mach/r8a7779.h | 1 +
> > arch/arm/mach-shmobile/setup-r8a7779.c | 14 ++++++++++++++
> > 3 files changed, 17 insertions(+), 9 deletions(-)
>
> >diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c b/arch/arm/mach-shmobile/clock-r8a7779.c
> >index b7ce0e7..decf122 100644
> >--- a/arch/arm/mach-shmobile/clock-r8a7779.c
> >+++ b/arch/arm/mach-shmobile/clock-r8a7779.c
> [...]
> >diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
> >index 8f94531..4e3fbfb 100644
> >--- a/arch/arm/mach-shmobile/setup-r8a7779.c
> >+++ b/arch/arm/mach-shmobile/setup-r8a7779.c
> >@@ -874,6 +874,20 @@ void __init r8a7779_add_standard_devices_dt(void)
> > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> > }
> >
> >+#define MODEMR 0xffcc0020
> >+
> >+u32 __init r8a7779_read_mode_pins(void)
> >+{
> >+ void __iomem *modemr = ioremap_nocache(MODEMR, PAGE_SIZE);
>
> Why waste 2 4K pages if you're only interested in 4 bytes (i.e. 1
> page)? I remember I've already asked that question...
I don't recall if there was a conclusion to that discussion.
In any case, this patch just shuffles code around.
WARNING: multiple messages have this Message-ID (diff)
From: horms@verge.net.au (Simon Horman)
To: linux-arm-kernel@lists.infradead.org
Subject: [RFC 08/17] ARM: shmobile: r8a7779: Add helper to read mode pins
Date: Tue, 26 Nov 2013 09:34:45 +0900 [thread overview]
Message-ID: <20131126003445.GI15227@verge.net.au> (raw)
In-Reply-To: <52933A35.7070206@cogentembedded.com>
On Mon, Nov 25, 2013 at 03:53:25PM +0400, Sergei Shtylyov wrote:
> Hello.
>
> On 25-11-2013 5:18, Simon Horman wrote:
>
> >Add and use helper to read mode pins.
> >This will be re-used when moving marzen-reference to
> >the common clock framework.
>
> >Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
> >---
> > arch/arm/mach-shmobile/clock-r8a7779.c | 11 ++---------
> > arch/arm/mach-shmobile/include/mach/r8a7779.h | 1 +
> > arch/arm/mach-shmobile/setup-r8a7779.c | 14 ++++++++++++++
> > 3 files changed, 17 insertions(+), 9 deletions(-)
>
> >diff --git a/arch/arm/mach-shmobile/clock-r8a7779.c b/arch/arm/mach-shmobile/clock-r8a7779.c
> >index b7ce0e7..decf122 100644
> >--- a/arch/arm/mach-shmobile/clock-r8a7779.c
> >+++ b/arch/arm/mach-shmobile/clock-r8a7779.c
> [...]
> >diff --git a/arch/arm/mach-shmobile/setup-r8a7779.c b/arch/arm/mach-shmobile/setup-r8a7779.c
> >index 8f94531..4e3fbfb 100644
> >--- a/arch/arm/mach-shmobile/setup-r8a7779.c
> >+++ b/arch/arm/mach-shmobile/setup-r8a7779.c
> >@@ -874,6 +874,20 @@ void __init r8a7779_add_standard_devices_dt(void)
> > of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL);
> > }
> >
> >+#define MODEMR 0xffcc0020
> >+
> >+u32 __init r8a7779_read_mode_pins(void)
> >+{
> >+ void __iomem *modemr = ioremap_nocache(MODEMR, PAGE_SIZE);
>
> Why waste 2 4K pages if you're only interested in 4 bytes (i.e. 1
> page)? I remember I've already asked that question...
I don't recall if there was a conclusion to that discussion.
In any case, this patch just shuffles code around.
next prev parent reply other threads:[~2013-11-26 0:34 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-25 1:18 [RFC 00/17] ARM: shmobile: r8a7779, marzen: multiplatform Simon Horman
2013-11-25 1:18 ` Simon Horman
2013-11-25 1:18 ` [RFC 08/17] ARM: shmobile: r8a7779: Add helper to read mode pins Simon Horman
2013-11-25 11:53 ` Sergei Shtylyov
2013-11-25 11:53 ` Sergei Shtylyov
2013-11-26 0:34 ` Simon Horman [this message]
2013-11-26 0:34 ` Simon Horman
2013-11-25 1:18 ` [RFC 13/17] ARM: shmobile: marzen-reference: Initialize CPG device Simon Horman
2013-11-25 12:15 ` Sergei Shtylyov
2013-11-25 12:15 ` Sergei Shtylyov
2013-11-26 0:35 ` Simon Horman
2013-11-26 0:35 ` Simon Horman
2013-11-25 1:18 ` [RFC 15/17] ARM: shmobile: Remove non-multiplatform Marzen reference support Simon Horman
2013-11-25 6:51 ` Kuninori Morimoto
2013-11-25 6:51 ` Kuninori Morimoto
2013-11-26 0:26 ` Simon Horman
2013-11-26 0:26 ` Simon Horman
2013-11-25 1:18 ` [RFC 16/17] ARM: shmobile: Let Marzen multiplatform boot with Marzen DTB Simon Horman
2013-11-25 6:56 ` Kuninori Morimoto
2013-11-25 6:56 ` Kuninori Morimoto
2013-11-26 0:27 ` Simon Horman
2013-11-26 0:27 ` Simon Horman
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=20131126003445.GI15227@verge.net.au \
--to=horms@verge.net.au \
--cc=linux-arm-kernel@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.