[lkml]   [2006]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: serial_core: verify_port() in wrong spot?
On Fri, Jun 09, 2006 at 10:52:31AM -0400, Stuart MacDonald wrote:
> However, in serial_core.c:set_uart_info(), there is a problem. The
> flag should be within the purview of UPF_USR_MASK so that
> non-privileged users can turn it on or off, and yet, I don't want the
> mode to be enabled on UARTs that don't have it which requires
> verification from the low-level driver. There is only one call to
> ops->verify_port(), and it's not in the correct place for this to
> happen.

I'd rather verify_port didn't get used for that - it's purpose is to
validate changes the admin makes to the port.

I don't know why you think that setting 9bit mode should be done this
way rather than through the usual termios methods - the termios methods
already have a way to control the length of each character, so it would
seem logical to put the control in there.

Russell King
Linux kernel 2.6 ARM Linux -
maintainer of: 2.6 Serial core
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-06-09 18:25    [W:0.056 / U:0.952 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site