From: Felipe Balbi <felipe.balbi@nokia.com>
To: ext Kevin Hilman <khilman@deeprootsystems.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: Re: [PATCH -pm] OMAP3: GPIO: introduce per-bank context save/restore
Date: Wed, 16 Dec 2009 00:37:28 +0200 [thread overview]
Message-ID: <20091215223728.GA28203@nokia.com> (raw)
In-Reply-To: <1260916172-8226-1-git-send-email-khilman@deeprootsystems.com>
Hi,
On Tue, Dec 15, 2009 at 11:29:32PM +0100, ext Kevin Hilman wrote:
>diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
>index 57a46be..283ed2e 100644
>--- a/arch/arm/plat-omap/gpio.c
>+++ b/arch/arm/plat-omap/gpio.c
>@@ -174,6 +174,21 @@
> #define OMAP44XX_GPIO5_BASE 0x4805B000
> #define OMAP44XX_GPIO6_BASE 0x4805D000
>
>+struct omap3_gpio_bank_regs {
>+ u32 sysconfig;
>+ u32 irqenable1;
>+ u32 irqenable2;
>+ u32 wake_en;
>+ u32 ctrl;
>+ u32 oe;
>+ u32 leveldetect0;
>+ u32 leveldetect1;
>+ u32 risingdetect;
>+ u32 fallingdetect;
>+ u32 dataout;
>+};
>+
>+
one blank line only ?
>@@ -2338,28 +2372,8 @@ void omap_gpio_restore_context(void)
>
> for (i = 1; i < gpio_bank_count; i++) {
> struct gpio_bank *bank = &gpio_bank[i];
>- __raw_writel(gpio_context[i].sysconfig,
>- bank->base + OMAP24XX_GPIO_SYSCONFIG);
>- __raw_writel(gpio_context[i].irqenable1,
>- bank->base + OMAP24XX_GPIO_IRQENABLE1);
>- __raw_writel(gpio_context[i].irqenable2,
>- bank->base + OMAP24XX_GPIO_IRQENABLE2);
>- __raw_writel(gpio_context[i].wake_en,
>- bank->base + OMAP24XX_GPIO_WAKE_EN);
>- __raw_writel(gpio_context[i].ctrl,
>- bank->base + OMAP24XX_GPIO_CTRL);
>- __raw_writel(gpio_context[i].leveldetect0,
>- bank->base + OMAP24XX_GPIO_LEVELDETECT0);
>- __raw_writel(gpio_context[i].leveldetect1,
>- bank->base + OMAP24XX_GPIO_LEVELDETECT1);
>- __raw_writel(gpio_context[i].risingdetect,
>- bank->base + OMAP24XX_GPIO_RISINGDETECT);
>- __raw_writel(gpio_context[i].fallingdetect,
>- bank->base + OMAP24XX_GPIO_FALLINGDETECT);
>- __raw_writel(gpio_context[i].dataout,
>- bank->base + OMAP24XX_GPIO_DATAOUT);
>- __raw_writel(gpio_context[i].oe,
>- bank->base + OMAP24XX_GPIO_OE);
>+
^ trailing tabs (2 tabs).
--
balbi
prev parent reply other threads:[~2009-12-15 22:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-15 22:29 [PATCH -pm] OMAP3: GPIO: introduce per-bank context save/restore Kevin Hilman
2009-12-15 22:37 ` Felipe Balbi [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=20091215223728.GA28203@nokia.com \
--to=felipe.balbi@nokia.com \
--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