All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
@ 2020-09-21 13:10 ` Qinglang Miao
  0 siblings, 0 replies; 8+ messages in thread
From: Qinglang Miao @ 2020-09-21 13:10 UTC (permalink / raw)
  To: Rob Herring, Tomeu Vizoso, Steven Price, Alyssa Rosenzweig,
	David Airlie, Daniel Vetter
  Cc: dri-devel, linux-kernel, Qinglang Miao

Simplify the return expression.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
 drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
index 8ab025d00..913eaa6d0 100644
--- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
+++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
@@ -29,18 +29,13 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
 				   u32 flags)
 {
 	struct dev_pm_opp *opp;
-	int err;
 
 	opp = devfreq_recommended_opp(dev, freq, flags);
 	if (IS_ERR(opp))
 		return PTR_ERR(opp);
 	dev_pm_opp_put(opp);
 
-	err = dev_pm_opp_set_rate(dev, *freq);
-	if (err)
-		return err;
-
-	return 0;
+	return dev_pm_opp_set_rate(dev, *freq);
 }
 
 static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq)
-- 
2.23.0


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

* [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
@ 2020-09-21 13:10 ` Qinglang Miao
  0 siblings, 0 replies; 8+ messages in thread
From: Qinglang Miao @ 2020-09-21 13:10 UTC (permalink / raw)
  To: Rob Herring, Tomeu Vizoso, Steven Price, Alyssa Rosenzweig,
	David Airlie, Daniel Vetter
  Cc: Qinglang Miao, linux-kernel, dri-devel

Simplify the return expression.

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
 drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
index 8ab025d00..913eaa6d0 100644
--- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
+++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
@@ -29,18 +29,13 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
 				   u32 flags)
 {
 	struct dev_pm_opp *opp;
-	int err;
 
 	opp = devfreq_recommended_opp(dev, freq, flags);
 	if (IS_ERR(opp))
 		return PTR_ERR(opp);
 	dev_pm_opp_put(opp);
 
-	err = dev_pm_opp_set_rate(dev, *freq);
-	if (err)
-		return err;
-
-	return 0;
+	return dev_pm_opp_set_rate(dev, *freq);
 }
 
 static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq)
-- 
2.23.0

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
  2020-09-21 13:10 ` Qinglang Miao
@ 2020-10-01 10:58   ` Steven Price
  -1 siblings, 0 replies; 8+ messages in thread
From: Steven Price @ 2020-10-01 10:58 UTC (permalink / raw)
  To: Qinglang Miao, Rob Herring, Tomeu Vizoso, Alyssa Rosenzweig,
	David Airlie, Daniel Vetter
  Cc: dri-devel, linux-kernel

On 21/09/2020 14:10, Qinglang Miao wrote:
> Simplify the return expression.
> 
> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>

Reviewed-by: Steven Price <steven.price@arm.com>

> ---
>   drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +------
>   1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> index 8ab025d00..913eaa6d0 100644
> --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> @@ -29,18 +29,13 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
>   				   u32 flags)
>   {
>   	struct dev_pm_opp *opp;
> -	int err;
>   
>   	opp = devfreq_recommended_opp(dev, freq, flags);
>   	if (IS_ERR(opp))
>   		return PTR_ERR(opp);
>   	dev_pm_opp_put(opp);
>   
> -	err = dev_pm_opp_set_rate(dev, *freq);
> -	if (err)
> -		return err;
> -
> -	return 0;
> +	return dev_pm_opp_set_rate(dev, *freq);
>   }
>   
>   static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq)
> 


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

* Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
@ 2020-10-01 10:58   ` Steven Price
  0 siblings, 0 replies; 8+ messages in thread
From: Steven Price @ 2020-10-01 10:58 UTC (permalink / raw)
  To: Qinglang Miao, Rob Herring, Tomeu Vizoso, Alyssa Rosenzweig,
	David Airlie, Daniel Vetter
  Cc: linux-kernel, dri-devel

On 21/09/2020 14:10, Qinglang Miao wrote:
> Simplify the return expression.
> 
> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>

Reviewed-by: Steven Price <steven.price@arm.com>

> ---
>   drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +------
>   1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> index 8ab025d00..913eaa6d0 100644
> --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> @@ -29,18 +29,13 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
>   				   u32 flags)
>   {
>   	struct dev_pm_opp *opp;
> -	int err;
>   
>   	opp = devfreq_recommended_opp(dev, freq, flags);
>   	if (IS_ERR(opp))
>   		return PTR_ERR(opp);
>   	dev_pm_opp_put(opp);
>   
> -	err = dev_pm_opp_set_rate(dev, *freq);
> -	if (err)
> -		return err;
> -
> -	return 0;
> +	return dev_pm_opp_set_rate(dev, *freq);
>   }
>   
>   static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq)
> 

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
  2020-10-01 10:58   ` Steven Price
@ 2020-10-01 11:25     ` Daniel Vetter
  -1 siblings, 0 replies; 8+ messages in thread
From: Daniel Vetter @ 2020-10-01 11:25 UTC (permalink / raw)
  To: Steven Price
  Cc: Qinglang Miao, Rob Herring, Tomeu Vizoso, Alyssa Rosenzweig,
	David Airlie, dri-devel, Linux Kernel Mailing List

On Thu, Oct 1, 2020 at 12:58 PM Steven Price <steven.price@arm.com> wrote:
>
> On 21/09/2020 14:10, Qinglang Miao wrote:
> > Simplify the return expression.
> >
> > Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
>
> Reviewed-by: Steven Price <steven.price@arm.com>

As committer/maintainer for this please indicate whether you'll merge
this or not, with just an r-b patches are in an awkward limbo state.
Since Qinglang isn't committer you probably want to merge their
patches, for otherwise they get lost.
-Daniel
>
> > ---
> >   drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +------
> >   1 file changed, 1 insertion(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> > index 8ab025d00..913eaa6d0 100644
> > --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> > +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> > @@ -29,18 +29,13 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
> >                                  u32 flags)
> >   {
> >       struct dev_pm_opp *opp;
> > -     int err;
> >
> >       opp = devfreq_recommended_opp(dev, freq, flags);
> >       if (IS_ERR(opp))
> >               return PTR_ERR(opp);
> >       dev_pm_opp_put(opp);
> >
> > -     err = dev_pm_opp_set_rate(dev, *freq);
> > -     if (err)
> > -             return err;
> > -
> > -     return 0;
> > +     return dev_pm_opp_set_rate(dev, *freq);
> >   }
> >
> >   static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq)
> >
>


-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch

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

* Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
@ 2020-10-01 11:25     ` Daniel Vetter
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Vetter @ 2020-10-01 11:25 UTC (permalink / raw)
  To: Steven Price
  Cc: Tomeu Vizoso, David Airlie, Linux Kernel Mailing List, dri-devel,
	Qinglang Miao, Alyssa Rosenzweig

On Thu, Oct 1, 2020 at 12:58 PM Steven Price <steven.price@arm.com> wrote:
>
> On 21/09/2020 14:10, Qinglang Miao wrote:
> > Simplify the return expression.
> >
> > Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
>
> Reviewed-by: Steven Price <steven.price@arm.com>

As committer/maintainer for this please indicate whether you'll merge
this or not, with just an r-b patches are in an awkward limbo state.
Since Qinglang isn't committer you probably want to merge their
patches, for otherwise they get lost.
-Daniel
>
> > ---
> >   drivers/gpu/drm/panfrost/panfrost_devfreq.c | 7 +------
> >   1 file changed, 1 insertion(+), 6 deletions(-)
> >
> > diff --git a/drivers/gpu/drm/panfrost/panfrost_devfreq.c b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> > index 8ab025d00..913eaa6d0 100644
> > --- a/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> > +++ b/drivers/gpu/drm/panfrost/panfrost_devfreq.c
> > @@ -29,18 +29,13 @@ static int panfrost_devfreq_target(struct device *dev, unsigned long *freq,
> >                                  u32 flags)
> >   {
> >       struct dev_pm_opp *opp;
> > -     int err;
> >
> >       opp = devfreq_recommended_opp(dev, freq, flags);
> >       if (IS_ERR(opp))
> >               return PTR_ERR(opp);
> >       dev_pm_opp_put(opp);
> >
> > -     err = dev_pm_opp_set_rate(dev, *freq);
> > -     if (err)
> > -             return err;
> > -
> > -     return 0;
> > +     return dev_pm_opp_set_rate(dev, *freq);
> >   }
> >
> >   static void panfrost_devfreq_reset(struct panfrost_devfreq *pfdevfreq)
> >
>


-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

* Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
  2020-10-01 11:25     ` Daniel Vetter
@ 2020-10-01 12:56       ` Steven Price
  -1 siblings, 0 replies; 8+ messages in thread
From: Steven Price @ 2020-10-01 12:56 UTC (permalink / raw)
  To: Daniel Vetter
  Cc: Qinglang Miao, Rob Herring, Tomeu Vizoso, Alyssa Rosenzweig,
	David Airlie, dri-devel, Linux Kernel Mailing List

On 01/10/2020 12:25, Daniel Vetter wrote:
> On Thu, Oct 1, 2020 at 12:58 PM Steven Price <steven.price@arm.com> wrote:
>>
>> On 21/09/2020 14:10, Qinglang Miao wrote:
>>> Simplify the return expression.
>>>
>>> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
>>
>> Reviewed-by: Steven Price <steven.price@arm.com>
> 
> As committer/maintainer for this please indicate whether you'll merge
> this or not, with just an r-b patches are in an awkward limbo state.
> Since Qinglang isn't committer you probably want to merge their
> patches, for otherwise they get lost.
> -Daniel

Sorry, I should have said - I'll push this (and the other similar patch 
[1]) to drm-misc-next.

Steve

[1] 
https://lore.kernel.org/r/20200921131019.91558-1-miaoqinglang@huawei.com/

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

* Re: [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target()
@ 2020-10-01 12:56       ` Steven Price
  0 siblings, 0 replies; 8+ messages in thread
From: Steven Price @ 2020-10-01 12:56 UTC (permalink / raw)
  To: Daniel Vetter
  Cc: Tomeu Vizoso, David Airlie, Linux Kernel Mailing List, dri-devel,
	Qinglang Miao, Alyssa Rosenzweig

On 01/10/2020 12:25, Daniel Vetter wrote:
> On Thu, Oct 1, 2020 at 12:58 PM Steven Price <steven.price@arm.com> wrote:
>>
>> On 21/09/2020 14:10, Qinglang Miao wrote:
>>> Simplify the return expression.
>>>
>>> Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
>>
>> Reviewed-by: Steven Price <steven.price@arm.com>
> 
> As committer/maintainer for this please indicate whether you'll merge
> this or not, with just an r-b patches are in an awkward limbo state.
> Since Qinglang isn't committer you probably want to merge their
> patches, for otherwise they get lost.
> -Daniel

Sorry, I should have said - I'll push this (and the other similar patch 
[1]) to drm-misc-next.

Steve

[1] 
https://lore.kernel.org/r/20200921131019.91558-1-miaoqinglang@huawei.com/
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

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

end of thread, other threads:[~2020-10-01 12:57 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-21 13:10 [PATCH -next] drm/panfrost: simplify the return expression of panfrost_devfreq_target() Qinglang Miao
2020-09-21 13:10 ` Qinglang Miao
2020-10-01 10:58 ` Steven Price
2020-10-01 10:58   ` Steven Price
2020-10-01 11:25   ` Daniel Vetter
2020-10-01 11:25     ` Daniel Vetter
2020-10-01 12:56     ` Steven Price
2020-10-01 12:56       ` Steven Price

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.