* [PATCH] serial8250-em: convert to clk_prepare/unprepare
@ 2013-10-08 4:24 Simon Horman
2013-10-08 4:24 ` Simon Horman
2013-10-16 20:06 ` Greg Kroah-Hartman
0 siblings, 2 replies; 4+ messages in thread
From: Simon Horman @ 2013-10-08 4:24 UTC (permalink / raw)
To: linux-arm-kernel
Hi Greg,
please consider this enhancement from Kuribayashi-san for serial8250-em.
Also, please let me know if you would like us to handle serial patches
a different way.
Shinya Kuribayashi (1):
serial8250-em: convert to clk_prepare/unprepare
drivers/tty/serial/8250/8250_em.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
--
1.8.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] serial8250-em: convert to clk_prepare/unprepare
2013-10-08 4:24 [PATCH] serial8250-em: convert to clk_prepare/unprepare Simon Horman
@ 2013-10-08 4:24 ` Simon Horman
2013-10-16 20:06 ` Greg Kroah-Hartman
1 sibling, 0 replies; 4+ messages in thread
From: Simon Horman @ 2013-10-08 4:24 UTC (permalink / raw)
To: linux-arm-kernel
From: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
Add calls to clk_prepare and unprepare so that EMMA Mobile EV2 can
migrate to the common clock framework.
Signed-off-by: Shinya Kuribayashi <shinya.kuribayashi.px@renesas.com>
[takashi.yoshii.ze@renesas.com: edited for conflicts]
Signed-off-by: Takashi Yoshii <takashi.yoshii.zj@renesas.com>
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
---
drivers/tty/serial/8250/8250_em.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/tty/serial/8250/8250_em.c b/drivers/tty/serial/8250/8250_em.c
index 5f3bba1..d1a9078 100644
--- a/drivers/tty/serial/8250/8250_em.c
+++ b/drivers/tty/serial/8250/8250_em.c
@@ -122,7 +122,7 @@ static int serial8250_em_probe(struct platform_device *pdev)
up.port.dev = &pdev->dev;
up.port.private_data = priv;
- clk_enable(priv->sclk);
+ clk_prepare_enable(priv->sclk);
up.port.uartclk = clk_get_rate(priv->sclk);
up.port.iotype = UPIO_MEM32;
@@ -134,7 +134,7 @@ static int serial8250_em_probe(struct platform_device *pdev)
ret = serial8250_register_8250_port(&up);
if (ret < 0) {
dev_err(&pdev->dev, "unable to register 8250 port\n");
- clk_disable(priv->sclk);
+ clk_disable_unprepare(priv->sclk);
return ret;
}
@@ -148,7 +148,7 @@ static int serial8250_em_remove(struct platform_device *pdev)
struct serial8250_em_priv *priv = platform_get_drvdata(pdev);
serial8250_unregister_port(priv->line);
- clk_disable(priv->sclk);
+ clk_disable_unprepare(priv->sclk);
return 0;
}
--
1.8.4
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] serial8250-em: convert to clk_prepare/unprepare
2013-10-08 4:24 [PATCH] serial8250-em: convert to clk_prepare/unprepare Simon Horman
2013-10-08 4:24 ` Simon Horman
@ 2013-10-16 20:06 ` Greg Kroah-Hartman
2013-10-17 0:07 ` Simon Horman
1 sibling, 1 reply; 4+ messages in thread
From: Greg Kroah-Hartman @ 2013-10-16 20:06 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Oct 08, 2013 at 01:24:27PM +0900, Simon Horman wrote:
> Hi Greg,
>
> please consider this enhancement from Kuribayashi-san for serial8250-em.
>
> Also, please let me know if you would like us to handle serial patches
> a different way.
No, this works for me, if it works for you, that's fine with me.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] serial8250-em: convert to clk_prepare/unprepare
2013-10-16 20:06 ` Greg Kroah-Hartman
@ 2013-10-17 0:07 ` Simon Horman
0 siblings, 0 replies; 4+ messages in thread
From: Simon Horman @ 2013-10-17 0:07 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Oct 16, 2013 at 01:06:51PM -0700, Greg Kroah-Hartman wrote:
> On Tue, Oct 08, 2013 at 01:24:27PM +0900, Simon Horman wrote:
> > Hi Greg,
> >
> > please consider this enhancement from Kuribayashi-san for serial8250-em.
> >
> > Also, please let me know if you would like us to handle serial patches
> > a different way.
>
> No, this works for me, if it works for you, that's fine with me.
Thanks, it works for me too.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-10-17 0:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-08 4:24 [PATCH] serial8250-em: convert to clk_prepare/unprepare Simon Horman
2013-10-08 4:24 ` Simon Horman
2013-10-16 20:06 ` Greg Kroah-Hartman
2013-10-17 0:07 ` Simon Horman
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).