dmaengine.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional
@ 2019-09-24  8:51 Andy Shevchenko
  2019-09-24 11:52 ` Viresh Kumar
  2019-10-14  8:21 ` Vinod Koul
  0 siblings, 2 replies; 4+ messages in thread
From: Andy Shevchenko @ 2019-09-24  8:51 UTC (permalink / raw)
  To: Viresh Kumar, dmaengine, Vinod Koul; +Cc: Andy Shevchenko

On some platforms the clock can be fixed rate, always running one and
there is no need to do anything with it.

In order to support those platforms, switch to use optional clock.

Fixes: f8d9ddbc2851 ("Enable iDMA 32-bit on Intel Elkhart Lake")
Depends-on: 60b8f0ddf1a9 ("clk: Add (devm_)clk_get_optional() functions")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/dma/dw/platform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c
index 6a94f22b6637..bffc79a620ae 100644
--- a/drivers/dma/dw/platform.c
+++ b/drivers/dma/dw/platform.c
@@ -66,7 +66,7 @@ static int dw_probe(struct platform_device *pdev)
 
 	data->chip = chip;
 
-	chip->clk = devm_clk_get(chip->dev, "hclk");
+	chip->clk = devm_clk_get_optional(chip->dev, "hclk");
 	if (IS_ERR(chip->clk))
 		return PTR_ERR(chip->clk);
 	err = clk_prepare_enable(chip->clk);
-- 
2.23.0


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

* Re: [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional
  2019-09-24  8:51 [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional Andy Shevchenko
@ 2019-09-24 11:52 ` Viresh Kumar
  2019-10-14  8:21 ` Vinod Koul
  1 sibling, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2019-09-24 11:52 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Viresh Kumar, dmaengine, Vinod Koul

On 24-09-19, 11:51, Andy Shevchenko wrote:
> On some platforms the clock can be fixed rate, always running one and
> there is no need to do anything with it.
> 
> In order to support those platforms, switch to use optional clock.
> 
> Fixes: f8d9ddbc2851 ("Enable iDMA 32-bit on Intel Elkhart Lake")
> Depends-on: 60b8f0ddf1a9 ("clk: Add (devm_)clk_get_optional() functions")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/dma/dw/platform.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh

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

* Re: [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional
  2019-09-24  8:51 [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional Andy Shevchenko
  2019-09-24 11:52 ` Viresh Kumar
@ 2019-10-14  8:21 ` Vinod Koul
  2019-10-14  9:16   ` Viresh Kumar
  1 sibling, 1 reply; 4+ messages in thread
From: Vinod Koul @ 2019-10-14  8:21 UTC (permalink / raw)
  To: Andy Shevchenko; +Cc: Viresh Kumar, dmaengine

On 24-09-19, 11:51, Andy Shevchenko wrote:
> On some platforms the clock can be fixed rate, always running one and
> there is no need to do anything with it.
> 
> In order to support those platforms, switch to use optional clock.
> 
> Fixes: f8d9ddbc2851 ("Enable iDMA 32-bit on Intel Elkhart Lake")

My script complained the Fixes doesnt match, you seem to have omitted
the subsystem and driver name tags from this line.

I have fixed that and applied

> Depends-on: 60b8f0ddf1a9 ("clk: Add (devm_)clk_get_optional() functions")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
>  drivers/dma/dw/platform.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/dma/dw/platform.c b/drivers/dma/dw/platform.c
> index 6a94f22b6637..bffc79a620ae 100644
> --- a/drivers/dma/dw/platform.c
> +++ b/drivers/dma/dw/platform.c
> @@ -66,7 +66,7 @@ static int dw_probe(struct platform_device *pdev)
>  
>  	data->chip = chip;
>  
> -	chip->clk = devm_clk_get(chip->dev, "hclk");
> +	chip->clk = devm_clk_get_optional(chip->dev, "hclk");
>  	if (IS_ERR(chip->clk))
>  		return PTR_ERR(chip->clk);
>  	err = clk_prepare_enable(chip->clk);
> -- 
> 2.23.0

-- 
~Vinod

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

* Re: [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional
  2019-10-14  8:21 ` Vinod Koul
@ 2019-10-14  9:16   ` Viresh Kumar
  0 siblings, 0 replies; 4+ messages in thread
From: Viresh Kumar @ 2019-10-14  9:16 UTC (permalink / raw)
  To: Vinod Koul; +Cc: Andy Shevchenko, Viresh Kumar, dmaengine

On 14-10-19, 13:51, Vinod Koul wrote:
> On 24-09-19, 11:51, Andy Shevchenko wrote:
> > On some platforms the clock can be fixed rate, always running one and
> > there is no need to do anything with it.
> > 
> > In order to support those platforms, switch to use optional clock.
> > 
> > Fixes: f8d9ddbc2851 ("Enable iDMA 32-bit on Intel Elkhart Lake")
> 
> My script complained the Fixes doesnt match, you seem to have omitted
> the subsystem and driver name tags from this line.

Better to automate getting these tags the way Documentation says.

Keep following in your gitconfig file:

[pretty]
        fixes = Fixes: %h (\"%s\")
        onelin = commit %h (\"%s\")

and then you can do:

git log --pretty=fixes OR --pretty=onelin

to get the tags in correct format.

-- 
viresh

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

end of thread, other threads:[~2019-10-14  9:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-24  8:51 [PATCH v1] dmaengine: dw: platform: Mark 'hclk' clock optional Andy Shevchenko
2019-09-24 11:52 ` Viresh Kumar
2019-10-14  8:21 ` Vinod Koul
2019-10-14  9:16   ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).