Skip to contentSkip to conversation

pinctrl: sh-pfc: r8a7791: SD1_CLK fix

PATCH In review Magnus Damm 3 participants 4 messages Feb 12, 2014 – Feb 26, 2014

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

PATCH 2/3 pinctrl: sh-pfc: r8a7791: SD1_CLK fix

From: Magnus Damm <[email protected]>

Fix the SD1_CLK handling for r8a7791. Without this patch it is impossible to request all pins needed for SDHI1 on the Koelsch board.

---

 drivers/pinctrl/sh-pfc/pfc-r8a7791.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/pinctrl/sh-pfc/pfc-r8a7791.c +4 -2
@@ -89,7 +89,8 @@ enum {
 
 	/* GPSR6 */
 	FN_IP13_10, FN_IP13_11, FN_IP13_12, FN_IP13_13, FN_IP13_14,
-	FN_IP13_15, FN_IP13_18_16, FN_IP13_21_19, FN_IP13_22, FN_IP13_24_23,
+	FN_IP13_15, FN_IP13_18_16, FN_IP13_21_19,
+	FN_IP13_22, FN_IP13_24_23, FN_SD1_CLK,
 	FN_IP13_25, FN_IP13_26, FN_IP13_27, FN_IP13_30_28, FN_IP14_1_0,
 	FN_IP14_2, FN_IP14_3, FN_IP14_4, FN_IP14_5, FN_IP14_6, FN_IP14_7,
 	FN_IP14_10_8, FN_IP14_13_11, FN_IP14_16_14, FN_IP14_19_17,
@@ -788,6 +789,7 @@ static const u16 pinmux_data[] = {
 	PINMUX_DATA(USB1_PWEN_MARK, FN_USB1_PWEN),
 	PINMUX_DATA(USB1_OVC_MARK, FN_USB1_OVC),
 	PINMUX_DATA(DU0_DOTCLKIN_MARK, FN_DU0_DOTCLKIN),
+	PINMUX_DATA(SD1_CLK_MARK, FN_SD1_CLK),
 
 	/* IPSR0 */
 	PINMUX_IPSR_DATA(IP0_0, D0),
@@ -3825,7 +3827,7 @@ static const struct pinmux_cfg_reg pinmu
 		GP_6_11_FN, FN_IP13_25,
 		GP_6_10_FN, FN_IP13_24_23,
 		GP_6_9_FN, FN_IP13_22,
-		0, 0,
+		GP_6_8_FN, FN_SD1_CLK,
 		GP_6_7_FN, FN_IP13_21_19,
 		GP_6_6_FN, FN_IP13_18_16,
 		GP_6_5_FN, FN_IP13_15,
Acked-by on v1 2/3
#1 lore raw

Hi Magnus,

(CC'ing Linus Walleij)

Thank you for the patch.

Quoted 7 lines · On Wednesday 12 February 2014 13:26:10 Magnus Damm wrote:

From: Magnus Damm <[email protected]>

Fix the SD1_CLK handling for r8a7791. Without this patch it is impossible to request all pins needed for SDHI1 on the Koelsch board.

drivers/pinctrl/sh-pfc/pfc-r8a7791.c

Quoted 7 lines

---

 drivers/pinctrl/sh-pfc/pfc-r8a7791.c |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/pinctrl/sh-pfc/pfc-r8a7791.c +0 -0

16:17:41.000000000

Quoted 27 lines

+0900 @@ -89,7 +89,8 @@ enum {

drivers/pinctrl/sh-pfc/pfc-r8a7791.c +4 -2
 	/* GPSR6 */
 	FN_IP13_10, FN_IP13_11, FN_IP13_12, FN_IP13_13, FN_IP13_14,
-	FN_IP13_15, FN_IP13_18_16, FN_IP13_21_19, FN_IP13_22, FN_IP13_24_23,
+	FN_IP13_15, FN_IP13_18_16, FN_IP13_21_19,
+	FN_IP13_22, FN_IP13_24_23, FN_SD1_CLK,
 	FN_IP13_25, FN_IP13_26, FN_IP13_27, FN_IP13_30_28, FN_IP14_1_0,
 	FN_IP14_2, FN_IP14_3, FN_IP14_4, FN_IP14_5, FN_IP14_6, FN_IP14_7,
 	FN_IP14_10_8, FN_IP14_13_11, FN_IP14_16_14, FN_IP14_19_17,
@@ -788,6 +789,7 @@ static const u16 pinmux_data[] = {
 	PINMUX_DATA(USB1_PWEN_MARK, FN_USB1_PWEN),
 	PINMUX_DATA(USB1_OVC_MARK, FN_USB1_OVC),
 	PINMUX_DATA(DU0_DOTCLKIN_MARK, FN_DU0_DOTCLKIN),
+	PINMUX_DATA(SD1_CLK_MARK, FN_SD1_CLK),
 
 	/* IPSR0 */
 	PINMUX_IPSR_DATA(IP0_0, D0),
@@ -3825,7 +3827,7 @@ static const struct pinmux_cfg_reg pinmu
 		GP_6_11_FN, FN_IP13_25,
 		GP_6_10_FN, FN_IP13_24_23,
 		GP_6_9_FN, FN_IP13_22,
-		0, 0,
+		GP_6_8_FN, FN_SD1_CLK,
 		GP_6_7_FN, FN_IP13_21_19,
 		GP_6_6_FN, FN_IP13_18_16,
 		GP_6_5_FN, FN_IP13_15,
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
In reply to Magnus Damm
Quoted 9 lines · Laurent Pinchart

Hi Magnus,

(CC'ing Linus Walleij)

Thank you for the patch.

Quoted 2 lines · On Wednesday 12 February 2014 13:26:10 Magnus Damm wrote:

From: Magnus Damm <[email protected]>

Quoted 7 lines
Quoted 5 lines

Fix the SD1_CLK handling for r8a7791. Without this patch it is impossible to request all pins needed for SDHI1 on the Koelsch board.

Since it seems I don't have this patch, if it is a fix on the critical path please send it to me so I can apply it for fixes.

(Or if non-critical, atleast let me apply it to devel...)

Yours,
Linus Walleij

#3 lore raw
In reply to Magnus Damm

Hi Linus,

Quoted 16 lines · Linus Walleij
Quoted 13 lines · Laurent Pinchart

Hi Magnus,

(CC'ing Linus Walleij)

Thank you for the patch.

Quoted 6 lines · On Wednesday 12 February 2014 13:26:10 Magnus Damm wrote:

From: Magnus Damm <[email protected]>

Fix the SD1_CLK handling for r8a7791. Without this patch it is impossible to request all pins needed for SDHI1 on the Koelsch board.

Quoted 8 lines
Quoted 3 lines
Quoted 1 line

Since it seems I don't have this patch, if it is a fix on the critical path please send it to me so I can apply it for fixes.

(Or if non-critical, atleast let me apply it to devel...)

Thanks for the reminder! I don't consider this patch to be particularly critical, but if you could include it in devel than that would be greatly appreciated. I just resent the patch as "[PATCH]
pinctrl: sh-pfc: r8a7791: SD1_CLK fix" based on linux-next tag next-20140225. This time I remembered to include you, sorry for last time!

If you want me to rework the patch somehow to cope with all the recent PFC changes then please let me know and I will step up.

Cheers,

/ magnus