Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1459000 > unrolled thread
| Started by | Karl Beldan <kbeldan@baylibre.com> |
|---|---|
| First post | 2016-08-09 19:20 +0200 |
| Last post | 2016-08-10 22:30 +0200 |
| Articles | 3 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 1/4] memory: ti-aemif: Get a named clock rather than an unnamed one Karl Beldan <kbeldan@baylibre.com> - 2016-08-09 19:20 +0200
Re: [PATCH 1/4] memory: ti-aemif: Get a named clock rather than an unnamed one Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 20:10 +0200
Re: [PATCH 1/4] memory: ti-aemif: Get a named clock rather than an unnamed one Karl Beldan <kbeldan@baylibre.com> - 2016-08-10 22:30 +0200
| From | Karl Beldan <kbeldan@baylibre.com> |
|---|---|
| Date | 2016-08-09 19:20 +0200 |
| Subject | [PATCH 1/4] memory: ti-aemif: Get a named clock rather than an unnamed one |
| Message-ID | <s4iR3-24N-5@gated-at.bofh.it> |
Many davinci boards (da830 and da850 families) don't have their clocks
in DT yet and won't be successful in getting an unnamed aemif clock.
Also the sole current users of ti-aemif (keystone boards) use 'aemif' as
their aemif device clock clock-name and should remain unaffected.
Signed-off-by: Karl Beldan <kbeldan@baylibre.com>
---
drivers/memory/ti-aemif.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c
index a579a0f..c251fc8 100644
--- a/drivers/memory/ti-aemif.c
+++ b/drivers/memory/ti-aemif.c
@@ -345,7 +345,7 @@ static int aemif_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, aemif);
- aemif->clk = devm_clk_get(dev, NULL);
+ aemif->clk = devm_clk_get(dev, "aemif");
if (IS_ERR(aemif->clk)) {
dev_err(dev, "cannot get clock 'aemif'\n");
return PTR_ERR(aemif->clk);
--
2.9.2
[toc] | [next] | [standalone]
| From | Karl Beldan <kbeldan@baylibre.com> |
|---|---|
| Date | 2016-08-10 20:10 +0200 |
| Subject | Re: [PATCH 1/4] memory: ti-aemif: Get a named clock rather than an unnamed one |
| Message-ID | <s4G71-8uN-89@gated-at.bofh.it> |
| In reply to | #1459000 |
On Tue, Aug 09, 2016 at 05:15:15PM +0000, Karl Beldan wrote: > Many davinci boards (da830 and da850 families) don't have their clocks > in DT yet and won't be successful in getting an unnamed aemif clock. > Also the sole current users of ti-aemif (keystone boards) use 'aemif' as > their aemif device clock clock-name and should remain unaffected. > > Signed-off-by: Karl Beldan <kbeldan@baylibre.com> > --- > drivers/memory/ti-aemif.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c > index a579a0f..c251fc8 100644 > --- a/drivers/memory/ti-aemif.c > +++ b/drivers/memory/ti-aemif.c > @@ -345,7 +345,7 @@ static int aemif_probe(struct platform_device *pdev) > > platform_set_drvdata(pdev, aemif); > > - aemif->clk = devm_clk_get(dev, NULL); > + aemif->clk = devm_clk_get(dev, "aemif"); Looking further it seems to me that the struct clk_lookup da850_clks registered by davinci_clk_init() should be enough to clk_get() unnamed clocks using only the dev name. I look into what's going on but it would make this patch unnecessary. Karl
[toc] | [prev] | [next] | [standalone]
| From | Karl Beldan <kbeldan@baylibre.com> |
|---|---|
| Date | 2016-08-10 22:30 +0200 |
| Subject | Re: [PATCH 1/4] memory: ti-aemif: Get a named clock rather than an unnamed one |
| Message-ID | <s4Iiv-1wh-53@gated-at.bofh.it> |
| In reply to | #1459322 |
On Wed, Aug 10, 2016 at 07:00:20AM +0000, Karl Beldan wrote: > On Tue, Aug 09, 2016 at 05:15:15PM +0000, Karl Beldan wrote: > > Many davinci boards (da830 and da850 families) don't have their clocks > > in DT yet and won't be successful in getting an unnamed aemif clock. > > Also the sole current users of ti-aemif (keystone boards) use 'aemif' as > > their aemif device clock clock-name and should remain unaffected. > > > > Signed-off-by: Karl Beldan <kbeldan@baylibre.com> > > --- > > drivers/memory/ti-aemif.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/memory/ti-aemif.c b/drivers/memory/ti-aemif.c > > index a579a0f..c251fc8 100644 > > --- a/drivers/memory/ti-aemif.c > > +++ b/drivers/memory/ti-aemif.c > > @@ -345,7 +345,7 @@ static int aemif_probe(struct platform_device *pdev) > > > > platform_set_drvdata(pdev, aemif); > > > > - aemif->clk = devm_clk_get(dev, NULL); > > + aemif->clk = devm_clk_get(dev, "aemif"); > > Looking further it seems to me that the struct clk_lookup da850_clks > registered by davinci_clk_init() should be enough to clk_get() unnamed > clocks using only the dev name. I look into what's going on but it > would make this patch unnecessary. > Ok, just saw what's happening, this patch is unnecessary, v2 will follow. Karl
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web