Re: [PATCH 00/10] TTY: switch flipping functions to tty_port

From: Alan Cox
Date: Wed Jan 16 2013 - 11:22:06 EST


On Wed, 16 Jan 2013 16:59:58 +0100
Jiri Slaby <jslaby@xxxxxxx> wrote:

> On 01/16/2013 04:44 PM, Steven Rostedt wrote:
> > On Wed, 2013-01-16 at 14:37 +0100, Jiri Slaby wrote:
> >> Steven, do you have any plans with the driver? What is its planned
> >> destiny?
> >
> > Well, I'm currently using the device in my main machine. As it is my
> > main box, I don't update the kernel as often.
> >
> > Let me know what I need to do to fix it in the current kernel.
>
> Every port in the system has to have its struct tty_port counterpart.
>
> /me looked into the code
>
> OMG. It contains a true copy of serial_core!

And it seems to just be another 165x0 driver anyway In fact it looks
like the right thing to do is to take it out and shoot it. We've got a
16x50 driver already.

There are a few bits of gunk in there to set custom board registers and
to figure out the configuration. See drivers/tty/serial/8250/8250_pci.c
and it ought to be possible to just plug it in there. The 422 stuff
might need a bit more tweaking.

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/