Re: [PATCH] tty/serial: add support for Xilinx PS UART

From: Alan Cox
Date: Wed Apr 20 2011 - 05:38:41 EST


> Reading up on it a bit as I'm not an expert on it (like you).
> It's not clear to me what the device driver uses for it's major/minor in
> this case.

If you don't specify then the kernel picks one. udev can then create the
right /dev/ttyPS1/2/3 nodes itself. If you have devtmpfs enabled then
devtmpfs is a virtual file system which will just have the nodes in at as
specified by the drivers. It eliminates all the hard work maintaining
device nodes/ranges in user space.

> The only reason we didn't just use ttyS0 was that it's not a 8250 really

If you'd attempted to use ttyS0 you would indeed have been told to change
it
> and
> since we have are an FPGA people can add real 8250s in soft logic and
> then
> the system would get confusing.

and that's exactly why !

Alan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/