All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7
@ 2013-03-10  3:48 Chen Gang
  2013-03-14  9:01 ` Chen Gang
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Gang @ 2013-03-10  3:48 UTC (permalink / raw)
  To: linux-arm-kernel


  prate is not defined, will cause compiling issue.
  need use parent_rate instead of prate.

Signed-off-by: Chen Gang <gang.chen@asianux.com>
---
 drivers/clk/clk-vt8500.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c
index b5538bb..09c6331 100644
--- a/drivers/clk/clk-vt8500.c
+++ b/drivers/clk/clk-vt8500.c
@@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
 	divisor =  parent_rate / rate;
 
 	/* If prate / rate would be decimal, incr the divisor */
-	if (rate * divisor < *prate)
+	if (rate * divisor < parent_rate)
 		divisor++;
 
 	if (divisor == cdev->div_mask + 1)
-- 
1.7.7.6

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

* [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7
  2013-03-10  3:48 [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7 Chen Gang
@ 2013-03-14  9:01 ` Chen Gang
  2013-03-14 17:48   ` Tony Prisk
  0 siblings, 1 reply; 4+ messages in thread
From: Chen Gang @ 2013-03-14  9:01 UTC (permalink / raw)
  To: linux-arm-kernel


  is there any member to help checking and applying it ?

  this issue is repeated again by randconfig make, today.


? 2013?03?10? 11:48, Chen Gang ??:
> 
>   prate is not defined, will cause compiling issue.
>   need use parent_rate instead of prate.
> 
> Signed-off-by: Chen Gang <gang.chen@asianux.com>
> ---
>  drivers/clk/clk-vt8500.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c
> index b5538bb..09c6331 100644
> --- a/drivers/clk/clk-vt8500.c
> +++ b/drivers/clk/clk-vt8500.c
> @@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
>  	divisor =  parent_rate / rate;
>  
>  	/* If prate / rate would be decimal, incr the divisor */
> -	if (rate * divisor < *prate)
> +	if (rate * divisor < parent_rate)
>  		divisor++;
>  
>  	if (divisor == cdev->div_mask + 1)
> 


-- 
Chen Gang

Asianux Corporation

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

* [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7
  2013-03-14  9:01 ` Chen Gang
@ 2013-03-14 17:48   ` Tony Prisk
  2013-03-15  0:56     ` Chen Gang
  0 siblings, 1 reply; 4+ messages in thread
From: Tony Prisk @ 2013-03-14 17:48 UTC (permalink / raw)
  To: linux-arm-kernel

On Thu, 2013-03-14 at 17:01 +0800, Chen Gang wrote:
> is there any member to help checking and applying it ?
> 
>   this issue is repeated again by randconfig make, today.
> 
> 
> ? 2013?03?10? 11:48, Chen Gang ??:
> > 
> >   prate is not defined, will cause compiling issue.
> >   need use parent_rate instead of prate.
> > 
> > Signed-off-by: Chen Gang <gang.chen@asianux.com>
> > ---
> >  drivers/clk/clk-vt8500.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> > 
> > diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c
> > index b5538bb..09c6331 100644
> > --- a/drivers/clk/clk-vt8500.c
> > +++ b/drivers/clk/clk-vt8500.c
> > @@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
> >  	divisor =  parent_rate / rate;
> >  
> >  	/* If prate / rate would be decimal, incr the divisor */
> > -	if (rate * divisor < *prate)
> > +	if (rate * divisor < parent_rate)
> >  		divisor++;
> >  
> >  	if (divisor == cdev->div_mask + 1)
> > 
> 
> 

The patch for this is in Mike's clk-fixes branch.

Regards
Tony Prisk

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

* [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7
  2013-03-14 17:48   ` Tony Prisk
@ 2013-03-15  0:56     ` Chen Gang
  0 siblings, 0 replies; 4+ messages in thread
From: Chen Gang @ 2013-03-15  0:56 UTC (permalink / raw)
  To: linux-arm-kernel

? 2013?03?15? 01:48, Tony Prisk ??:
> On Thu, 2013-03-14 at 17:01 +0800, Chen Gang wrote:
>> > is there any member to help checking and applying it ?
>> > 
>> >   this issue is repeated again by randconfig make, today.
>> > 
>> > 
>> > ? 2013?03?10? 11:48, Chen Gang ??:
>>> > > 
>>> > >   prate is not defined, will cause compiling issue.
>>> > >   need use parent_rate instead of prate.
>>> > > 
>>> > > Signed-off-by: Chen Gang <gang.chen@asianux.com>
>>> > > ---
>>> > >  drivers/clk/clk-vt8500.c |    2 +-
>>> > >  1 files changed, 1 insertions(+), 1 deletions(-)
>>> > > 
>>> > > diff --git a/drivers/clk/clk-vt8500.c b/drivers/clk/clk-vt8500.c
>>> > > index b5538bb..09c6331 100644
>>> > > --- a/drivers/clk/clk-vt8500.c
>>> > > +++ b/drivers/clk/clk-vt8500.c
>>> > > @@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
>>> > >  	divisor =  parent_rate / rate;
>>> > >  
>>> > >  	/* If prate / rate would be decimal, incr the divisor */
>>> > > -	if (rate * divisor < *prate)
>>> > > +	if (rate * divisor < parent_rate)
>>> > >  		divisor++;
>>> > >  
>>> > >  	if (divisor == cdev->div_mask + 1)
>>> > > 
>> > 
>> > 
> The patch for this is in Mike's clk-fixes branch.

  thanks.

  hope to integrate next-* tree soon.

  :-)

-- 
Chen Gang

Asianux Corporation

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

end of thread, other threads:[~2013-03-15  0:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-10  3:48 [PATCH] drivers/clk: fixup commit 72480014b86c8b51fb51c5c6a0525876055c37c7 Chen Gang
2013-03-14  9:01 ` Chen Gang
2013-03-14 17:48   ` Tony Prisk
2013-03-15  0:56     ` Chen Gang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.