* [PATCH] serial: amba-pl010: fix set_ldisc
@ 2010-08-29 17:12 Mika Westerberg
2010-09-04 7:23 ` Mika Westerberg
0 siblings, 1 reply; 4+ messages in thread
From: Mika Westerberg @ 2010-08-29 17:12 UTC (permalink / raw)
To: linux-kernel; +Cc: Mika Westerberg, Alan Cox, Russell King
Commit d87d9b7d1 ("tty: serial - fix tty referencing in set_ldisc") changed
set_ldisc to take ldisc number as parameter. This patch fixes AMBA PL010 driver
according the new prototype.
Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
---
drivers/serial/amba-pl010.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/serial/amba-pl010.c b/drivers/serial/amba-pl010.c
index 50441ff..2904aa0 100644
--- a/drivers/serial/amba-pl010.c
+++ b/drivers/serial/amba-pl010.c
@@ -472,14 +472,9 @@ pl010_set_termios(struct uart_port *port, struct ktermios *termios,
spin_unlock_irqrestore(&uap->port.lock, flags);
}
-static void pl010_set_ldisc(struct uart_port *port)
+static void pl010_set_ldisc(struct uart_port *port, int new)
{
- int line = port->line;
-
- if (line >= port->state->port.tty->driver->num)
- return;
-
- if (port->state->port.tty->ldisc->ops->num == N_PPS) {
+ if (new == N_PPS) {
port->flags |= UPF_HARDPPS_CD;
pl010_enable_ms(port);
} else
--
1.5.6.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] serial: amba-pl010: fix set_ldisc
2010-08-29 17:12 [PATCH] serial: amba-pl010: fix set_ldisc Mika Westerberg
@ 2010-09-04 7:23 ` Mika Westerberg
2010-09-04 14:38 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Mika Westerberg @ 2010-09-04 7:23 UTC (permalink / raw)
To: linux-kernel; +Cc: Alan Cox, Russell King, gregkh
On Sun, Aug 29, 2010 at 08:12:45PM +0300, Mika Westerberg wrote:
> Commit d87d9b7d1 ("tty: serial - fix tty referencing in set_ldisc") changed
> set_ldisc to take ldisc number as parameter. This patch fixes AMBA PL010 driver
> according the new prototype.
Hi,
If there are no objections, could this be merged? I CC'd Greg as I'm not sure
who is the serial maintainer.
Thanks,
MW
> Signed-off-by: Mika Westerberg <mika.westerberg@iki.fi>
> Cc: Alan Cox <alan@linux.intel.com>
> Cc: Russell King <rmk+kernel@arm.linux.org.uk>
> ---
> drivers/serial/amba-pl010.c | 9 ++-------
> 1 files changed, 2 insertions(+), 7 deletions(-)
>
> diff --git a/drivers/serial/amba-pl010.c b/drivers/serial/amba-pl010.c
> index 50441ff..2904aa0 100644
> --- a/drivers/serial/amba-pl010.c
> +++ b/drivers/serial/amba-pl010.c
> @@ -472,14 +472,9 @@ pl010_set_termios(struct uart_port *port, struct ktermios *termios,
> spin_unlock_irqrestore(&uap->port.lock, flags);
> }
>
> -static void pl010_set_ldisc(struct uart_port *port)
> +static void pl010_set_ldisc(struct uart_port *port, int new)
> {
> - int line = port->line;
> -
> - if (line >= port->state->port.tty->driver->num)
> - return;
> -
> - if (port->state->port.tty->ldisc->ops->num == N_PPS) {
> + if (new == N_PPS) {
> port->flags |= UPF_HARDPPS_CD;
> pl010_enable_ms(port);
> } else
> --
> 1.5.6.5
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] serial: amba-pl010: fix set_ldisc
2010-09-04 7:23 ` Mika Westerberg
@ 2010-09-04 14:38 ` Greg KH
2010-09-06 16:41 ` Mika Westerberg
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-09-04 14:38 UTC (permalink / raw)
To: Mika Westerberg; +Cc: linux-kernel, Alan Cox, Russell King
On Sat, Sep 04, 2010 at 10:23:23AM +0300, Mika Westerberg wrote:
> On Sun, Aug 29, 2010 at 08:12:45PM +0300, Mika Westerberg wrote:
> > Commit d87d9b7d1 ("tty: serial - fix tty referencing in set_ldisc") changed
> > set_ldisc to take ldisc number as parameter. This patch fixes AMBA PL010 driver
> > according the new prototype.
>
> Hi,
>
> If there are no objections, could this be merged? I CC'd Greg as I'm not sure
> who is the serial maintainer.
I've been acting as the def-facto serial maintainer, so I can take it.
I'll queue it up in my tree, give me a few days till I get to it.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] serial: amba-pl010: fix set_ldisc
2010-09-04 14:38 ` Greg KH
@ 2010-09-06 16:41 ` Mika Westerberg
0 siblings, 0 replies; 4+ messages in thread
From: Mika Westerberg @ 2010-09-06 16:41 UTC (permalink / raw)
To: Greg KH; +Cc: linux-kernel
On Sat, Sep 04, 2010 at 07:38:12AM -0700, Greg KH wrote:
>
> I've been acting as the def-facto serial maintainer, so I can take it.
> I'll queue it up in my tree, give me a few days till I get to it.
Great, thanks a lot.
Regards,
MW
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-09-06 16:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-29 17:12 [PATCH] serial: amba-pl010: fix set_ldisc Mika Westerberg
2010-09-04 7:23 ` Mika Westerberg
2010-09-04 14:38 ` Greg KH
2010-09-06 16:41 ` Mika Westerberg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox