Linux ATA/IDE development
 help / color / mirror / Atom feed
* [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion
@ 2009-07-06 22:26 Kevin Hilman
  2009-07-13 18:21 ` Sergei Shtylyov
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2009-07-06 22:26 UTC (permalink / raw)
  To: linux-ide, Sergei Shtylyov; +Cc: davinci-linux-open-source

DaVinci core code has converted to the new clkdev API so
clock name strings are not needed.  Instead, just the a
'struct device' pointer is needed.

Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
---
Fix needed for 2.6.31

 drivers/ide/palm_bk3710.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c
index 3c1dc01..f8eddf0 100644
--- a/drivers/ide/palm_bk3710.c
+++ b/drivers/ide/palm_bk3710.c
@@ -318,7 +318,7 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
 	int i, rc;
 	struct ide_hw hw, *hws[] = { &hw };
 
-	clk = clk_get(&pdev->dev, "IDECLK");
+	clk = clk_get(&pdev->dev, NULL);
 	if (IS_ERR(clk))
 		return -ENODEV;
 
-- 
1.6.3.3


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

* Re: [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion
  2009-07-06 22:26 [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion Kevin Hilman
@ 2009-07-13 18:21 ` Sergei Shtylyov
  2009-07-13 21:01   ` Kevin Hilman
  0 siblings, 1 reply; 5+ messages in thread
From: Sergei Shtylyov @ 2009-07-13 18:21 UTC (permalink / raw)
  To: Kevin Hilman; +Cc: linux-ide, davinci-linux-open-source

Hello.

Kevin Hilman wrote:

> DaVinci core code has converted to the new clkdev API so
> clock name strings are not needed.  Instead, just the a
> 'struct device' pointer is needed.
> 
> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>

Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>

> ---
> Fix needed for 2.6.31
> 
>  drivers/ide/palm_bk3710.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c
> index 3c1dc01..f8eddf0 100644
> --- a/drivers/ide/palm_bk3710.c
> +++ b/drivers/ide/palm_bk3710.c
> @@ -318,7 +318,7 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
>  	int i, rc;
>  	struct ide_hw hw, *hws[] = { &hw };
>  
> -	clk = clk_get(&pdev->dev, "IDECLK");
> +	clk = clk_get(&pdev->dev, NULL);
>  	if (IS_ERR(clk))
>  		return -ENODEV;
>  

    It doesn't seem strictly necessary for 2.6.31 -- only in the sense that 
"IDECLK" isn't named so anymore, however, clk_get() should still work.

MBR, Sergei

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

* Re: [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion
  2009-07-13 18:21 ` Sergei Shtylyov
@ 2009-07-13 21:01   ` Kevin Hilman
  2009-07-13 21:07     ` David Miller
  0 siblings, 1 reply; 5+ messages in thread
From: Kevin Hilman @ 2009-07-13 21:01 UTC (permalink / raw)
  To: linux-ide; +Cc: Sergei Shtylyov

Sergei Shtylyov <sshtylyov@ru.mvista.com> writes:

> Hello.
>
> Kevin Hilman wrote:
>
>> DaVinci core code has converted to the new clkdev API so
>> clock name strings are not needed.  Instead, just the a
>> 'struct device' pointer is needed.
>>
>> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
>
> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>
>> ---
>> Fix needed for 2.6.31

Can this fix be merged for the .31-rc series please?

Thanks,

Kevin

>>  drivers/ide/palm_bk3710.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/drivers/ide/palm_bk3710.c b/drivers/ide/palm_bk3710.c
>> index 3c1dc01..f8eddf0 100644
>> --- a/drivers/ide/palm_bk3710.c
>> +++ b/drivers/ide/palm_bk3710.c
>> @@ -318,7 +318,7 @@ static int __init palm_bk3710_probe(struct platform_device *pdev)
>>  	int i, rc;
>>  	struct ide_hw hw, *hws[] = { &hw };
>>  -	clk = clk_get(&pdev->dev, "IDECLK");
>> +	clk = clk_get(&pdev->dev, NULL);
>>  	if (IS_ERR(clk))
>>  		return -ENODEV;
>>  
>
>    It doesn't seem strictly necessary for 2.6.31 -- only in the sense
> that "IDECLK" isn't named so anymore, however, clk_get() should still
> work.
>
> MBR, Sergei

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

* Re: [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion
  2009-07-13 21:01   ` Kevin Hilman
@ 2009-07-13 21:07     ` David Miller
  2009-07-14 23:23       ` Kevin Hilman
  0 siblings, 1 reply; 5+ messages in thread
From: David Miller @ 2009-07-13 21:07 UTC (permalink / raw)
  To: khilman; +Cc: linux-ide, sshtylyov

From: Kevin Hilman <khilman@deeprootsystems.com>
Date: Mon, 13 Jul 2009 14:01:55 -0700

> Sergei Shtylyov <sshtylyov@ru.mvista.com> writes:
> 
>> Hello.
>>
>> Kevin Hilman wrote:
>>
>>> DaVinci core code has converted to the new clkdev API so
>>> clock name strings are not needed.  Instead, just the a
>>> 'struct device' pointer is needed.
>>>
>>> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
>>
>> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>>
>>> ---
>>> Fix needed for 2.6.31
> 
> Can this fix be merged for the .31-rc series please?
> 
>>    It doesn't seem strictly necessary for 2.6.31 -- only in the sense
>> that "IDECLK" isn't named so anymore, however, clk_get() should still
>> work.

Either it's needed or it isn't.  It seems like it isn't, and since
the rules for integrating changes in the RC series right now is
strict, I'm only going to merge something if it is actually
necessary.

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

* Re: [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion
  2009-07-13 21:07     ` David Miller
@ 2009-07-14 23:23       ` Kevin Hilman
  0 siblings, 0 replies; 5+ messages in thread
From: Kevin Hilman @ 2009-07-14 23:23 UTC (permalink / raw)
  To: David Miller; +Cc: linux-ide, sshtylyov

On Mon, Jul 13, 2009 at 2:07 PM, David Miller<davem@davemloft.net> wrote:
> From: Kevin Hilman <khilman@deeprootsystems.com>
> Date: Mon, 13 Jul 2009 14:01:55 -0700
>
>> Sergei Shtylyov <sshtylyov@ru.mvista.com> writes:
>>
>>> Hello.
>>>
>>> Kevin Hilman wrote:
>>>
>>>> DaVinci core code has converted to the new clkdev API so
>>>> clock name strings are not needed.  Instead, just the a
>>>> 'struct device' pointer is needed.
>>>>
>>>> Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
>>>
>>> Acked-by: Sergei Shtylyov <sshtylyov@ru.mvista.com>
>>>
>>>> ---
>>>> Fix needed for 2.6.31
>>
>> Can this fix be merged for the .31-rc series please?
>>
>>>    It doesn't seem strictly necessary for 2.6.31 -- only in the sense
>>> that "IDECLK" isn't named so anymore, however, clk_get() should still
>>> work.
>
> Either it's needed or it isn't.  It seems like it isn't, and since
> the rules for integrating changes in the RC series right now is
> strict, I'm only going to merge something if it is actually
> necessary.
>

OK, after looking closer at clkdev, it looks like things will continue
to work in .31 without this patch, so this is merely confusing, and
not broken.

I'm ok if it waits until next merge window.

Thanks,

Kevin

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

end of thread, other threads:[~2009-07-14 23:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-06 22:26 [PATCH] IDE: palm_bk3710: convert clock usage after clkdev conversion Kevin Hilman
2009-07-13 18:21 ` Sergei Shtylyov
2009-07-13 21:01   ` Kevin Hilman
2009-07-13 21:07     ` David Miller
2009-07-14 23:23       ` Kevin Hilman

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