From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: linux-arm-kernel@lists.infradead.org
Cc: "Emilio López" <emilio@elopez.com.ar>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
sunny@allwinnertech.com, shuge@allwinnertech.com,
"Jiri Slaby" <jslaby@suse.cz>,
kevin@allwinnertech.com
Subject: Re: [PATCH 1/7] serial: 8250_dw: add support for clk api
Date: Tue, 19 Mar 2013 11:50:17 +0100 [thread overview]
Message-ID: <514842E9.401@free-electrons.com> (raw)
In-Reply-To: <1363689316-7847-2-git-send-email-maxime.ripard@free-electrons.com>
Hi,
Le 19/03/2013 11:35, Maxime Ripard a écrit :
> From: Emilio López <emilio@elopez.com.ar>
>
> This commit implements support for using the clk api; this lets us use
> the "clocks" property with device tree, instead of having to use
> clock-frequency.
>
> Signed-off-by: Emilio López <emilio@elopez.com.ar>
> ---
> drivers/tty/serial/8250/8250_dw.c | 33 ++++++++++++++++++++++++---------
> 1 file changed, 24 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
> index db0e66f..3dedd24 100644
> --- a/drivers/tty/serial/8250/8250_dw.c
> +++ b/drivers/tty/serial/8250/8250_dw.c
> @@ -26,6 +26,7 @@
> #include <linux/platform_device.h>
> #include <linux/slab.h>
> #include <linux/acpi.h>
> +#include <linux/clk.h>
>
> #include "8250.h"
>
> @@ -55,8 +56,9 @@
>
>
> struct dw8250_data {
> - int last_lcr;
> - int line;
> + int last_lcr;
> + int line;
> + struct clk *clk;
> };
>
> static void dw8250_serial_out(struct uart_port *p, int offset, int value)
> @@ -136,8 +138,13 @@ static int dw8250_probe_of(struct uart_port *p)
> if (!of_property_read_u32(np, "reg-shift", &val))
> p->regshift = val;
>
> + /* clock got configured through clk api, all done */
> + if (IS_ERR(p->uartclk))
Hmm, I messed up here.
I'll resend a new version of this mail without this IS_ERR call
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-serial" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
WARNING: multiple messages have this Message-ID (diff)
From: maxime.ripard@free-electrons.com (Maxime Ripard)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 1/7] serial: 8250_dw: add support for clk api
Date: Tue, 19 Mar 2013 11:50:17 +0100 [thread overview]
Message-ID: <514842E9.401@free-electrons.com> (raw)
In-Reply-To: <1363689316-7847-2-git-send-email-maxime.ripard@free-electrons.com>
Hi,
Le 19/03/2013 11:35, Maxime Ripard a ?crit :
> From: Emilio L?pez <emilio@elopez.com.ar>
>
> This commit implements support for using the clk api; this lets us use
> the "clocks" property with device tree, instead of having to use
> clock-frequency.
>
> Signed-off-by: Emilio L?pez <emilio@elopez.com.ar>
> ---
> drivers/tty/serial/8250/8250_dw.c | 33 ++++++++++++++++++++++++---------
> 1 file changed, 24 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
> index db0e66f..3dedd24 100644
> --- a/drivers/tty/serial/8250/8250_dw.c
> +++ b/drivers/tty/serial/8250/8250_dw.c
> @@ -26,6 +26,7 @@
> #include <linux/platform_device.h>
> #include <linux/slab.h>
> #include <linux/acpi.h>
> +#include <linux/clk.h>
>
> #include "8250.h"
>
> @@ -55,8 +56,9 @@
>
>
> struct dw8250_data {
> - int last_lcr;
> - int line;
> + int last_lcr;
> + int line;
> + struct clk *clk;
> };
>
> static void dw8250_serial_out(struct uart_port *p, int offset, int value)
> @@ -136,8 +138,13 @@ static int dw8250_probe_of(struct uart_port *p)
> if (!of_property_read_u32(np, "reg-shift", &val))
> p->regshift = val;
>
> + /* clock got configured through clk api, all done */
> + if (IS_ERR(p->uartclk))
Hmm, I messed up here.
I'll resend a new version of this mail without this IS_ERR call
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
WARNING: multiple messages have this Message-ID (diff)
From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: linux-arm-kernel@lists.infradead.org
Cc: "Emilio López" <emilio@elopez.com.ar>,
"Greg Kroah-Hartman" <gregkh@linuxfoundation.org>,
linux-kernel@vger.kernel.org, linux-serial@vger.kernel.org,
sunny@allwinnertech.com, shuge@allwinnertech.com,
"Jiri Slaby" <jslaby@suse.cz>,
kevin@allwinnertech.com
Subject: Re: [PATCH 1/7] serial: 8250_dw: add support for clk api
Date: Tue, 19 Mar 2013 11:50:17 +0100 [thread overview]
Message-ID: <514842E9.401@free-electrons.com> (raw)
In-Reply-To: <1363689316-7847-2-git-send-email-maxime.ripard@free-electrons.com>
Hi,
Le 19/03/2013 11:35, Maxime Ripard a écrit :
> From: Emilio López <emilio@elopez.com.ar>
>
> This commit implements support for using the clk api; this lets us use
> the "clocks" property with device tree, instead of having to use
> clock-frequency.
>
> Signed-off-by: Emilio López <emilio@elopez.com.ar>
> ---
> drivers/tty/serial/8250/8250_dw.c | 33 ++++++++++++++++++++++++---------
> 1 file changed, 24 insertions(+), 9 deletions(-)
>
> diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
> index db0e66f..3dedd24 100644
> --- a/drivers/tty/serial/8250/8250_dw.c
> +++ b/drivers/tty/serial/8250/8250_dw.c
> @@ -26,6 +26,7 @@
> #include <linux/platform_device.h>
> #include <linux/slab.h>
> #include <linux/acpi.h>
> +#include <linux/clk.h>
>
> #include "8250.h"
>
> @@ -55,8 +56,9 @@
>
>
> struct dw8250_data {
> - int last_lcr;
> - int line;
> + int last_lcr;
> + int line;
> + struct clk *clk;
> };
>
> static void dw8250_serial_out(struct uart_port *p, int offset, int value)
> @@ -136,8 +138,13 @@ static int dw8250_probe_of(struct uart_port *p)
> if (!of_property_read_u32(np, "reg-shift", &val))
> p->regshift = val;
>
> + /* clock got configured through clk api, all done */
> + if (IS_ERR(p->uartclk))
Hmm, I messed up here.
I'll resend a new version of this mail without this IS_ERR call
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2013-03-19 10:50 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-19 10:35 [PATCHv4 0/7] ARM: sunxi: Extend UART support for Allwinner SoCs Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` [PATCH 1/7] serial: 8250_dw: add support for clk api Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:50 ` Maxime Ripard [this message]
2013-03-19 10:50 ` Maxime Ripard
2013-03-19 10:50 ` Maxime Ripard
2013-03-19 10:52 ` [PATCH] " Maxime Ripard
2013-03-19 10:52 ` Maxime Ripard
2013-03-19 10:52 ` Maxime Ripard
2013-03-21 8:47 ` Heikki Krogerus
2013-03-21 8:47 ` Heikki Krogerus
2013-03-21 8:47 ` Heikki Krogerus
2013-03-26 10:35 ` Maxime Ripard
2013-03-26 10:35 ` Maxime Ripard
2013-03-26 10:35 ` Maxime Ripard
2013-03-26 23:34 ` Greg Kroah-Hartman
2013-03-26 23:34 ` Greg Kroah-Hartman
2013-03-19 10:35 ` [PATCH 2/7] ARM: sunxi: dt: Use clocks property instead of clock-frequency for the UARTs Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` [PATCH 3/7] ARM: sunxi: Rename uart nodes to serial Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` [PATCH 4/7] ARM: sunxi: dt: Move uart0 to sun4i-a10.dtsi Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` [PATCH 5/7] ARM: sunxi: dt: Add uart3 dt node Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` [PATCH 6/7] ARM: sunxi: dt: Add A10 UARTs to the dtsi Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
2013-03-19 10:35 ` [PATCH 7/7] ARM: sunxi: hackberry: Add UART muxing Maxime Ripard
2013-03-19 10:35 ` Maxime Ripard
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=514842E9.401@free-electrons.com \
--to=maxime.ripard@free-electrons.com \
--cc=emilio@elopez.com.ar \
--cc=gregkh@linuxfoundation.org \
--cc=jslaby@suse.cz \
--cc=kevin@allwinnertech.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-serial@vger.kernel.org \
--cc=shuge@allwinnertech.com \
--cc=sunny@allwinnertech.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.