From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752519AbbC0LKN (ORCPT ); Fri, 27 Mar 2015 07:10:13 -0400 Received: from mail-qc0-f181.google.com ([209.85.216.181]:33684 "EHLO mail-qc0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752381AbbC0LKJ (ORCPT ); Fri, 27 Mar 2015 07:10:09 -0400 Message-ID: <55153A84.8000302@hurleysoftware.com> Date: Fri, 27 Mar 2015 07:09:56 -0400 From: Peter Hurley User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: NeilBrown CC: NeilBrown , Mark Rutland , One Thousand Gnomes , Arnd Bergmann , devicetree@vger.kernel.org, Greg Kroah-Hartman , Sebastian Reichel , linux-kernel@vger.kernel.org, GTA04 owners , Pavel Machek , Grant Likely , Jiri Slaby Subject: Re: [Gta04-owner] [PATCH 2/3] TTY: add support for tty_slave devices. References: <20150318055437.21025.13990.stgit@notabene.brown> <20150318055831.21025.85317.stgit@notabene.brown> <5512E288.4020703@hurleysoftware.com> <20150326081729.700a7a6e@notabene.brown> In-Reply-To: <20150326081729.700a7a6e@notabene.brown> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 03/25/2015 05:17 PM, NeilBrown wrote: > On Wed, 25 Mar 2015 12:30:00 -0400 Peter Hurley > wrote: > >> On 03/18/2015 01:58 AM, NeilBrown wrote: >> >>> + * A "tty-slave" is a device permanently attached to a particularly >>> + * tty, typically wired to a UART. >> >> Why "permanently"? >> Is that a limitation of the implementation or design? >> > > The slave is described in devicetree - that only happens for permanently > attached devices, doesn't it? > > I guess that with device-tree overlays and 'capes' for boards you could have > a device attached to the uart "for this power session" rather than > "permanently", but I think it is a rather subtle distinction. > > Did you have something else in mind? My primary concern is that the abstraction match the scope. If the abstraction is at the tty layer, then the scope of the design should support tty devices, not just hard-wired, devicetree-defined uarts. Regards, Peter Hurley