Re: [PATCH 2/6 v2] serial: Add support for UART on VIA VT8500 and compatibles

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Sunday, November 7, 2010 - 4:08 pm

> +static void handle_rx(struct uart_port *port)

What is your locking for this  versus a hangup ? - tty can go NULL ?

(use tty_port_tty_get/tty_kref_put)



cpu_relax() and needs a timeout ideally ?



If you don't support other CS values then also do
	termios->c_flag &=~CSIZE;
	termios->c_cflag |= CS8;

here.. so the app knows,

likewise if you don't support mark/space (CMSPAR) then clear the CMSPAR
bit



cpu_relax/timeout



ttyS is the 8250 style devices


These major/minors belong to an existing device - use new ones, or in
fact unless they must be fixed use dynamic ones.

If they need fixed ones then we probably want to assign four from the
range for small ports.

);


The world really doesn't need to know about each driver being loaded.
pr_debug() should be fine

Looks pretty good.

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH 1/6 v2] ARM: Add basic architecture support for ..., Russell King - ARM Linux, (Sun Nov 7, 9:57 am)
Re: [PATCH 1/6 v2] ARM: Add basic architecture support for ..., Russell King - ARM Linux, (Sun Nov 7, 10:00 am)
Re: [PATCH 1/6 v2] ARM: Add basic architecture support for ..., Russell King - ARM Linux, (Sun Nov 7, 10:17 am)
Re: [PATCH 2/6 v2] serial: Add support for UART on VIA VT8 ..., Alan Cox, (Sun Nov 7, 4:08 pm)
Re: [PATCH 6/6 v4] ARM: Add support for the display contro ..., Guennadi Liakhovetski, (Tue Nov 9, 12:36 am)
Re: [PATCH 6/6 v3] ARM: Add support for the display contro ..., Russell King - ARM Linux, (Tue Nov 9, 3:33 am)
Re: [PATCH 6/6 v3] ARM: Add support for the display contro ..., Russell King - ARM Linux, (Tue Nov 9, 4:04 am)
Re: [PATCH 6/6 v3] ARM: Add support for the display contro ..., Geert Uytterhoeven, (Tue Nov 9, 6:02 am)
Re: [PATCH 1/6 v4] ARM: Add basic architecture support for ..., Russell King - ARM Linux, (Wed Nov 10, 8:18 am)
Re: [PATCH 1/6 v5] ARM: Add basic architecture support for ..., Russell King - ARM Linux, (Thu Nov 11, 4:49 pm)
Re: [PATCH 5/6 v2] rtc: Add support for the RTC in VIA VT8 ..., Lars-Peter Clausen, (Sat Nov 13, 5:14 am)
Re: [PATCH 5/6 v3] rtc: Add support for the RTC in VIA VT8 ..., Lars-Peter Clausen, (Sun Nov 14, 8:50 am)
Re: [PATCH 5/6 v4] rtc: Add support for the RTC in VIA VT8 ..., Lars-Peter Clausen, (Wed Nov 24, 12:23 pm)
Re: [PATCH 1/6 v8] ARM: Add basic architecture support for ..., Russell King - ARM Linux, (Mon Dec 20, 12:15 pm)