* [PATCH 7/9] SERIAL: MIPS: lantiq: convert serial driver to clkdev api
[not found] <1329474800-20979-1-git-send-email-blogic@openwrt.org>
@ 2012-02-17 10:33 ` John Crispin
2012-02-17 17:39 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: John Crispin @ 2012-02-17 10:33 UTC (permalink / raw)
To: Ralf Baechle; +Cc: linux-mips, John Crispin, linux-serial
Update from old pmu_{dis,en}able() to ckldev api.
Signed-off-by: John Crispin <blogic@openwrt.org>
Cc: linux-serial@vger.kernel.org
---
This patch should go via MIPS with the rest of the series.
drivers/tty/serial/lantiq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
index 96c1cac..136dae8 100644
--- a/drivers/tty/serial/lantiq.c
+++ b/drivers/tty/serial/lantiq.c
@@ -686,7 +686,7 @@ lqasc_probe(struct platform_device *pdev)
if (lqasc_port[pdev->id] != NULL)
return -EBUSY;
- clk = clk_get(&pdev->dev, "fpi");
+ clk = clk_get_sys("fpi", NULL);
if (IS_ERR(clk)) {
pr_err("failed to get fpi clk\n");
return -ENOENT;
--
1.7.7.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 7/9] SERIAL: MIPS: lantiq: convert serial driver to clkdev api
2012-02-17 17:39 ` Sergei Shtylyov
@ 2012-02-17 16:47 ` John Crispin
2012-02-17 17:53 ` Sergei Shtylyov
0 siblings, 1 reply; 4+ messages in thread
From: John Crispin @ 2012-02-17 16:47 UTC (permalink / raw)
To: Sergei Shtylyov; +Cc: Ralf Baechle, linux-mips, linux-serial
Hi Sergei,
> The comment doesn't match the essence of patch.
>
sorry
> Why not just clk_get(&pdev->dev, NULL)?
>
> WBR, Sergei
>
clk_get_sys uses the clkdev lookup table, which is added by this series.
it makes the clock code consistent throughout the lantiq related files.
we use clk connections other places, which we cannot reference with
clk_get that easily
John
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/9] SERIAL: MIPS: lantiq: convert serial driver to clkdev api
2012-02-17 10:33 ` [PATCH 7/9] SERIAL: MIPS: lantiq: convert serial driver to clkdev api John Crispin
@ 2012-02-17 17:39 ` Sergei Shtylyov
2012-02-17 16:47 ` John Crispin
0 siblings, 1 reply; 4+ messages in thread
From: Sergei Shtylyov @ 2012-02-17 17:39 UTC (permalink / raw)
To: John Crispin; +Cc: Ralf Baechle, linux-mips, linux-serial
Hello.
On 02/17/2012 01:33 PM, John Crispin wrote:
> Update from old pmu_{dis,en}able() to ckldev api.
The comment doesn't match the essence of patch.
> Signed-off-by: John Crispin<blogic@openwrt.org>
> Cc: linux-serial@vger.kernel.org
> ---
> This patch should go via MIPS with the rest of the series.
> drivers/tty/serial/lantiq.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
> diff --git a/drivers/tty/serial/lantiq.c b/drivers/tty/serial/lantiq.c
> index 96c1cac..136dae8 100644
> --- a/drivers/tty/serial/lantiq.c
> +++ b/drivers/tty/serial/lantiq.c
> @@ -686,7 +686,7 @@ lqasc_probe(struct platform_device *pdev)
> if (lqasc_port[pdev->id] != NULL)
> return -EBUSY;
>
> - clk = clk_get(&pdev->dev, "fpi");
> + clk = clk_get_sys("fpi", NULL);
Why not just clk_get(&pdev->dev, NULL)?
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 7/9] SERIAL: MIPS: lantiq: convert serial driver to clkdev api
2012-02-17 16:47 ` John Crispin
@ 2012-02-17 17:53 ` Sergei Shtylyov
0 siblings, 0 replies; 4+ messages in thread
From: Sergei Shtylyov @ 2012-02-17 17:53 UTC (permalink / raw)
To: John Crispin; +Cc: Ralf Baechle, linux-mips, linux-serial
Hello.
On 02/17/2012 07:47 PM, John Crispin wrote:
>> The comment doesn't match the essence of patch.
> sorry
>> Why not just clk_get(&pdev->dev, NULL)?
>> WBR, Sergei
> clk_get_sys uses the clkdev lookup table, which is added by this series.
clk_get() does the same, indirectly.
> it makes the clock code consistent throughout the lantiq related files.
> we use clk connections other places, which we cannot reference with
> clk_get that easily
clkdev assumes you don't need to use connection ID if the clock is bound to
be matched by device ID via the lookup table. clk_get() is a common case when
using clkdev, that's why your use of clk_get_sys() stands out as something
unusual. I'll have to have a look at your lookup tables...
> John
WBR, Sergei
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-17 16:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1329474800-20979-1-git-send-email-blogic@openwrt.org>
2012-02-17 10:33 ` [PATCH 7/9] SERIAL: MIPS: lantiq: convert serial driver to clkdev api John Crispin
2012-02-17 17:39 ` Sergei Shtylyov
2012-02-17 16:47 ` John Crispin
2012-02-17 17:53 ` Sergei Shtylyov
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).