Skip to contentSkip to conversation

pinctrl: pinctrl-imx: only print debug message when DEBUG is defined

PATCH New Dong Aisheng 2 participants 4 messages Jun 21, 2012 – Jul 14, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined

From: Dong Aisheng <[email protected]>

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.

---
Hopefully it can catch 3.5.

---
 drivers/pinctrl/pinctrl-imx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/pinctrl/pinctrl-imx.c +2 -0
index dd6d93a..90c837f 100644
@@ -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;
 }
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined

Quoted 8 lines · Dong Aisheng

From: Dong Aisheng <[email protected]>

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.

Quoted 7 lines

---
Hopefully it can catch 3.5.

---
 drivers/pinctrl/pinctrl-imx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Ping.

Regards
Dong Aisheng

#2 lore raw

PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined

Quoted 9 lines · Dong Aisheng
Quoted 8 lines · Dong Aisheng

From: Dong Aisheng <[email protected]>

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.

Quoted 9 lines
Quoted 7 lines

---
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

#3 lore raw

PATCH 1/1 pinctrl: pinctrl-imx: only print debug message when DEBUG is defined

Quoted 17 lines · Dong Aisheng
Quoted 16 lines · Dong Aisheng
Quoted 15 lines · Dong Aisheng

From: Dong Aisheng <[email protected]>

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.

---
Hopefully it can catch 3.5.

---
 drivers/pinctrl/pinctrl-imx.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
Quoted 5 lines
Quoted 2 lines

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