From: sergei.shtylyov@cogentembedded.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 01/02] ARM: shmobile: Introduce r8a7790_read_mode_pins()
Date: Tue, 09 Jul 2013 16:57:09 +0400 [thread overview]
Message-ID: <51DC08A5.2080705@cogentembedded.com> (raw)
In-Reply-To: <20130709125016.4388.47414.sendpatchset@w520>
Hello.
On 09-07-2013 16:50, Magnus Damm wrote:
> From: Magnus Damm <damm@opensource.se>
> Break out the r8a7790 boot mode code into a separate
> function so it can be shared by multiple users.
> Signed-off-by: Magnus Damm <damm@opensource.se>
> ---
[...]
> --- 0001/arch/arm/mach-shmobile/setup-r8a7790.c
> +++ work/arch/arm/mach-shmobile/setup-r8a7790.c 2013-07-09 19:59:37.000000000 +0900
> @@ -201,6 +201,20 @@ void __init r8a7790_add_standard_devices
> r8a7790_register_thermal();
> }
>
> +#define MODEMR 0xe6160060
> +
> +u32 __init r8a7790_read_mode_pins(void)
> +{
> + void __iomem *modemr = ioremap_nocache(MODEMR, PAGE_SIZE);
Why ioremap the whole page if you only need 4 bytes, and the address
is not aligned to page?
> + u32 mode;
> +
> + BUG_ON(!modemr);
> + mode = ioread32(modemr);
> + iounmap(modemr);
> +
> + return mode;
> +}
> +
WBR, Sergei
next prev parent reply other threads:[~2013-07-09 12:57 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-07-09 12:50 [PATCH 00/02] ARM: shmobile: r8a7790 arch timer frequency update Magnus Damm
2013-07-09 12:50 ` [PATCH 01/02] ARM: shmobile: Introduce r8a7790_read_mode_pins() Magnus Damm
2013-07-09 12:57 ` Sergei Shtylyov [this message]
2013-07-09 13:05 ` Magnus Damm
2013-07-10 1:23 ` Simon Horman
2013-07-09 12:50 ` [PATCH 02/02] ARM: shmobile: Setup r8a7790 arch timer based on MD pins Magnus Damm
2013-07-10 1:23 ` [PATCH 00/02] ARM: shmobile: r8a7790 arch timer frequency update Simon Horman
2013-07-10 2:12 ` Magnus Damm
2013-07-10 2:21 ` Simon Horman
2013-07-11 8:40 ` Ulrich Hecht
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=51DC08A5.2080705@cogentembedded.com \
--to=sergei.shtylyov@cogentembedded.com \
--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 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).