* [PATCH 02/11] spi: spi-sh-msiof: round up div to fix freq calculation
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: takasi-y @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
Truncation on integer division in sh_msiof_spi_set_clk_regs()
results in insufficient transfer frequency (> max_speed_freq).
For example, source 52MHz, required max 6MHz
52/6 = 8.6 --> 8, then 1/8 table selected,
and result in 52/8 = 6.5 MHz (>6MHz)
Rounding it up is a simple solution.
52/6 = 8.6 --> 9, then 1/16 table selected,
and result in 52/16 = 3.25 MHz
Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
---
drivers/spi/spi-sh-msiof.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index c74298c..ac8795f 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -152,7 +152,7 @@ static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p,
size_t k;
if (!WARN_ON(!spi_hz || !parent_rate))
- div = parent_rate / spi_hz;
+ div = DIV_ROUND_UP(parent_rate, spi_hz);
/* TODO: make more fine grained */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 56+ messages in thread* [PATCH 02/11] spi: spi-sh-msiof: round up div to fix freq calculation
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
0 siblings, 0 replies; 56+ messages in thread
From: takasi-y-nDL5PR/MsHhHfZP73Gtkiw @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
Truncation on integer division in sh_msiof_spi_set_clk_regs()
results in insufficient transfer frequency (> max_speed_freq).
For example, source 52MHz, required max 6MHz
52/6 = 8.6 --> 8, then 1/8 table selected,
and result in 52/8 = 6.5 MHz (>6MHz)
Rounding it up is a simple solution.
52/6 = 8.6 --> 9, then 1/16 table selected,
and result in 52/16 = 3.25 MHz
Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
---
drivers/spi/spi-sh-msiof.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index c74298c..ac8795f 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -152,7 +152,7 @@ static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p,
size_t k;
if (!WARN_ON(!spi_hz || !parent_rate))
- div = parent_rate / spi_hz;
+ div = DIV_ROUND_UP(parent_rate, spi_hz);
/* TODO: make more fine grained */
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 56+ messages in thread
* Re: [PATCH 02/11] spi: spi-sh-msiof: round up div to fix freq calculation
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
@ 2013-12-02 12:48 ` Mark Brown
-1 siblings, 0 replies; 56+ messages in thread
From: Mark Brown @ 2013-12-02 12:48 UTC (permalink / raw)
To: takasi-y; +Cc: linux-sh, Simon Horman, Magnus Damm, Linus Walleij, linux-spi
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
On Mon, Dec 02, 2013 at 03:19:13AM +0900, takasi-y@ops.dti.ne.jp wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> Truncation on integer division in sh_msiof_spi_set_clk_regs()
> results in insufficient transfer frequency (> max_speed_freq).
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 56+ messages in thread
* Re: [PATCH 02/11] spi: spi-sh-msiof: round up div to fix freq calculation
@ 2013-12-02 12:48 ` Mark Brown
0 siblings, 0 replies; 56+ messages in thread
From: Mark Brown @ 2013-12-02 12:48 UTC (permalink / raw)
To: takasi-y; +Cc: linux-sh, Simon Horman, Magnus Damm, Linus Walleij, linux-spi
[-- Attachment #1: Type: text/plain, Size: 277 bytes --]
On Mon, Dec 02, 2013 at 03:19:13AM +0900, takasi-y@ops.dti.ne.jp wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> Truncation on integer division in sh_msiof_spi_set_clk_regs()
> results in insufficient transfer frequency (> max_speed_freq).
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 56+ messages in thread
* [PATCH 06/11] spi: spi-sh-msiof: RMDIR1[15:0] may should be zero
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: takasi-y @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
On Ape6, Rcar-H2, and Rcar-M2,
RMDR1(Receive Mode Register 1) has no FLD, CONT, RXSTP bits.
HW manual says "The write value should always be 0" for RMDR1[15:0].
I guess this is a part of .rx_need_dummy_tx case, and use same flag.
Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
---
drivers/spi/spi-sh-msiof.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 936d8ab..b0334b6 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -183,11 +183,13 @@ static void sh_msiof_spi_set_pin_regs(struct sh_msiof_spi_priv *p,
*/
sh_msiof_write(p, FCTR, 0);
- tmp = 0;
+ tmp = 0x00000005;
tmp |= !cs_high << 25;
tmp |= lsb_first << 24;
- sh_msiof_write(p, TMDR1, 0xe0000005 | tmp);
- sh_msiof_write(p, RMDR1, 0x20000005 | tmp);
+ sh_msiof_write(p, TMDR1, 0xe0000000 | tmp);
+ if (p->info->rx_need_dummy_tx)
+ tmp &= ~0x0000ffff;
+ sh_msiof_write(p, RMDR1, 0x20000000 | tmp);
tmp = 0xa0000000;
tmp |= cpol << 30; /* TSCKIZ */
--
1.7.9.5
^ permalink raw reply related [flat|nested] 56+ messages in thread* [PATCH 06/11] spi: spi-sh-msiof: RMDIR1[15:0] may should be zero
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
0 siblings, 0 replies; 56+ messages in thread
From: takasi-y-nDL5PR/MsHhHfZP73Gtkiw @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
On Ape6, Rcar-H2, and Rcar-M2,
RMDR1(Receive Mode Register 1) has no FLD, CONT, RXSTP bits.
HW manual says "The write value should always be 0" for RMDR1[15:0].
I guess this is a part of .rx_need_dummy_tx case, and use same flag.
Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
---
drivers/spi/spi-sh-msiof.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index 936d8ab..b0334b6 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -183,11 +183,13 @@ static void sh_msiof_spi_set_pin_regs(struct sh_msiof_spi_priv *p,
*/
sh_msiof_write(p, FCTR, 0);
- tmp = 0;
+ tmp = 0x00000005;
tmp |= !cs_high << 25;
tmp |= lsb_first << 24;
- sh_msiof_write(p, TMDR1, 0xe0000005 | tmp);
- sh_msiof_write(p, RMDR1, 0x20000005 | tmp);
+ sh_msiof_write(p, TMDR1, 0xe0000000 | tmp);
+ if (p->info->rx_need_dummy_tx)
+ tmp &= ~0x0000ffff;
+ sh_msiof_write(p, RMDR1, 0x20000000 | tmp);
tmp = 0xa0000000;
tmp |= cpol << 30; /* TSCKIZ */
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 56+ messages in thread
* [PATCH 07/11] spi: spi-sh-msiof: RSCR register may absent
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: takasi-y @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
On Ape6, Rcar-H2, and Rcar-M2,
MSIOF lacks RSCR(Receive Clock Select Register).
I guess this is a part of .rx_need_dummy_tx case, and use same flag.
Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
---
drivers/spi/spi-sh-msiof.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index b0334b6..bbd989f 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -164,7 +164,8 @@ static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p,
k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1);
sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr);
- sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr);
+ if (!p->info->rx_need_dummy_tx)
+ sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr);
}
static void sh_msiof_spi_set_pin_regs(struct sh_msiof_spi_priv *p,
--
1.7.9.5
^ permalink raw reply related [flat|nested] 56+ messages in thread* [PATCH 07/11] spi: spi-sh-msiof: RSCR register may absent
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
0 siblings, 0 replies; 56+ messages in thread
From: takasi-y-nDL5PR/MsHhHfZP73Gtkiw @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
On Ape6, Rcar-H2, and Rcar-M2,
MSIOF lacks RSCR(Receive Clock Select Register).
I guess this is a part of .rx_need_dummy_tx case, and use same flag.
Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
---
drivers/spi/spi-sh-msiof.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index b0334b6..bbd989f 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -164,7 +164,8 @@ static void sh_msiof_spi_set_clk_regs(struct sh_msiof_spi_priv *p,
k = min_t(int, k, ARRAY_SIZE(sh_msiof_spi_clk_table) - 1);
sh_msiof_write(p, TSCR, sh_msiof_spi_clk_table[k].scr);
- sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr);
+ if (!p->info->rx_need_dummy_tx)
+ sh_msiof_write(p, RSCR, sh_msiof_spi_clk_table[k].scr);
}
static void sh_msiof_spi_set_pin_regs(struct sh_msiof_spi_priv *p,
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 56+ messages in thread
[parent not found: <1385921962-19843-7-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>]
* Re: [PATCH 07/11] spi: spi-sh-msiof: RSCR register may absent
[not found] ` <1385921962-19843-7-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2014-02-12 16:06 ` Geert Uytterhoeven
0 siblings, 0 replies; 56+ messages in thread
From: Geert Uytterhoeven @ 2014-02-12 16:06 UTC (permalink / raw)
To: takasi-y-nDL5PR/MsHhHfZP73Gtkiw
Cc: Linux-sh list, Simon Horman, Magnus Damm, Linus Walleij,
Mark Brown, linux-spi
Hi Yoshii-san,
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> On Ape6, Rcar-H2, and Rcar-M2,
> MSIOF lacks RSCR(Receive Clock Select Register).
> I guess this is a part of .rx_need_dummy_tx case, and use same flag.
Are you sure? I'm under the impression MSIOF on APE6 does have RSCR,
just like on A1, and SH (e.g. 7724).
Given also that:
- dummy TX is needed during reception for APE6, R-Car H2/M2, and
(perhaps --- this is not 100% clear to me) A1,
- RMDR1[15:0] must be zero on APE6, and R-Car H2/M2.
there are (at least) 4 different variants of MSIOF:
- SH
- A1
- APE6
- R-Car H2 and M2
And I don't know about SH7372 and SH73A0...
But we indeed may not need to distinguish between all variants.
You just use the value of rx_need_dummy_tx as test condition.
If this works for APE6 and A1, we can add a new platform device name
"spi_sh_mobile_msiof" instead of adding the rx_need_dummy_tx flag
to platform data (struct sh_msiof_spi_info).
This would be in line with the currently defined (but so far unused) DT
compatible values "renesas,sh-msiof" and "renesas,sh-mobile-msiof".
What do you think?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 07/11] spi: spi-sh-msiof: RSCR register may absent
@ 2014-02-12 16:06 ` Geert Uytterhoeven
0 siblings, 0 replies; 56+ messages in thread
From: Geert Uytterhoeven @ 2014-02-12 16:06 UTC (permalink / raw)
To: takasi-y-nDL5PR/MsHhHfZP73Gtkiw
Cc: Linux-sh list, Simon Horman, Magnus Damm, Linus Walleij,
Mark Brown, linux-spi
Hi Yoshii-san,
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org> wrote:
> On Ape6, Rcar-H2, and Rcar-M2,
> MSIOF lacks RSCR(Receive Clock Select Register).
> I guess this is a part of .rx_need_dummy_tx case, and use same flag.
Are you sure? I'm under the impression MSIOF on APE6 does have RSCR,
just like on A1, and SH (e.g. 7724).
Given also that:
- dummy TX is needed during reception for APE6, R-Car H2/M2, and
(perhaps --- this is not 100% clear to me) A1,
- RMDR1[15:0] must be zero on APE6, and R-Car H2/M2.
there are (at least) 4 different variants of MSIOF:
- SH
- A1
- APE6
- R-Car H2 and M2
And I don't know about SH7372 and SH73A0...
But we indeed may not need to distinguish between all variants.
You just use the value of rx_need_dummy_tx as test condition.
If this works for APE6 and A1, we can add a new platform device name
"spi_sh_mobile_msiof" instead of adding the rx_need_dummy_tx flag
to platform data (struct sh_msiof_spi_info).
This would be in line with the currently defined (but so far unused) DT
compatible values "renesas,sh-msiof" and "renesas,sh-mobile-msiof".
What do you think?
Thanks!
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 56+ messages in thread[parent not found: <CAMuHMdVVC1deEQfbLzPzU08LYxf=KOtG3oL2_M4HMBGvJE+8KQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 07/11] spi: spi-sh-msiof: RSCR register may absent
[not found] ` <CAMuHMdVVC1deEQfbLzPzU08LYxf=KOtG3oL2_M4HMBGvJE+8KQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2014-02-12 23:50 ` Simon Horman
0 siblings, 0 replies; 56+ messages in thread
From: Simon Horman @ 2014-02-12 23:50 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: takasi-y-nDL5PR/MsHhHfZP73Gtkiw, Linux-sh list, Magnus Damm,
Linus Walleij, Mark Brown, linux-spi
On Wed, Feb 12, 2014 at 05:06:41PM +0100, Geert Uytterhoeven wrote:
> Hi Yoshii-san,
>
> On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> > On Ape6, Rcar-H2, and Rcar-M2,
> > MSIOF lacks RSCR(Receive Clock Select Register).
> > I guess this is a part of .rx_need_dummy_tx case, and use same flag.
>
> Are you sure? I'm under the impression MSIOF on APE6 does have RSCR,
> just like on A1, and SH (e.g. 7724).
FWIW, the version of the APE6 documentation that I have access to
indicates that it does have RSCR.
> Given also that:
> - dummy TX is needed during reception for APE6, R-Car H2/M2, and
> (perhaps --- this is not 100% clear to me) A1,
> - RMDR1[15:0] must be zero on APE6, and R-Car H2/M2.
>
> there are (at least) 4 different variants of MSIOF:
> - SH
> - A1
> - APE6
> - R-Car H2 and M2
>
> And I don't know about SH7372 and SH73A0...
>
> But we indeed may not need to distinguish between all variants.
> You just use the value of rx_need_dummy_tx as test condition.
> If this works for APE6 and A1, we can add a new platform device name
> "spi_sh_mobile_msiof" instead of adding the rx_need_dummy_tx flag
> to platform data (struct sh_msiof_spi_info).
> This would be in line with the currently defined (but so far unused) DT
> compatible values "renesas,sh-msiof" and "renesas,sh-mobile-msiof".
>
> What do you think?
>
> Thanks!
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
>
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 07/11] spi: spi-sh-msiof: RSCR register may absent
@ 2014-02-12 23:50 ` Simon Horman
0 siblings, 0 replies; 56+ messages in thread
From: Simon Horman @ 2014-02-12 23:50 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: takasi-y-nDL5PR/MsHhHfZP73Gtkiw, Linux-sh list, Magnus Damm,
Linus Walleij, Mark Brown, linux-spi
On Wed, Feb 12, 2014 at 05:06:41PM +0100, Geert Uytterhoeven wrote:
> Hi Yoshii-san,
>
> On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org> wrote:
> > On Ape6, Rcar-H2, and Rcar-M2,
> > MSIOF lacks RSCR(Receive Clock Select Register).
> > I guess this is a part of .rx_need_dummy_tx case, and use same flag.
>
> Are you sure? I'm under the impression MSIOF on APE6 does have RSCR,
> just like on A1, and SH (e.g. 7724).
FWIW, the version of the APE6 documentation that I have access to
indicates that it does have RSCR.
> Given also that:
> - dummy TX is needed during reception for APE6, R-Car H2/M2, and
> (perhaps --- this is not 100% clear to me) A1,
> - RMDR1[15:0] must be zero on APE6, and R-Car H2/M2.
>
> there are (at least) 4 different variants of MSIOF:
> - SH
> - A1
> - APE6
> - R-Car H2 and M2
>
> And I don't know about SH7372 and SH73A0...
>
> But we indeed may not need to distinguish between all variants.
> You just use the value of rx_need_dummy_tx as test condition.
> If this works for APE6 and A1, we can add a new platform device name
> "spi_sh_mobile_msiof" instead of adding the rx_need_dummy_tx flag
> to platform data (struct sh_msiof_spi_info).
> This would be in line with the currently defined (but so far unused) DT
> compatible values "renesas,sh-msiof" and "renesas,sh-mobile-msiof".
>
> What do you think?
>
> Thanks!
>
> Gr{oetje,eeting}s,
>
> Geert
>
> --
> Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert-Td1EMuHUCqxL1ZNQvxDV9g@public.gmane.org
>
> In personal conversations with technical people, I call myself a hacker. But
> when I'm talking to journalists I just say "programmer" or something like that.
> -- Linus Torvalds
>
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 56+ messages in thread
* [PATCH 08/11] ARM: shmobile: r8a7791: Add MSIOF clocks
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: takasi-y @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
Add clocks for MSIOF0,1,2,
and DEV_ID spi_sh_msiof.1,2,3 for platform devices.
(numberd 1-based for the compatibility with BSP)
Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
---
arch/arm/mach-shmobile/clock-r8a7791.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/clock-r8a7791.c b/arch/arm/mach-shmobile/clock-r8a7791.c
index ff2d60d..0530f3a 100644
--- a/arch/arm/mach-shmobile/clock-r8a7791.c
+++ b/arch/arm/mach-shmobile/clock-r8a7791.c
@@ -125,9 +125,10 @@ enum {
MSTP726, MSTP724, MSTP723, MSTP721, MSTP720,
MSTP719, MSTP718, MSTP715, MSTP714,
MSTP522,
- MSTP216, MSTP207, MSTP206,
+ MSTP216, MSTP208, MSTP207, MSTP206, MSTP205,
MSTP204, MSTP203, MSTP202, MSTP1105, MSTP1106, MSTP1107,
MSTP124,
+ MSTP000,
MSTP_NR
};
@@ -143,8 +144,10 @@ static struct clk mstp_clks[MSTP_NR] = {
[MSTP714] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 14, 0), /* SCIF5 */
[MSTP522] = SH_CLK_MSTP32(&extal_clk, SMSTPCR5, 22, 0), /* Thermal */
[MSTP216] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 16, 0), /* SCIFB2 */
+ [MSTP208] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 8, 0), /* MSIOF1 */
[MSTP207] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 7, 0), /* SCIFB1 */
[MSTP206] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 6, 0), /* SCIFB0 */
+ [MSTP205] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 5, 0), /* MSIOF2 */
[MSTP204] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 4, 0), /* SCIFA0 */
[MSTP203] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 3, 0), /* SCIFA1 */
[MSTP202] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 2, 0), /* SCIFA2 */
@@ -152,6 +155,7 @@ static struct clk mstp_clks[MSTP_NR] = {
[MSTP1106] = SH_CLK_MSTP32(&mp_clk, SMSTPCR11, 6, 0), /* SCIFA4 */
[MSTP1107] = SH_CLK_MSTP32(&mp_clk, SMSTPCR11, 7, 0), /* SCIFA5 */
[MSTP124] = SH_CLK_MSTP32(&rclk_clk, SMSTPCR1, 24, 0), /* CMT0 */
+ [MSTP000] = SH_CLK_MSTP32(&mp_clk, SMSTPCR0, 0, 0), /* MSIOF0 */
};
static struct clk_lookup lookups[] = {
@@ -192,6 +196,9 @@ static struct clk_lookup lookups[] = {
CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]),
CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
+ CLKDEV_DEV_ID("spi_sh_msiof.1", &mstp_clks[MSTP000]),
+ CLKDEV_DEV_ID("spi_sh_msiof.2", &mstp_clks[MSTP208]),
+ CLKDEV_DEV_ID("spi_sh_msiof.3", &mstp_clks[MSTP205]),
};
#define R8A7791_CLOCK_ROOT(e, m, p0, p1, p30, p31) \
--
1.7.9.5
^ permalink raw reply related [flat|nested] 56+ messages in thread* [PATCH 08/11] ARM: shmobile: r8a7791: Add MSIOF clocks
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
0 siblings, 0 replies; 56+ messages in thread
From: takasi-y-nDL5PR/MsHhHfZP73Gtkiw @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
Add clocks for MSIOF0,1,2,
and DEV_ID spi_sh_msiof.1,2,3 for platform devices.
(numberd 1-based for the compatibility with BSP)
Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
---
arch/arm/mach-shmobile/clock-r8a7791.c | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/arch/arm/mach-shmobile/clock-r8a7791.c b/arch/arm/mach-shmobile/clock-r8a7791.c
index ff2d60d..0530f3a 100644
--- a/arch/arm/mach-shmobile/clock-r8a7791.c
+++ b/arch/arm/mach-shmobile/clock-r8a7791.c
@@ -125,9 +125,10 @@ enum {
MSTP726, MSTP724, MSTP723, MSTP721, MSTP720,
MSTP719, MSTP718, MSTP715, MSTP714,
MSTP522,
- MSTP216, MSTP207, MSTP206,
+ MSTP216, MSTP208, MSTP207, MSTP206, MSTP205,
MSTP204, MSTP203, MSTP202, MSTP1105, MSTP1106, MSTP1107,
MSTP124,
+ MSTP000,
MSTP_NR
};
@@ -143,8 +144,10 @@ static struct clk mstp_clks[MSTP_NR] = {
[MSTP714] = SH_CLK_MSTP32(&p_clk, SMSTPCR7, 14, 0), /* SCIF5 */
[MSTP522] = SH_CLK_MSTP32(&extal_clk, SMSTPCR5, 22, 0), /* Thermal */
[MSTP216] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 16, 0), /* SCIFB2 */
+ [MSTP208] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 8, 0), /* MSIOF1 */
[MSTP207] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 7, 0), /* SCIFB1 */
[MSTP206] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 6, 0), /* SCIFB0 */
+ [MSTP205] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 5, 0), /* MSIOF2 */
[MSTP204] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 4, 0), /* SCIFA0 */
[MSTP203] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 3, 0), /* SCIFA1 */
[MSTP202] = SH_CLK_MSTP32(&mp_clk, SMSTPCR2, 2, 0), /* SCIFA2 */
@@ -152,6 +155,7 @@ static struct clk mstp_clks[MSTP_NR] = {
[MSTP1106] = SH_CLK_MSTP32(&mp_clk, SMSTPCR11, 6, 0), /* SCIFA4 */
[MSTP1107] = SH_CLK_MSTP32(&mp_clk, SMSTPCR11, 7, 0), /* SCIFA5 */
[MSTP124] = SH_CLK_MSTP32(&rclk_clk, SMSTPCR1, 24, 0), /* CMT0 */
+ [MSTP000] = SH_CLK_MSTP32(&mp_clk, SMSTPCR0, 0, 0), /* MSIOF0 */
};
static struct clk_lookup lookups[] = {
@@ -192,6 +196,9 @@ static struct clk_lookup lookups[] = {
CLKDEV_DEV_ID("sh_cmt.0", &mstp_clks[MSTP124]),
CLKDEV_DEV_ID("e61f0000.thermal", &mstp_clks[MSTP522]),
CLKDEV_DEV_ID("rcar_thermal", &mstp_clks[MSTP522]),
+ CLKDEV_DEV_ID("spi_sh_msiof.1", &mstp_clks[MSTP000]),
+ CLKDEV_DEV_ID("spi_sh_msiof.2", &mstp_clks[MSTP208]),
+ CLKDEV_DEV_ID("spi_sh_msiof.3", &mstp_clks[MSTP205]),
};
#define R8A7791_CLOCK_ROOT(e, m, p0, p1, p30, p31) \
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 56+ messages in thread
* [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: takasi-y @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
Define resources for msiof0,1,2. HWM says there is msiof3, but omit
it because its clock, reset and irqs are not seen on HWM. Anyway, only
msiof0 is registerd, so far, because others lack of chance for testing.
msiof0 has id=1 (spi_sh_msiof.1), for a compatibility with BSP.
Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
---
arch/arm/mach-shmobile/setup-r8a7791.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c
index cddca99..5669fa0 100644
--- a/arch/arm/mach-shmobile/setup-r8a7791.c
+++ b/arch/arm/mach-shmobile/setup-r8a7791.c
@@ -26,6 +26,7 @@
#include <linux/platform_data/irq-renesas-irqc.h>
#include <linux/serial_sci.h>
#include <linux/sh_timer.h>
+#include <linux/spi/sh_msiof.h>
#include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7791.h>
@@ -200,6 +201,34 @@ static const struct resource thermal_resources[] __initconst = {
thermal_resources, \
ARRAY_SIZE(thermal_resources))
+static const struct sh_msiof_spi_info sh_msiof_info __initconst = {
+ .rx_fifo_override = 256,
+ .num_chipselect = 1,
+ .rx_need_dummy_tx = 1,
+};
+
+static const struct resource sh_msiof0_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6e20000, 0x0064),
+ DEFINE_RES_IRQ(gic_spi(156)),
+};
+
+static const struct resource sh_msiof1_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6e10000, 0x0064),
+ DEFINE_RES_IRQ(gic_spi(157)),
+};
+
+static const struct resource sh_msiof2_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6e00000, 0x0064),
+ DEFINE_RES_IRQ(gic_spi(158)),
+};
+
+#define r8a7791_register_msiof(idx) \
+ platform_device_register_resndata(&platform_bus, "spi_sh_msiof", \
+ (idx+1), sh_msiof##idx##_resources, \
+ ARRAY_SIZE(sh_msiof##idx##_resources), \
+ &sh_msiof_info, \
+ sizeof(struct sh_msiof_spi_info))
+
void __init r8a7791_add_dt_devices(void)
{
r8a7791_register_scif(SCIFA0);
@@ -218,6 +247,7 @@ void __init r8a7791_add_dt_devices(void)
r8a7791_register_scif(SCIFA4);
r8a7791_register_scif(SCIFA5);
r8a7791_register_cmt(00);
+ r8a7791_register_msiof(0);
}
void __init r8a7791_add_standard_devices(void)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 56+ messages in thread* [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
0 siblings, 0 replies; 56+ messages in thread
From: takasi-y-nDL5PR/MsHhHfZP73Gtkiw @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
Define resources for msiof0,1,2. HWM says there is msiof3, but omit
it because its clock, reset and irqs are not seen on HWM. Anyway, only
msiof0 is registerd, so far, because others lack of chance for testing.
msiof0 has id=1 (spi_sh_msiof.1), for a compatibility with BSP.
Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
---
arch/arm/mach-shmobile/setup-r8a7791.c | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/arch/arm/mach-shmobile/setup-r8a7791.c b/arch/arm/mach-shmobile/setup-r8a7791.c
index cddca99..5669fa0 100644
--- a/arch/arm/mach-shmobile/setup-r8a7791.c
+++ b/arch/arm/mach-shmobile/setup-r8a7791.c
@@ -26,6 +26,7 @@
#include <linux/platform_data/irq-renesas-irqc.h>
#include <linux/serial_sci.h>
#include <linux/sh_timer.h>
+#include <linux/spi/sh_msiof.h>
#include <mach/common.h>
#include <mach/irqs.h>
#include <mach/r8a7791.h>
@@ -200,6 +201,34 @@ static const struct resource thermal_resources[] __initconst = {
thermal_resources, \
ARRAY_SIZE(thermal_resources))
+static const struct sh_msiof_spi_info sh_msiof_info __initconst = {
+ .rx_fifo_override = 256,
+ .num_chipselect = 1,
+ .rx_need_dummy_tx = 1,
+};
+
+static const struct resource sh_msiof0_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6e20000, 0x0064),
+ DEFINE_RES_IRQ(gic_spi(156)),
+};
+
+static const struct resource sh_msiof1_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6e10000, 0x0064),
+ DEFINE_RES_IRQ(gic_spi(157)),
+};
+
+static const struct resource sh_msiof2_resources[] __initconst = {
+ DEFINE_RES_MEM(0xe6e00000, 0x0064),
+ DEFINE_RES_IRQ(gic_spi(158)),
+};
+
+#define r8a7791_register_msiof(idx) \
+ platform_device_register_resndata(&platform_bus, "spi_sh_msiof", \
+ (idx+1), sh_msiof##idx##_resources, \
+ ARRAY_SIZE(sh_msiof##idx##_resources), \
+ &sh_msiof_info, \
+ sizeof(struct sh_msiof_spi_info))
+
void __init r8a7791_add_dt_devices(void)
{
r8a7791_register_scif(SCIFA0);
@@ -218,6 +247,7 @@ void __init r8a7791_add_dt_devices(void)
r8a7791_register_scif(SCIFA4);
r8a7791_register_scif(SCIFA5);
r8a7791_register_cmt(00);
+ r8a7791_register_msiof(0);
}
void __init r8a7791_add_standard_devices(void)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 56+ messages in thread* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
@ 2013-12-03 10:12 ` Linus Walleij
-1 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-03 10:12 UTC (permalink / raw)
To: takasi-y
Cc: linux-sh@vger.kernel.org, Simon Horman, Magnus Damm, Mark Brown,
linux-spi
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> Define resources for msiof0,1,2. HWM says there is msiof3, but omit
> it because its clock, reset and irqs are not seen on HWM. Anyway, only
> msiof0 is registerd, so far, because others lack of chance for testing.
> msiof0 has id=1 (spi_sh_msiof.1), for a compatibility with BSP.
>
> Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
So why is this new shiny device not registered from the device
tree instead of adding more hard-coded platform devices to the
ARM tree? The add_standard_devices() seem to add everything
from the DT just fine.
NAK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 56+ messages in thread
* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
@ 2013-12-03 10:12 ` Linus Walleij
0 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-03 10:12 UTC (permalink / raw)
To: takasi-y
Cc: linux-sh@vger.kernel.org, Simon Horman, Magnus Damm, Mark Brown,
linux-spi
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> Define resources for msiof0,1,2. HWM says there is msiof3, but omit
> it because its clock, reset and irqs are not seen on HWM. Anyway, only
> msiof0 is registerd, so far, because others lack of chance for testing.
> msiof0 has id=1 (spi_sh_msiof.1), for a compatibility with BSP.
>
> Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
So why is this new shiny device not registered from the device
tree instead of adding more hard-coded platform devices to the
ARM tree? The add_standard_devices() seem to add everything
from the DT just fine.
NAK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 56+ messages in thread
[parent not found: <CACRpkdbvrYgRh7cK0N1HrcxkYzzu9Qw4yAoQwj4f9pEf0r1qQw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
[not found] ` <CACRpkdbvrYgRh7cK0N1HrcxkYzzu9Qw4yAoQwj4f9pEf0r1qQw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-12-05 3:02 ` Simon Horman
0 siblings, 0 replies; 56+ messages in thread
From: Simon Horman @ 2013-12-05 3:02 UTC (permalink / raw)
To: Linus Walleij
Cc: takasi-y-nDL5PR/MsHhHfZP73Gtkiw,
linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Tue, Dec 03, 2013 at 11:12:32AM +0100, Linus Walleij wrote:
> On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
>
> > From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
> >
> > Define resources for msiof0,1,2. HWM says there is msiof3, but omit
> > it because its clock, reset and irqs are not seen on HWM. Anyway, only
> > msiof0 is registerd, so far, because others lack of chance for testing.
> > msiof0 has id=1 (spi_sh_msiof.1), for a compatibility with BSP.
> >
> > Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> So why is this new shiny device not registered from the device
> tree instead of adding more hard-coded platform devices to the
> ARM tree? The add_standard_devices() seem to add everything
> from the DT just fine.
>
> NAK.
Hi Linus,
the way that shmobile is handling moving to DT is multi-faceted.
One such facet is that we currently maintain two ways of booting each board.
One uses legacy-C code and initialises devices using platform devices.
The other, which we call -reference uses DT.
This patch is for the legacy-C board code to use.
This has been the approach that we have been taking for about a year now.
We have recently been giving some consideration to moving to the next stage
which we believe is to enable devices whose drivers don't have DT bindings
(yet) using DT in -reference. With this in place it should be possible
to plan removal of the legacy-C board code.
In the mean time I would prefer if we kept with the pattern that
we have been using up until now.
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
@ 2013-12-05 3:02 ` Simon Horman
0 siblings, 0 replies; 56+ messages in thread
From: Simon Horman @ 2013-12-05 3:02 UTC (permalink / raw)
To: Linus Walleij
Cc: takasi-y-nDL5PR/MsHhHfZP73Gtkiw,
linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Tue, Dec 03, 2013 at 11:12:32AM +0100, Linus Walleij wrote:
> On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org> wrote:
>
> > From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
> >
> > Define resources for msiof0,1,2. HWM says there is msiof3, but omit
> > it because its clock, reset and irqs are not seen on HWM. Anyway, only
> > msiof0 is registerd, so far, because others lack of chance for testing.
> > msiof0 has id=1 (spi_sh_msiof.1), for a compatibility with BSP.
> >
> > Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
>
> So why is this new shiny device not registered from the device
> tree instead of adding more hard-coded platform devices to the
> ARM tree? The add_standard_devices() seem to add everything
> from the DT just fine.
>
> NAK.
Hi Linus,
the way that shmobile is handling moving to DT is multi-faceted.
One such facet is that we currently maintain two ways of booting each board.
One uses legacy-C code and initialises devices using platform devices.
The other, which we call -reference uses DT.
This patch is for the legacy-C board code to use.
This has been the approach that we have been taking for about a year now.
We have recently been giving some consideration to moving to the next stage
which we believe is to enable devices whose drivers don't have DT bindings
(yet) using DT in -reference. With this in place it should be possible
to plan removal of the legacy-C board code.
In the mean time I would prefer if we kept with the pattern that
we have been using up until now.
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 56+ messages in thread
[parent not found: <20131205030235.GG21443-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>]
* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
[not found] ` <20131205030235.GG21443-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org>
@ 2013-12-11 12:27 ` Linus Walleij
0 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-11 12:27 UTC (permalink / raw)
To: Simon Horman, arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Cc: takasi-y-nDL5PR/MsHhHfZP73Gtkiw,
linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Thu, Dec 5, 2013 at 4:02 AM, Simon Horman <horms@verge.net.au> wrote:
> On Tue, Dec 03, 2013 at 11:12:32AM +0100, Linus Walleij wrote:
>> NAK.
>
> Hi Linus,
>
> the way that shmobile is handling moving to DT is multi-faceted.
> One such facet is that we currently maintain two ways of booting each board.
> One uses legacy-C code and initialises devices using platform devices.
> The other, which we call -reference uses DT.
>
> This patch is for the legacy-C board code to use.
>
> This has been the approach that we have been taking for about a year now.
> We have recently been giving some consideration to moving to the next stage
> which we believe is to enable devices whose drivers don't have DT bindings
> (yet) using DT in -reference. With this in place it should be possible
> to plan removal of the legacy-C board code.
>
> In the mean time I would prefer if we kept with the pattern that
> we have been using up until now.
If you get an OK from the ARM SoC maintainers on this approach I
will rest my case. I have to provide some kind of pushback you know,
lest I fear nothing ever happens...
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
@ 2013-12-11 12:27 ` Linus Walleij
0 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-11 12:27 UTC (permalink / raw)
To: Simon Horman, arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org
Cc: takasi-y-nDL5PR/MsHhHfZP73Gtkiw,
linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Thu, Dec 5, 2013 at 4:02 AM, Simon Horman <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> wrote:
> On Tue, Dec 03, 2013 at 11:12:32AM +0100, Linus Walleij wrote:
>> NAK.
>
> Hi Linus,
>
> the way that shmobile is handling moving to DT is multi-faceted.
> One such facet is that we currently maintain two ways of booting each board.
> One uses legacy-C code and initialises devices using platform devices.
> The other, which we call -reference uses DT.
>
> This patch is for the legacy-C board code to use.
>
> This has been the approach that we have been taking for about a year now.
> We have recently been giving some consideration to moving to the next stage
> which we believe is to enable devices whose drivers don't have DT bindings
> (yet) using DT in -reference. With this in place it should be possible
> to plan removal of the legacy-C board code.
>
> In the mean time I would prefer if we kept with the pattern that
> we have been using up until now.
If you get an OK from the ARM SoC maintainers on this approach I
will rest my case. I have to provide some kind of pushback you know,
lest I fear nothing ever happens...
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 56+ messages in thread
[parent not found: <CACRpkda=m_3Y+FcKUvAj4e1gDUuvqB4VS4bv6u-VnX4LVQQP8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>]
* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
[not found] ` <CACRpkda=m_3Y+FcKUvAj4e1gDUuvqB4VS4bv6u-VnX4LVQQP8Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2013-12-12 0:53 ` Olof Johansson
0 siblings, 0 replies; 56+ messages in thread
From: Olof Johansson @ 2013-12-12 0:53 UTC (permalink / raw)
To: Linus Walleij
Cc: Simon Horman, arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
takasi-y-nDL5PR/MsHhHfZP73Gtkiw,
linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Wed, Dec 11, 2013 at 01:27:34PM +0100, Linus Walleij wrote:
> On Thu, Dec 5, 2013 at 4:02 AM, Simon Horman <horms@verge.net.au> wrote:
> > On Tue, Dec 03, 2013 at 11:12:32AM +0100, Linus Walleij wrote:
>
> >> NAK.
> >
> > Hi Linus,
> >
> > the way that shmobile is handling moving to DT is multi-faceted.
> > One such facet is that we currently maintain two ways of booting each board.
> > One uses legacy-C code and initialises devices using platform devices.
> > The other, which we call -reference uses DT.
> >
> > This patch is for the legacy-C board code to use.
> >
> > This has been the approach that we have been taking for about a year now.
> > We have recently been giving some consideration to moving to the next stage
> > which we believe is to enable devices whose drivers don't have DT bindings
> > (yet) using DT in -reference. With this in place it should be possible
> > to plan removal of the legacy-C board code.
> >
> > In the mean time I would prefer if we kept with the pattern that
> > we have been using up until now.
>
> If you get an OK from the ARM SoC maintainers on this approach I
> will rest my case. I have to provide some kind of pushback you know,
> lest I fear nothing ever happens...
So the deal we've had with the Renesas guys is that we've been allowing
some legacy code to go in, but that we got a handshake earlier this year
that they were done adding legacy code as of 3.13 / end of the year, and
they will now start focusing on enabling multiplatform and modernizing
the shmobile platform.
So, is this one of the few straggling drivers still looking to go in? Or
are you anticipating more of this over time? I don't want to see much
more of this added right before it's time to cleanup.
-Olof
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 09/11] ARM: shmobile: r8a7791: MSIOF platform device
@ 2013-12-12 0:53 ` Olof Johansson
0 siblings, 0 replies; 56+ messages in thread
From: Olof Johansson @ 2013-12-12 0:53 UTC (permalink / raw)
To: Linus Walleij
Cc: Simon Horman, arm-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org,
takasi-y-nDL5PR/MsHhHfZP73Gtkiw,
linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Magnus Damm,
Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Wed, Dec 11, 2013 at 01:27:34PM +0100, Linus Walleij wrote:
> On Thu, Dec 5, 2013 at 4:02 AM, Simon Horman <horms-/R6kz+dDXgpPR4JQBCEnsQ@public.gmane.org> wrote:
> > On Tue, Dec 03, 2013 at 11:12:32AM +0100, Linus Walleij wrote:
>
> >> NAK.
> >
> > Hi Linus,
> >
> > the way that shmobile is handling moving to DT is multi-faceted.
> > One such facet is that we currently maintain two ways of booting each board.
> > One uses legacy-C code and initialises devices using platform devices.
> > The other, which we call -reference uses DT.
> >
> > This patch is for the legacy-C board code to use.
> >
> > This has been the approach that we have been taking for about a year now.
> > We have recently been giving some consideration to moving to the next stage
> > which we believe is to enable devices whose drivers don't have DT bindings
> > (yet) using DT in -reference. With this in place it should be possible
> > to plan removal of the legacy-C board code.
> >
> > In the mean time I would prefer if we kept with the pattern that
> > we have been using up until now.
>
> If you get an OK from the ARM SoC maintainers on this approach I
> will rest my case. I have to provide some kind of pushback you know,
> lest I fear nothing ever happens...
So the deal we've had with the Renesas guys is that we've been allowing
some legacy code to go in, but that we got a handshake earlier this year
that they were done adding legacy code as of 3.13 / end of the year, and
they will now start focusing on enabling multiplatform and modernizing
the shmobile platform.
So, is this one of the few straggling drivers still looking to go in? Or
are you anticipating more of this over time? I don't want to see much
more of this added right before it's time to cleanup.
-Olof
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 56+ messages in thread
* [PATCH 10/11] ARM: shmobile: koelsch: pinctrl map for MSIOF0
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: takasi-y @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
Enable msifo0_{clk,sync,rx,tx} pins for MSIOF driver.
Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
---
arch/arm/mach-shmobile/board-koelsch.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index 6e12914..b4add4c 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -86,6 +86,15 @@ static const struct pinctrl_map koelsch_pinctrl_map[] = {
/* SCIF1 (CN20: DEBUG SERIAL1) */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.7", "pfc-r8a7791",
"scif1_data_d", "scif1"),
+ /* MSIOF0 */
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_clk", "msiof0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_sync", "msiof0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_rx", "msiof0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_tx", "msiof0"),
};
static void __init koelsch_add_standard_devices(void)
--
1.7.9.5
^ permalink raw reply related [flat|nested] 56+ messages in thread* [PATCH 10/11] ARM: shmobile: koelsch: pinctrl map for MSIOF0
@ 2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
0 siblings, 0 replies; 56+ messages in thread
From: takasi-y-nDL5PR/MsHhHfZP73Gtkiw @ 2013-12-01 18:19 UTC (permalink / raw)
To: linux-sh-u79uwXL29TY76Z2rM5mHXA
Cc: Simon Horman, Magnus Damm, Linus Walleij, Mark Brown,
linux-spi-u79uwXL29TY76Z2rM5mHXA
From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
Enable msifo0_{clk,sync,rx,tx} pins for MSIOF driver.
Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
---
arch/arm/mach-shmobile/board-koelsch.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/arch/arm/mach-shmobile/board-koelsch.c b/arch/arm/mach-shmobile/board-koelsch.c
index 6e12914..b4add4c 100644
--- a/arch/arm/mach-shmobile/board-koelsch.c
+++ b/arch/arm/mach-shmobile/board-koelsch.c
@@ -86,6 +86,15 @@ static const struct pinctrl_map koelsch_pinctrl_map[] = {
/* SCIF1 (CN20: DEBUG SERIAL1) */
PIN_MAP_MUX_GROUP_DEFAULT("sh-sci.7", "pfc-r8a7791",
"scif1_data_d", "scif1"),
+ /* MSIOF0 */
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_clk", "msiof0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_sync", "msiof0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_rx", "msiof0"),
+ PIN_MAP_MUX_GROUP_DEFAULT("spi_sh_msiof.1", "pfc-r8a7791",
+ "msiof0_tx", "msiof0"),
};
static void __init koelsch_add_standard_devices(void)
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 56+ messages in thread* Re: [PATCH 10/11] ARM: shmobile: koelsch: pinctrl map for MSIOF0
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
@ 2013-12-03 10:13 ` Linus Walleij
-1 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-03 10:13 UTC (permalink / raw)
To: takasi-y
Cc: linux-sh@vger.kernel.org, Simon Horman, Magnus Damm, Mark Brown,
linux-spi
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> Enable msifo0_{clk,sync,rx,tx} pins for MSIOF driver.
>
> Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
If this device is registered from the device tree, the pin control
business can also be done from the device tree.
NAK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 10/11] ARM: shmobile: koelsch: pinctrl map for MSIOF0
@ 2013-12-03 10:13 ` Linus Walleij
0 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-03 10:13 UTC (permalink / raw)
To: takasi-y
Cc: linux-sh@vger.kernel.org, Simon Horman, Magnus Damm, Mark Brown,
linux-spi
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> Enable msifo0_{clk,sync,rx,tx} pins for MSIOF driver.
>
> Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
If this device is registered from the device tree, the pin control
business can also be done from the device tree.
NAK.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 56+ messages in thread
* Re: [PATCH 01/11] pinctrl: sh-pfc: r8a7791: fix msiof groups to follow GROUP
[not found] ` <1385921962-19843-1-git-send-email-takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
@ 2013-12-03 10:08 ` Linus Walleij
2013-12-01 18:19 ` takasi-y-nDL5PR/MsHhHfZP73Gtkiw
` (5 subsequent siblings)
6 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-03 10:08 UTC (permalink / raw)
To: takasi-y-nDL5PR/MsHhHfZP73Gtkiw, Laurent Pinchart
Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Simon Horman,
Magnus Damm, Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> SH_PFC_PIN_GROUP(), pins[], mux[], defines
> clk, sync, ss1, ss2, rx, tx
> But, msiof?_groups[] defines
> clk, ctrl, data
>
> Fix msiof[012]_groups members to be consistent to PIN_GROUP.
>
> Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
This looks all right to me. Laurent is merging PFC patches for this
kernel cycle, please make sure you include him on subsequent
postings. Once Laurent has a finished series I'll pull it into
the pinctrl tree.
I think the device tree changes part of this series can go directly
to Simon though?
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 56+ messages in thread* Re: [PATCH 01/11] pinctrl: sh-pfc: r8a7791: fix msiof groups to follow GROUP
@ 2013-12-03 10:08 ` Linus Walleij
0 siblings, 0 replies; 56+ messages in thread
From: Linus Walleij @ 2013-12-03 10:08 UTC (permalink / raw)
To: takasi-y-nDL5PR/MsHhHfZP73Gtkiw, Laurent Pinchart
Cc: linux-sh-u79uwXL29TY76Z2rM5mHXA@public.gmane.org, Simon Horman,
Magnus Damm, Mark Brown, linux-spi-u79uwXL29TY76Z2rM5mHXA
On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org> wrote:
> From: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
>
> SH_PFC_PIN_GROUP(), pins[], mux[], defines
> clk, sync, ss1, ss2, rx, tx
> But, msiof?_groups[] defines
> clk, ctrl, data
>
> Fix msiof[012]_groups members to be consistent to PIN_GROUP.
>
> Signed-off-by: Takashi Yoshii <takasi-y-nDL5PR/MsHhHfZP73Gtkiw@public.gmane.org>
This looks all right to me. Laurent is merging PFC patches for this
kernel cycle, please make sure you include him on subsequent
postings. Once Laurent has a finished series I'll pull it into
the pinctrl tree.
I think the device tree changes part of this series can go directly
to Simon though?
Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 56+ messages in thread
* Re: [PATCH 01/11] pinctrl: sh-pfc: r8a7791: fix msiof groups to follow GROUP
2013-12-03 10:08 ` Linus Walleij
@ 2013-12-04 1:23 ` Laurent Pinchart
-1 siblings, 0 replies; 56+ messages in thread
From: Laurent Pinchart @ 2013-12-04 1:23 UTC (permalink / raw)
To: Linus Walleij
Cc: takasi-y, linux-sh@vger.kernel.org, Simon Horman, Magnus Damm,
Mark Brown, linux-spi
Hi Linus,
On Tuesday 03 December 2013 11:08:14 Linus Walleij wrote:
> On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> > From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
> >
> > SH_PFC_PIN_GROUP(), pins[], mux[], defines
> >
> > clk, sync, ss1, ss2, rx, tx
> >
> > But, msiof?_groups[] defines
> >
> > clk, ctrl, data
> >
> > Fix msiof[012]_groups members to be consistent to PIN_GROUP.
> >
> > Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> This looks all right to me. Laurent is merging PFC patches for this
> kernel cycle, please make sure you include him on subsequent
> postings. Once Laurent has a finished series I'll pull it into
> the pinctrl tree.
I've applied this patch to my tree.
> I think the device tree changes part of this series can go directly
> to Simon though?
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 56+ messages in thread
* Re: [PATCH 01/11] pinctrl: sh-pfc: r8a7791: fix msiof groups to follow GROUP
@ 2013-12-04 1:23 ` Laurent Pinchart
0 siblings, 0 replies; 56+ messages in thread
From: Laurent Pinchart @ 2013-12-04 1:23 UTC (permalink / raw)
To: Linus Walleij
Cc: takasi-y, linux-sh@vger.kernel.org, Simon Horman, Magnus Damm,
Mark Brown, linux-spi
Hi Linus,
On Tuesday 03 December 2013 11:08:14 Linus Walleij wrote:
> On Sun, Dec 1, 2013 at 7:19 PM, <takasi-y@ops.dti.ne.jp> wrote:
> > From: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
> >
> > SH_PFC_PIN_GROUP(), pins[], mux[], defines
> >
> > clk, sync, ss1, ss2, rx, tx
> >
> > But, msiof?_groups[] defines
> >
> > clk, ctrl, data
> >
> > Fix msiof[012]_groups members to be consistent to PIN_GROUP.
> >
> > Signed-off-by: Takashi Yoshii <takasi-y@ops.dti.ne.jp>
>
> This looks all right to me. Laurent is merging PFC patches for this
> kernel cycle, please make sure you include him on subsequent
> postings. Once Laurent has a finished series I'll pull it into
> the pinctrl tree.
I've applied this patch to my tree.
> I think the device tree changes part of this series can go directly
> to Simon though?
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 56+ messages in thread