Re: [PATCH] serial: DCC(JTAG) serial and console emulation support

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Alan Cox
Date: Thursday, October 7, 2010 - 1:50 pm

> +	  Say Y here if you want to install DCC driver as a normal serial port

NAK to both

ttyJ0 is 204,186 for "JTAG1 DCC protocol based serial"

so there is an existing name and minor allocation, which as you won't be
using two of them should be quite usable.

If you want to be able to switch at runtime to pretend it is ttyS0 please
deal with that in your user space. The same rules apply to you as have
been applied to everyone else who has tried to implement this same crap
in their uart driver too (we'd have it in about 30 by now otherwise)


Not safe in the general case - you might get a hangup here then call
through a NULL pointer. Please use the proper tty_port helpers.



Why make this a function?



There is a helper function for keeping the hardware bits fixed. If your
hardware is fixed then please use it.

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

Messages in current thread:
Re: [PATCH] serial: DCC(JTAG) serial and console emulation ..., Alan Cox, (Thu Oct 7, 1:50 pm)