From: Tony Lindgren <tony@atomide.com>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org,
Kevin Hilman <khilman@deeprootsystems.com>,
linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/9] omap: define _toggle_gpio_edge_triggering only for OMAP1
Date: Wed, 3 Feb 2010 08:57:55 -0800 [thread overview]
Message-ID: <20100203165754.GA22747@atomide.com> (raw)
In-Reply-To: <20100203081313.GB11354@pengutronix.de>
[-- Attachment #1: Type: text/plain, Size: 904 bytes --]
* Uwe Kleine-König <u.kleine-koenig@pengutronix.de> [100203 00:10]:
> Hi Tony,
>
> On Tue, Feb 02, 2010 at 06:25:55PM -0800, Tony Lindgren wrote:
> > From: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
> >
> > The only usage of _toggle_gpio_edge_triggering is in an
> > CONFIG_ARCH_OMAP1 is defined, too.
> This sentence is broken, isn't it? I guess git commit played tricks on
> me here and removed a line, something like:
>
> #ifdef CONFIG_ARCH_OMAP1 block, so only provide it if
>
> Can you add it back? I'd recommend doing the line break before the "an"
> in the first line instead of behind it.
Sure, updated patch below. The description makes more sense now :)
BTW, looks like with "git show --pretty=email" the From: field gets
messed up in the patch below. Author name shows OK in git though.
I wonder if that's a git bug for --pretty=email? Using version
1.6.6.1 it seems.
Tony
[-- Attachment #2: fix-gpio-warning-v2.patch --]
[-- Type: text/x-diff, Size: 1840 bytes --]
>From 9198bcd39f558dd56823f1c9983e2252fc99a501 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= <u.kleine-koenig@pengutronix.de>
Date: Fri, 29 Jan 2010 14:20:05 -0800
Subject: [PATCH] omap: define _toggle_gpio_edge_triggering only for OMAP1
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
The only usage of _toggle_gpio_edge_triggering is in
an #ifdef CONFIG_ARCH_OMAP1 block, so only provide it if
CONFIG_ARCH_OMAP1 is defined, too.
This fixes a compiler warning:
arch/arm/plat-omap/gpio.c:758: warning: '_toggle_gpio_edge_triggering' defined but not used
when compiling for ARCH_OMAP2, ARCH_OMAP3 or ARCH_OMAP4.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Acked-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
diff --git a/arch/arm/plat-omap/gpio.c b/arch/arm/plat-omap/gpio.c
index d17620c..d2422c7 100644
--- a/arch/arm/plat-omap/gpio.c
+++ b/arch/arm/plat-omap/gpio.c
@@ -750,6 +750,7 @@ static inline void set_24xx_gpio_triggering(struct gpio_bank *bank, int gpio,
}
#endif
+#ifdef CONFIG_ARCH_OMAP1
/*
* This only applies to chips that can't do both rising and falling edge
* detection at once. For all other chips, this function is a noop.
@@ -760,11 +761,9 @@ static void _toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio)
u32 l = 0;
switch (bank->method) {
-#ifdef CONFIG_ARCH_OMAP1
case METHOD_MPUIO:
reg += OMAP_MPUIO_GPIO_INT_EDGE;
break;
-#endif
#ifdef CONFIG_ARCH_OMAP15XX
case METHOD_GPIO_1510:
reg += OMAP1510_GPIO_INT_CONTROL;
@@ -787,6 +786,7 @@ static void _toggle_gpio_edge_triggering(struct gpio_bank *bank, int gpio)
__raw_writel(l, reg);
}
+#endif
static int _set_gpio_triggering(struct gpio_bank *bank, int gpio, int trigger)
{
WARNING: multiple messages have this Message-ID (diff)
From: tony@atomide.com (Tony Lindgren)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/9] omap: define _toggle_gpio_edge_triggering only for OMAP1
Date: Wed, 3 Feb 2010 08:57:55 -0800 [thread overview]
Message-ID: <20100203165754.GA22747@atomide.com> (raw)
In-Reply-To: <20100203081313.GB11354@pengutronix.de>
* Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de> [100203 00:10]:
> Hi Tony,
>
> On Tue, Feb 02, 2010 at 06:25:55PM -0800, Tony Lindgren wrote:
> > From: Uwe Kleine-K?nig <u.kleine-koenig@pengutronix.de>
> >
> > The only usage of _toggle_gpio_edge_triggering is in an
> > CONFIG_ARCH_OMAP1 is defined, too.
> This sentence is broken, isn't it? I guess git commit played tricks on
> me here and removed a line, something like:
>
> #ifdef CONFIG_ARCH_OMAP1 block, so only provide it if
>
> Can you add it back? I'd recommend doing the line break before the "an"
> in the first line instead of behind it.
Sure, updated patch below. The description makes more sense now :)
BTW, looks like with "git show --pretty=email" the From: field gets
messed up in the patch below. Author name shows OK in git though.
I wonder if that's a git bug for --pretty=email? Using version
1.6.6.1 it seems.
Tony
next prev parent reply other threads:[~2010-02-03 16:57 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 2:25 [PATCH 0/9] omap fixes for 2.6.33-rc6 Tony Lindgren
2010-02-03 2:25 ` Tony Lindgren
2010-02-03 2:25 ` [PATCH 1/9] omap: define _toggle_gpio_edge_triggering only for OMAP1 Tony Lindgren
2010-02-03 2:25 ` Tony Lindgren
2010-02-03 8:13 ` Uwe Kleine-König
2010-02-03 8:13 ` Uwe Kleine-König
2010-02-03 16:57 ` Tony Lindgren [this message]
2010-02-03 16:57 ` Tony Lindgren
2010-02-03 17:10 ` Uwe Kleine-König
2010-02-03 17:10 ` Uwe Kleine-König
2010-02-03 17:25 ` Tony Lindgren
2010-02-03 17:25 ` Tony Lindgren
2010-02-03 2:25 ` [PATCH 2/9] omap: Remove old unused defines for OMAP_32KSYNCT_BASE Tony Lindgren
2010-02-03 2:25 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 3/9] ARCH OMAP : enable ARCH_HAS_HOLES_MEMORYMODEL for OMAP Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 4/9] OMAP2/3: IRQ: ensure valid base address Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 5/9] OMAP2/3: GPMC: ensure valid clock pointer Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 6/9] omap: Fix 3630 mux errors Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 7/9] omap: Fix arch/arm/mach-omap2/mux.c: Off by one error Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 8/9] omap: Fix access to already released memory in clk_debugfs_register_one() Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 2:26 ` [PATCH 9/9] omap: Disable serial port autoidle by default Tony Lindgren
2010-02-03 2:26 ` Tony Lindgren
2010-02-03 3:43 ` Tony Lindgren
2010-02-03 3:43 ` Tony Lindgren
2010-02-03 14:40 ` Kevin Hilman
2010-02-03 14:40 ` 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=20100203165754.GA22747@atomide.com \
--to=tony@atomide.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=u.kleine-koenig@pengutronix.de \
/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.