mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] 21285: Report baud rate back via termios
@ 2007-11-19 15:12 Alan Cox
  2007-11-19 15:41 ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2007-11-19 15:12 UTC (permalink / raw)
  To: akpm, rmk, linux-kernel, linux-arm

Currently reports back the requested rate not the result of the divides
but thats an easy fix for someone with h/w

Signed-off-by: Alan Cox <alan@redhat.com>

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.24-rc2-mm1/drivers/serial/21285.c linux-2.6.24-rc2-mm1/drivers/serial/21285.c
--- linux.vanilla-2.6.24-rc2-mm1/drivers/serial/21285.c	2007-11-16 17:20:48.000000000 +0000
+++ linux-2.6.24-rc2-mm1/drivers/serial/21285.c	2007-11-16 18:35:29.000000000 +0000
@@ -277,6 +279,8 @@
 	if (termios->c_iflag & INPCK)
 		port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
 
+	tty_encode_baud_rate(tty,  baud, baud);
+
 	/*
 	 * Which character status flags should we ignore?
 	 */
@@ -301,6 +305,7 @@
 	*CSR_UARTCON = 1;
 
 	spin_unlock_irqrestore(&port->lock, flags);
+	
 }
 
 static const char *serial21285_type(struct uart_port *port)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 21285: Report baud rate back via termios
  2007-11-19 15:12 [PATCH] 21285: Report baud rate back via termios Alan Cox
@ 2007-11-19 15:41 ` Russell King
  2007-11-19 15:50   ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Russell King @ 2007-11-19 15:41 UTC (permalink / raw)
  To: Alan Cox; +Cc: akpm, linux-kernel

On Mon, Nov 19, 2007 at 03:12:22PM +0000, Alan Cox wrote:
> Currently reports back the requested rate not the result of the divides
> but thats an easy fix for someone with h/w
> 
> Signed-off-by: Alan Cox <alan@redhat.com>

Ack for first hunk.  When can this be merged?  I assume it has to wait
for tty_encode_baud_rate() to appear in mainline?

> diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.24-rc2-mm1/drivers/serial/21285.c linux-2.6.24-rc2-mm1/drivers/serial/21285.c
> --- linux.vanilla-2.6.24-rc2-mm1/drivers/serial/21285.c	2007-11-16 17:20:48.000000000 +0000
> +++ linux-2.6.24-rc2-mm1/drivers/serial/21285.c	2007-11-16 18:35:29.000000000 +0000
> @@ -277,6 +279,8 @@
>  	if (termios->c_iflag & INPCK)
>  		port->read_status_mask |= RXSTAT_FRAME | RXSTAT_PARITY;
>  
> +	tty_encode_baud_rate(tty,  baud, baud);
> +
>  	/*
>  	 * Which character status flags should we ignore?
>  	 */
> @@ -301,6 +305,7 @@
>  	*CSR_UARTCON = 1;
>  
>  	spin_unlock_irqrestore(&port->lock, flags);
> +	
>  }
>  
>  static const char *serial21285_type(struct uart_port *port)

This hunk isn't required.

Note also that no one reads linux-arm@vger.kernel.org.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 21285: Report baud rate back via termios
  2007-11-19 15:41 ` Russell King
@ 2007-11-19 15:50   ` Alan Cox
  2007-11-19 15:55     ` Russell King
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2007-11-19 15:50 UTC (permalink / raw)
  To: Russell King; +Cc: akpm, linux-kernel

On Mon, 19 Nov 2007 15:41:37 +0000
Russell King <rmk+lkml@arm.linux.org.uk> wrote:

> On Mon, Nov 19, 2007 at 03:12:22PM +0000, Alan Cox wrote:
> > Currently reports back the requested rate not the result of the divides
> > but thats an easy fix for someone with h/w
> > 
> > Signed-off-by: Alan Cox <alan@redhat.com>
> 
> Ack for first hunk.  When can this be merged?  I assume it has to wait
> for tty_encode_baud_rate() to appear in mainline?

tty_termios_encode_baud-rate/tty_encode_baud_rate are now in mainline

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] 21285: Report baud rate back via termios
  2007-11-19 15:50   ` Alan Cox
@ 2007-11-19 15:55     ` Russell King
  0 siblings, 0 replies; 4+ messages in thread
From: Russell King @ 2007-11-19 15:55 UTC (permalink / raw)
  To: Alan Cox; +Cc: akpm, linux-kernel

On Mon, Nov 19, 2007 at 03:50:07PM +0000, Alan Cox wrote:
> On Mon, 19 Nov 2007 15:41:37 +0000
> Russell King <rmk+lkml@arm.linux.org.uk> wrote:
> 
> > On Mon, Nov 19, 2007 at 03:12:22PM +0000, Alan Cox wrote:
> > > Currently reports back the requested rate not the result of the divides
> > > but thats an easy fix for someone with h/w
> > > 
> > > Signed-off-by: Alan Cox <alan@redhat.com>
> > 
> > Ack for first hunk.  When can this be merged?  I assume it has to wait
> > for tty_encode_baud_rate() to appear in mainline?
> 
> tty_termios_encode_baud-rate/tty_encode_baud_rate are now in mainline

Great, I'll queue it for the next merge minus the 2nd hunk.

-- 
Russell King
 Linux kernel    2.6 ARM Linux   - http://www.arm.linux.org.uk/
 maintainer of:

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-11-19 15:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-19 15:12 [PATCH] 21285: Report baud rate back via termios Alan Cox
2007-11-19 15:41 ` Russell King
2007-11-19 15:50   ` Alan Cox
2007-11-19 15:55     ` Russell King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®