From: "Janusz Użycki" <j.uzycki@elproma.com.pl>
To: Fabio Estevam <festevam@gmail.com>, gregkh@linuxfoundation.org
Cc: linux-serial@vger.kernel.org,
Fabio Estevam <fabio.estevam@freescale.com>
Subject: Re: [PATCH v2] serial: mxs-auart: Fix mxs_auart_set_ldisc()
Date: Sat, 15 Nov 2014 18:35:55 +0100 [thread overview]
Message-ID: <54678EFB.5060007@elproma.com.pl> (raw)
In-Reply-To: <1415831569-6904-1-git-send-email-festevam@gmail.com>
W dniu 2014-11-12 o 23:32, Fabio Estevam pisze:
> From: Fabio Estevam <fabio.estevam@freescale.com>
>
> Commit 732a84a037a4 ("serial: core: Pass termios to set_ldisc() notifications")
> changed the set_ldisc prototype.
>
> At the time of this commit the mxs_auart driver did not implement set_ldisc,
> so that's why it has not been converted.
>
> Adapt also mxs_auart_set_ldisc() so that the following build warning can be
> fixed:
>
> drivers/tty/serial/mxs-auart.c:962:2: warning: initialization from
> incompatible pointer type
> .set_ldisc = mxs_auart_set_ldisc,
> ^
> drivers/tty/serial/mxs-auart.c:962:2: warning: (near initialization
> for 'mxs_auart_ops.set_ldisc')
>
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
> Changes since v1:
> - Fix the explanation for the error
>
> Janusz,
>
> This is build-tested only. Please test it on real hardware, if possible.
>
> drivers/tty/serial/mxs-auart.c | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/tty/serial/mxs-auart.c b/drivers/tty/serial/mxs-auart.c
> index 3784920..a6d2bb9f4 100644
> --- a/drivers/tty/serial/mxs-auart.c
> +++ b/drivers/tty/serial/mxs-auart.c
> @@ -784,9 +784,10 @@ static void mxs_auart_settermios(struct uart_port *u,
> mxs_auart_disable_ms(u);
> }
>
> -static void mxs_auart_set_ldisc(struct uart_port *port, int new)
> +static void mxs_auart_set_ldisc(struct uart_port *port,
> + struct ktermios *termios)
> {
> - if (new == N_PPS) {
> + if (termios->c_line == N_PPS) {
> port->flags |= UPF_HARDPPS_CD;
> mxs_auart_enable_ms(port);
> } else {
Tested-by: Janusz Uzycki <j.uzycki@elproma.com.pl>
prev parent reply other threads:[~2014-11-15 17:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-12 22:32 [PATCH v2] serial: mxs-auart: Fix mxs_auart_set_ldisc() Fabio Estevam
2014-11-14 22:53 ` Janusz Użycki
2014-11-15 15:51 ` Fabio Estevam
2014-11-15 17:35 ` Janusz Użycki [this message]
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=54678EFB.5060007@elproma.com.pl \
--to=j.uzycki@elproma.com.pl \
--cc=fabio.estevam@freescale.com \
--cc=festevam@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-serial@vger.kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox