All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
@ 2012-06-21 10:10 Dong Aisheng
  2012-07-06  9:11 ` Dong Aisheng
  0 siblings, 1 reply; 4+ messages in thread
From: Dong Aisheng @ 2012-06-21 10:10 UTC (permalink / raw)
  To: linux-arm-kernel

From: Dong Aisheng <dong.aisheng@linaro.org>

Fix regression for commit 3a86a5f8 (pinctrl: pinctrl-imx: free allocated
pinctrl_map structure only once and use kernel facilities for IMX_PMX_DUMP)
introduced in 3.5-rc3.
With above commit, the debug code will alway be excuted.
Change to excute it only when DEBUG is defined.

Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
---
Hopefully it can catch 3.5.
---
 drivers/pinctrl/pinctrl-imx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/pinctrl/pinctrl-imx.c b/drivers/pinctrl/pinctrl-imx.c
index dd6d93a..90c837f 100644
--- a/drivers/pinctrl/pinctrl-imx.c
+++ b/drivers/pinctrl/pinctrl-imx.c
@@ -474,7 +474,9 @@ static int __devinit imx_pinctrl_parse_groups(struct device_node *np,
 		grp->configs[j] = config & ~IMX_PAD_SION;
 	}
 
+#ifdef DEBUG
 	IMX_PMX_DUMP(info, grp->pins, grp->mux_mode, grp->configs, grp->npins);
+#endif
 
 	return 0;
 }
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
  2012-06-21 10:10 [PATCH] pinctrl: pinctrl-imx: only print debug message when DEBUG is defined Dong Aisheng
@ 2012-07-06  9:11 ` Dong Aisheng
  2012-07-12  9:12   ` Dong Aisheng
  0 siblings, 1 reply; 4+ messages in thread
From: Dong Aisheng @ 2012-07-06  9:11 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jun 21, 2012 at 06:10:35PM +0800, Dong Aisheng wrote:
> From: Dong Aisheng <dong.aisheng@linaro.org>
> 
> Fix regression for commit 3a86a5f8 (pinctrl: pinctrl-imx: free allocated
> pinctrl_map structure only once and use kernel facilities for IMX_PMX_DUMP)
> introduced in 3.5-rc3.
> With above commit, the debug code will alway be excuted.
> Change to excute it only when DEBUG is defined.
> 
> Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
> ---
> Hopefully it can catch 3.5.
> ---
>  drivers/pinctrl/pinctrl-imx.c |    2 ++
>  1 files changed, 2 insertions(+), 0 deletions(-)
> 
Ping.

Regards
Dong Aisheng

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
  2012-07-06  9:11 ` Dong Aisheng
@ 2012-07-12  9:12   ` Dong Aisheng
  2012-07-14 20:29     ` Linus Walleij
  0 siblings, 1 reply; 4+ messages in thread
From: Dong Aisheng @ 2012-07-12  9:12 UTC (permalink / raw)
  To: linux-arm-kernel

On Fri, Jul 06, 2012 at 05:11:40PM +0800, Dong Aisheng wrote:
> On Thu, Jun 21, 2012 at 06:10:35PM +0800, Dong Aisheng wrote:
> > From: Dong Aisheng <dong.aisheng@linaro.org>
> > 
> > Fix regression for commit 3a86a5f8 (pinctrl: pinctrl-imx: free allocated
> > pinctrl_map structure only once and use kernel facilities for IMX_PMX_DUMP)
> > introduced in 3.5-rc3.
> > With above commit, the debug code will alway be excuted.
> > Change to excute it only when DEBUG is defined.
> > 
> > Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
> > ---
> > Hopefully it can catch 3.5.
> > ---
> >  drivers/pinctrl/pinctrl-imx.c |    2 ++
> >  1 files changed, 2 insertions(+), 0 deletions(-)
> > 
> Ping.
> 
Hi Linus,

Can you help merge this?

Regards
Dong Aisheng

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] pinctrl: pinctrl-imx: only print debug message when DEBUG is defined
  2012-07-12  9:12   ` Dong Aisheng
@ 2012-07-14 20:29     ` Linus Walleij
  0 siblings, 0 replies; 4+ messages in thread
From: Linus Walleij @ 2012-07-14 20:29 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, Jul 12, 2012 at 11:12 AM, Dong Aisheng <b29396@freescale.com> wrote:
> On Fri, Jul 06, 2012 at 05:11:40PM +0800, Dong Aisheng wrote:
>> On Thu, Jun 21, 2012 at 06:10:35PM +0800, Dong Aisheng wrote:
>> > From: Dong Aisheng <dong.aisheng@linaro.org>
>> >
>> > Fix regression for commit 3a86a5f8 (pinctrl: pinctrl-imx: free allocated
>> > pinctrl_map structure only once and use kernel facilities for IMX_PMX_DUMP)
>> > introduced in 3.5-rc3.
>> > With above commit, the debug code will alway be excuted.
>> > Change to excute it only when DEBUG is defined.
>> >
>> > Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
>> > ---
>> > Hopefully it can catch 3.5.
>> > ---
>> >  drivers/pinctrl/pinctrl-imx.c |    2 ++
>> >  1 files changed, 2 insertions(+), 0 deletions(-)
>> >
>> Ping.
>>
> Hi Linus,
>
> Can you help merge this?

OK applied it, we'll see if I can get it to Torvalds in time...

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-07-14 20:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-06-21 10:10 [PATCH] pinctrl: pinctrl-imx: only print debug message when DEBUG is defined Dong Aisheng
2012-07-06  9:11 ` Dong Aisheng
2012-07-12  9:12   ` Dong Aisheng
2012-07-14 20:29     ` Linus Walleij

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.