mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] clk: davinci: cfgchip: testing the wrong variable
@ 2018-06-02  7:52 Dan Carpenter
  2018-06-02 14:33 ` David Lechner
  2018-06-25 23:17 ` David Lechner
  0 siblings, 2 replies; 5+ messages in thread
From: Dan Carpenter @ 2018-06-02  7:52 UTC (permalink / raw)
  To: David Lechner
  Cc: Sekhar Nori, Michael Turquette, Stephen Boyd, linux-clk,
	linux-kernel, kernel-janitors

There is a copy and paste bug here.  We should be testing "usb1" instead
of "usb0".

Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
index c971111d2601..20a120aa147e 100644
--- a/drivers/clk/davinci/da8xx-cfgchip.c
+++ b/drivers/clk/davinci/da8xx-cfgchip.c
@@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap)
 
 	usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap);
 	if (IS_ERR(usb1)) {
-		if (PTR_ERR(usb0) == -EPROBE_DEFER)
+		if (PTR_ERR(usb1) == -EPROBE_DEFER)
 			return -EPROBE_DEFER;
 
 		dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",

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

* Re: [PATCH] clk: davinci: cfgchip: testing the wrong variable
  2018-06-02  7:52 [PATCH] clk: davinci: cfgchip: testing the wrong variable Dan Carpenter
@ 2018-06-02 14:33 ` David Lechner
  2018-06-25 23:17 ` David Lechner
  1 sibling, 0 replies; 5+ messages in thread
From: David Lechner @ 2018-06-02 14:33 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Sekhar Nori, Michael Turquette, Stephen Boyd, linux-clk,
	linux-kernel, kernel-janitors

On 06/02/2018 02:52 AM, Dan Carpenter wrote:
> There is a copy and paste bug here.  We should be testing "usb1" instead
> of "usb0".
> 
> Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> 
> diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
> index c971111d2601..20a120aa147e 100644
> --- a/drivers/clk/davinci/da8xx-cfgchip.c
> +++ b/drivers/clk/davinci/da8xx-cfgchip.c
> @@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap)
>   
>   	usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap);
>   	if (IS_ERR(usb1)) {
> -		if (PTR_ERR(usb0) == -EPROBE_DEFER)
> +		if (PTR_ERR(usb1) == -EPROBE_DEFER)
>   			return -EPROBE_DEFER;
>   
>   		dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",
> 

Reviewed-by: David Lechner <david@lechnology.com>

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

* Re: [PATCH] clk: davinci: cfgchip: testing the wrong variable
  2018-06-02  7:52 [PATCH] clk: davinci: cfgchip: testing the wrong variable Dan Carpenter
  2018-06-02 14:33 ` David Lechner
@ 2018-06-25 23:17 ` David Lechner
  2018-06-25 23:33   ` Stephen Boyd
  1 sibling, 1 reply; 5+ messages in thread
From: David Lechner @ 2018-06-25 23:17 UTC (permalink / raw)
  To: Dan Carpenter
  Cc: Sekhar Nori, Michael Turquette, Stephen Boyd, linux-clk,
	linux-kernel, kernel-janitors

On 06/02/2018 02:52 AM, Dan Carpenter wrote:
> There is a copy and paste bug here.  We should be testing "usb1" instead
> of "usb0".
> 
> Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> 
> diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
> index c971111d2601..20a120aa147e 100644
> --- a/drivers/clk/davinci/da8xx-cfgchip.c
> +++ b/drivers/clk/davinci/da8xx-cfgchip.c
> @@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap)
>   
>   	usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap);
>   	if (IS_ERR(usb1)) {
> -		if (PTR_ERR(usb0) == -EPROBE_DEFER)
> +		if (PTR_ERR(usb1) == -EPROBE_DEFER)
>   			return -EPROBE_DEFER;
>   
>   		dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",
> 

Applied to https://github.com/dlech/linux/tree/clk-davinci-fixes

Thanks.

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

* Re: [PATCH] clk: davinci: cfgchip: testing the wrong variable
  2018-06-25 23:17 ` David Lechner
@ 2018-06-25 23:33   ` Stephen Boyd
  2018-06-25 23:57     ` David Lechner
  0 siblings, 1 reply; 5+ messages in thread
From: Stephen Boyd @ 2018-06-25 23:33 UTC (permalink / raw)
  To: Dan Carpenter, David Lechner
  Cc: Sekhar Nori, Michael Turquette, linux-clk, linux-kernel, kernel-janitors

Quoting David Lechner (2018-06-25 16:17:55)
> On 06/02/2018 02:52 AM, Dan Carpenter wrote:
> > There is a copy and paste bug here.  We should be testing "usb1" instead
> > of "usb0".
> > 
> > Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
> > Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> > 
> > diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
> > index c971111d2601..20a120aa147e 100644
> > --- a/drivers/clk/davinci/da8xx-cfgchip.c
> > +++ b/drivers/clk/davinci/da8xx-cfgchip.c
> > @@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap)
> >   
> >       usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap);
> >       if (IS_ERR(usb1)) {
> > -             if (PTR_ERR(usb0) == -EPROBE_DEFER)
> > +             if (PTR_ERR(usb1) == -EPROBE_DEFER)
> >                       return -EPROBE_DEFER;
> >   
> >               dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",
> > 
> 
> Applied to https://github.com/dlech/linux/tree/clk-davinci-fixes
> 

Ok. I expect this will be coming in a PR soon? Usually I can pick up
fixes just fine from the list and merge them on up to Linus, unless you
feel the need to pick it into your development tree to base future
development on.


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

* Re: [PATCH] clk: davinci: cfgchip: testing the wrong variable
  2018-06-25 23:33   ` Stephen Boyd
@ 2018-06-25 23:57     ` David Lechner
  0 siblings, 0 replies; 5+ messages in thread
From: David Lechner @ 2018-06-25 23:57 UTC (permalink / raw)
  To: Stephen Boyd, Dan Carpenter
  Cc: Sekhar Nori, Michael Turquette, linux-clk, linux-kernel, kernel-janitors

On 06/25/2018 06:33 PM, Stephen Boyd wrote:
> Quoting David Lechner (2018-06-25 16:17:55)
>> On 06/02/2018 02:52 AM, Dan Carpenter wrote:
>>> There is a copy and paste bug here.  We should be testing "usb1" instead
>>> of "usb0".
>>>
>>> Fixes: 58e1e2d2cd89 ("clk: davinci: cfgchip: Add TI DA8XX USB PHY clocks")
>>> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
>>>
>>> diff --git a/drivers/clk/davinci/da8xx-cfgchip.c b/drivers/clk/davinci/da8xx-cfgchip.c
>>> index c971111d2601..20a120aa147e 100644
>>> --- a/drivers/clk/davinci/da8xx-cfgchip.c
>>> +++ b/drivers/clk/davinci/da8xx-cfgchip.c
>>> @@ -672,7 +672,7 @@ static int of_da8xx_usb_phy_clk_init(struct device *dev, struct regmap *regmap)
>>>    
>>>        usb1 = da8xx_cfgchip_register_usb1_clk48(dev, regmap);
>>>        if (IS_ERR(usb1)) {
>>> -             if (PTR_ERR(usb0) == -EPROBE_DEFER)
>>> +             if (PTR_ERR(usb1) == -EPROBE_DEFER)
>>>                        return -EPROBE_DEFER;
>>>    
>>>                dev_warn(dev, "Failed to register usb1_clk48 (%ld)\n",
>>>
>>
>> Applied to https://github.com/dlech/linux/tree/clk-davinci-fixes
>>
> 
> Ok. I expect this will be coming in a PR soon? Usually I can pick up
> fixes just fine from the list and merge them on up to Linus, unless you
> feel the need to pick it into your development tree to base future
> development on.
> 

Yes, in a few minutes actually. I have never done a PR via email before,
so I figured this would be a good way to learn with a few small patches.

I know everyone is always busy, so of course, if I'm making more work for
you, I'll be glad to do it differently.

And I'll keep this in mind for future fixes.

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

end of thread, other threads:[~2018-06-25 23:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-02  7:52 [PATCH] clk: davinci: cfgchip: testing the wrong variable Dan Carpenter
2018-06-02 14:33 ` David Lechner
2018-06-25 23:17 ` David Lechner
2018-06-25 23:33   ` Stephen Boyd
2018-06-25 23:57     ` David Lechner

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

all inboxes | Powered by JetHome®