[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <691920039.20160120230939@cogentembedded.com>
Date: Wed, 20 Jan 2016 23:09:39 +0300
From: Vostrikov Andrey <andrey.vostrikov@...entembedded.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>
CC: Rob Herring <robherring2@...il.com>,
Peter Hurley <peter@...leysoftware.com>,
"H. Nikolaus Schaller" <hns@...delico.com>,
Mark Rutland <mark.rutland@....com>,
List for communicating with real GTA04 owners
<gta04-owner@...delico.com>, Tomeu Vizoso <tomeu@...euvizoso.net>,
NeilBrown <neil@...wn.name>,
One Thousand Gnomes <gnomes@...rguk.ukuu.org.uk>,
Arnd Bergmann <arnd@...db.de>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Sebastian Reichel <sre@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Pavel Machek <pavel@....cz>,
"linux-serial@...r.kernel.org" <linux-serial@...r.kernel.org>,
Grant Likely <grant.likely@...aro.org>,
Jiri Slaby <jslaby@...e.cz>,
Marek Belisko <marek@...delico.com>
Subject: Re: [Gta04-owner] [PATCH 0/4] UART slave device support - version 4
Hi, Dmitry.
> On Fri, Jan 15, 2016 at 11:34 PM, Vostrikov Andrey
> <andrey.vostrikov@...entembedded.com> wrote:
>>
>> Yes, such implementation will help. There is a need for interface like UART BUS that will probe devices without user space.
>> Serial I/O for input subsystem defines new type of bus and uses dedicated line discipline, but it still unable to start driver by itself and requires call from 'inputattach' to open port, assign line discipline and go to forever wait on 'read'.
> That was done mainly because almost none of the serial protocols could
> be auto-probed, so device initialization/setup was moved out of kernel
> and thus we have the separate line discipline and inputattach utility.
This is understandable for "dummy" devices like mice, that only
report input events.
But in case there is "intellectual" MCU, that must reply on specific
commands with specific response - it could be auto-probed. Especially
when it is hardwired. Unfortunately, there is no API to do it.
Opening port and attaching line discipline from kernel side
does not look good. The only example is '/dev/console', which is
implemented that way.
> Thanks.
--
Best regards,
Andrey Vostrikov
Powered by blists - more mailing lists