From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: [RFC PATCH 1/3] UART: Add UART subsystem as a bus. Date: Mon, 3 Dec 2012 11:46:04 +0000 Message-ID: <20121203114604.079a2721@bob.linux.org.uk> References: <6d5fc2e0799c12554aa8acdb2d7782ba8643902b.1354505472.git.lv.zheng@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6d5fc2e0799c12554aa8acdb2d7782ba8643902b.1354505472.git.lv.zheng@intel.com> Sender: linux-serial-owner@vger.kernel.org To: Lv Zheng Cc: Len Brown , Rafael J Wysocki , Greg Kroah-Hartman , linux-acpi@vger.kernel.org, linux-serial@vger.kernel.org List-Id: linux-acpi@vger.kernel.org > + * uart_tty_find - find the associated TTY device for the UART target > + * device > + * @drv: the low level UART driver > + * @dev: the parent physical device for the TTY devices > + * @line: the line number of the UART target device > + * Our top level abstraction is struct tty and struct tty_port. There is nothing requiring a serial tty is using the uart helper layer, nor should there be, so your code needs to support devices not using the uart layer. Otherwise it looks quite reasonable. our 3.7 tty layer has sysfs nodes on the tty which may also help Alan