public inbox for linux-sh@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock
@ 2010-06-08  5:34 Kuninori Morimoto
  2010-06-08  5:53 ` Paul Mundt
  2010-06-08  6:19 ` Magnus Damm
  0 siblings, 2 replies; 3+ messages in thread
From: Kuninori Morimoto @ 2010-06-08  5:34 UTC (permalink / raw)
  To: linux-sh

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 arch/arm/mach-shmobile/clock-sh7367.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c
index b6454c9..98024eb 100644
--- a/arch/arm/mach-shmobile/clock-sh7367.c
+++ b/arch/arm/mach-shmobile/clock-sh7367.c
@@ -322,7 +322,7 @@ static struct clk_lookup lookups[] = {
 	CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[SYMSTP000]), /* SCIFA4 */
 	CLKDEV_DEV_ID("sh_siu", &mstp_clks[SYMSTP231]), /* SIU */
 	CLKDEV_CON_ID("cmt1", &mstp_clks[SYMSTP229]), /* CMT10 */
-	CLKDEV_DEV_ID("sh_irda", &mstp_clks[SYMSTP225]), /* IRDA */
+	CLKDEV_DEV_ID("sh_irda.0", &mstp_clks[SYMSTP225]), /* IRDA */
 	CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[SYMSTP223]), /* IIC1 */
 	CLKDEV_DEV_ID("r8a66597_hcd.0", &mstp_clks[SYMSTP222]), /* USBHS */
 	CLKDEV_DEV_ID("r8a66597_udc.0", &mstp_clks[SYMSTP222]), /* USBHS */
-- 
1.7.0.4


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

* Re: [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock
  2010-06-08  5:34 [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock Kuninori Morimoto
@ 2010-06-08  5:53 ` Paul Mundt
  2010-06-08  6:19 ` Magnus Damm
  1 sibling, 0 replies; 3+ messages in thread
From: Paul Mundt @ 2010-06-08  5:53 UTC (permalink / raw)
  To: linux-sh

On Tue, Jun 08, 2010 at 02:34:55PM +0900, Kuninori Morimoto wrote:
> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
> ---
>  arch/arm/mach-shmobile/clock-sh7367.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c
> index b6454c9..98024eb 100644
> --- a/arch/arm/mach-shmobile/clock-sh7367.c
> +++ b/arch/arm/mach-shmobile/clock-sh7367.c
> @@ -322,7 +322,7 @@ static struct clk_lookup lookups[] = {
>  	CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[SYMSTP000]), /* SCIFA4 */
>  	CLKDEV_DEV_ID("sh_siu", &mstp_clks[SYMSTP231]), /* SIU */
>  	CLKDEV_CON_ID("cmt1", &mstp_clks[SYMSTP229]), /* CMT10 */
> -	CLKDEV_DEV_ID("sh_irda", &mstp_clks[SYMSTP225]), /* IRDA */
> +	CLKDEV_DEV_ID("sh_irda.0", &mstp_clks[SYMSTP225]), /* IRDA */
>  	CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[SYMSTP223]), /* IIC1 */
>  	CLKDEV_DEV_ID("r8a66597_hcd.0", &mstp_clks[SYMSTP222]), /* USBHS */
>  	CLKDEV_DEV_ID("r8a66597_udc.0", &mstp_clks[SYMSTP222]), /* USBHS */

Can we just fix the sh_irda driver to do clock lookups properly?

If the platform device is registered without an ID then it will simply be
"sh_irda" for the clock string, and with an ID we'll have the .id suffix.
Really we don't even need to do the connection ID lookup, so a simple
clk_get(&pdev->dev, NULL) ought to match this already for you now without
having to change any of this.

If you need to make these sorts of changes in the clock lookup for a
single channel, it's a pretty clear-cut example that the driver has
completely broken clock lookup semantics and needs to be fixed.

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

* Re: [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock
  2010-06-08  5:34 [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock Kuninori Morimoto
  2010-06-08  5:53 ` Paul Mundt
@ 2010-06-08  6:19 ` Magnus Damm
  1 sibling, 0 replies; 3+ messages in thread
From: Magnus Damm @ 2010-06-08  6:19 UTC (permalink / raw)
  To: linux-sh

Hi Paul and Morimoto-san,

Thanks for your work on this!

On Tue, Jun 8, 2010 at 2:53 PM, Paul Mundt <lethal@linux-sh.org> wrote:
> On Tue, Jun 08, 2010 at 02:34:55PM +0900, Kuninori Morimoto wrote:
>> Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
>> ---
>>  arch/arm/mach-shmobile/clock-sh7367.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/arch/arm/mach-shmobile/clock-sh7367.c b/arch/arm/mach-shmobile/clock-sh7367.c
>> index b6454c9..98024eb 100644
>> --- a/arch/arm/mach-shmobile/clock-sh7367.c
>> +++ b/arch/arm/mach-shmobile/clock-sh7367.c
>> @@ -322,7 +322,7 @@ static struct clk_lookup lookups[] = {
>>       CLKDEV_DEV_ID("sh-sci.4", &mstp_clks[SYMSTP000]), /* SCIFA4 */
>>       CLKDEV_DEV_ID("sh_siu", &mstp_clks[SYMSTP231]), /* SIU */
>>       CLKDEV_CON_ID("cmt1", &mstp_clks[SYMSTP229]), /* CMT10 */
>> -     CLKDEV_DEV_ID("sh_irda", &mstp_clks[SYMSTP225]), /* IRDA */
>> +     CLKDEV_DEV_ID("sh_irda.0", &mstp_clks[SYMSTP225]), /* IRDA */
>>       CLKDEV_DEV_ID("i2c-sh_mobile.1", &mstp_clks[SYMSTP223]), /* IIC1 */
>>       CLKDEV_DEV_ID("r8a66597_hcd.0", &mstp_clks[SYMSTP222]), /* USBHS */
>>       CLKDEV_DEV_ID("r8a66597_udc.0", &mstp_clks[SYMSTP222]), /* USBHS */
>
> Can we just fix the sh_irda driver to do clock lookups properly?

Morimoto-san,

In this case please just adjust the irda platform data for SH-Mobile
ARM and pass a -1 as id instead of 0.

Cheers,

/ magnus

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

end of thread, other threads:[~2010-06-08  6:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-08  5:34 [PATCH] ARM: mach-shmobile: clock-sh7367: modify IrDA clock Kuninori Morimoto
2010-06-08  5:53 ` Paul Mundt
2010-06-08  6:19 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox