Re: [RFC PATCH 0/3] UART slave device bus

From: One Thousand Gnomes
Date: Mon Aug 22 2016 - 18:09:59 EST


> I now wonder if we can not just turn the ldisc into a bus. So we have a ldisc bus that exposes devices that have no business of having a userspace /dev/ttyX exposed. And our Bluetooth UART support just turns into a ldisc driver on the ldisc bus.

The ldisc and tty have the wrong object lifetime for a bus, but you can
put the tty_port objects onto the bus, and it is those you need to
instantiate the stack.

The port exists for hardware lifetime, the tty and ldisc exist only while
the port is "up".

Alan