From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Kevin Hilman <khilman@deeprootsystems.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 28/29] PM FIX: convert TI io_p2v() usage to OMAP2_IO_ADDRESS()
Date: Thu, 11 Sep 2008 14:05:50 +0100 [thread overview]
Message-ID: <20080911130550.GA4986@flint.arm.linux.org.uk> (raw)
In-Reply-To: <1221136453-16697-28-git-send-email-khilman@deeprootsystems.com>
On Thu, Sep 11, 2008 at 03:34:12PM +0300, Kevin Hilman wrote:
> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
> ---
> arch/arm/mach-omap2/pm34xx.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
> index 5242ba0..7436332 100644
> --- a/arch/arm/mach-omap2/pm34xx.c
> +++ b/arch/arm/mach-omap2/pm34xx.c
> @@ -222,7 +222,7 @@ static void restore_table_entry(void)
> u32 previous_value, control_reg_value;
> u32 *address;
> /* Get virtual address of SCRATCHPAD */
> - scratchpad_address = (u32 *) io_p2v(SCRATCHPAD);
> + scratchpad_address = (u32 *) OMAP2_IO_ADDRESS(SCRATCHPAD);
scratchpad_address should be u32 __iomem *, and that cast shouldn't
be there.
> /* Get address of entry that was modified */
> address = (u32 *) *(scratchpad_address + TABLE_ADDRESS_OFFSET);
> /* Get the previous value which needs to be restored */
> @@ -924,7 +924,7 @@ void clear_scratchpad_contents(void)
> u32 max_offset = SCRATHPAD_ROM_OFFSET;
> u32 offset = 0;
> u32 v;
> - u32 v_addr = io_p2v(SCRATCHPAD_ROM);
> + u32 v_addr = OMAP2_IO_ADDRESS(SCRATCHPAD_ROM);
Ditto.
> if (__raw_readl(OMAP3430_PRM_RSTST) & 0x1) {
> for ( ; offset <= max_offset; offset += 0x4)
> __raw_writel(0x0, (v_addr + offset));
> @@ -942,7 +942,7 @@ void save_scratchpad_contents(void)
> u32 *sdram_context_address;
>
> /* Get virtual address of SCRATCHPAD */
> - scratchpad_address = (u32 *) io_p2v(SCRATCHPAD);
> + scratchpad_address = (u32 *) OMAP2_IO_ADDRESS(SCRATCHPAD);
Ditto.
next prev parent reply other threads:[~2008-09-11 13:06 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-11 12:31 [PATCH 0/29] PM: proposed branch for PM collaboration Kevin Hilman
2008-09-11 12:33 ` [PATCH 01/29] PM: Dynamic GPIO clock handling Kevin Hilman
2008-09-11 12:33 ` [PATCH 02/29] Added sleep support to UART Kevin Hilman
2008-09-11 12:33 ` [PATCH 03/29] PM debug support for 34xx Kevin Hilman
2008-09-11 12:33 ` [PATCH 04/29] Sysfs interface for controlling suspend states + set_pwrdm_state fix Kevin Hilman
2008-09-11 12:33 ` [PATCH 05/29] Basic cpuidle driver Kevin Hilman
2008-09-11 12:33 ` [PATCH 06/29] per/neon and core handling in idle Kevin Hilman
2008-09-11 12:33 ` [PATCH 07/29] menuconfig updates for cpuidle Kevin Hilman
2008-09-11 12:33 ` [PATCH 08/29] scratchpad contents Kevin Hilman
2008-09-11 12:33 ` [PATCH 09/29] mpu off state enabled Kevin Hilman
2008-09-11 12:33 ` [PATCH 10/29] gpmc context save/restore Kevin Hilman
2008-09-11 12:33 ` [PATCH 11/29] serial " Kevin Hilman
2008-09-11 12:33 ` [PATCH 12/29] gpio " Kevin Hilman
2008-09-11 12:33 ` [PATCH 13/29] i2c " Kevin Hilman
2008-09-11 12:33 ` [PATCH 14/29] CORE " Kevin Hilman
2008-09-11 12:33 ` [PATCH 15/29] OMAP3: PM: Move serial console check from omap3_can_sleep to idle loop Kevin Hilman
2008-09-11 12:34 ` [PATCH 16/29] OMAP3: PM: Remove static keyword from _omap_sram_idle declaration Kevin Hilman
2008-09-11 12:34 ` [PATCH 17/29] OMAP3: PM: Remove unneeded code from traditional pm_idle loop Kevin Hilman
2008-09-11 12:34 ` [PATCH 18/29] OMAP3: PM: Do not build pm_idle loop if cpuidle is used Kevin Hilman
2008-09-11 12:34 ` [PATCH 19/29] OMAP3: Do not set mpu, core, neon states " Kevin Hilman
2008-09-11 12:34 ` [PATCH 20/29] OMAP3: PM: Fixed header paths in include statements Kevin Hilman
2008-09-11 12:34 ` [PATCH 21/29] OMAP3: PM: Remove unneeded code from suspend Kevin Hilman
2008-09-11 12:34 ` [PATCH 22/29] DMA context save / restore Kevin Hilman
2008-09-11 12:34 ` [PATCH 23/29] OMAP3: PM: Add new Kconfig option to enable/disable off mode Kevin Hilman
2008-09-11 12:34 ` [PATCH 24/29] OMAP3SDP: Add new config for off mode testing Kevin Hilman
2008-09-11 12:34 ` [PATCH 25/29] OMAP3: Remove CONFIG_OMAP_SYSOFFMODE flag Kevin Hilman
2008-09-11 12:34 ` [PATCH 26/29] OMAP: Sysfs interface for enabling voltage off in idle Kevin Hilman
2008-09-11 12:34 ` [PATCH 27/29] OMAP3: OFF command integration Kevin Hilman
2008-09-11 12:34 ` [PATCH 28/29] PM FIX: convert TI io_p2v() usage to OMAP2_IO_ADDRESS() Kevin Hilman
2008-09-11 12:34 ` [PATCH 29/29] PM: serial: ensure padconf wake-enable bits are set for UARTs Kevin Hilman
2008-09-11 13:05 ` Russell King - ARM Linux [this message]
2008-09-11 14:38 ` [PATCH 15/29] OMAP3: PM: Move serial console check from omap3_can_sleep to idle loop Daniel Stone
2008-09-11 17:40 ` [PATCH 0/29] PM: proposed branch for PM collaboration Tony Lindgren
2008-09-12 3:44 ` Rajendra Nayak
2008-09-16 13:14 ` Kevin Hilman
2008-09-16 18:17 ` Koen Kooi
2008-09-17 13:18 ` Kevin Hilman
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=20080911130550.GA4986@flint.arm.linux.org.uk \
--to=linux@arm.linux.org.uk \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@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