Return-Path: Date: Mon, 22 Aug 2016 22:35:56 +0100 From: One Thousand Gnomes To: Marcel Holtmann Cc: Arnd Bergmann , Rob Herring , Greg Kroah-Hartman , Jiri Slaby , Sebastian Reichel , Pavel Machek , Peter Hurley , NeilBrown , "Dr . H . Nikolaus Schaller" , Linus Walleij , "open list:BLUETOOTH DRIVERS" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [RFC PATCH 0/3] UART slave device bus Message-ID: <20160822223556.0127ae6f@lxorguk.ukuu.org.uk> In-Reply-To: References: <20160818011445.22726-1-robh@kernel.org> <12886761.WF058qtZp8@wuerfel> <2775954.hrE2UdODgU@wuerfel> <20160822164533.688a6aec@lxorguk.ukuu.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII List-ID: > 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