From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S938741AbdAJSeN convert rfc822-to-8bit (ORCPT ); Tue, 10 Jan 2017 13:34:13 -0500 Received: from coyote.holtmann.net ([212.227.132.17]:46869 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764320AbdAJSce (ORCPT ); Tue, 10 Jan 2017 13:32:34 -0500 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: [PATCH 0/9] Serial slave device bus From: Marcel Holtmann In-Reply-To: Date: Tue, 10 Jan 2017 19:32:30 +0100 Cc: Andy Shevchenko , Greg Kroah-Hartman , Jiri Slaby , Sebastian Reichel , Arnd Bergmann , "Dr . H . Nikolaus Schaller" , Peter Hurley , Alan Cox , Loic Poulain , Pavel Machek , NeilBrown , Linus Walleij , "open list:BLUETOOTH DRIVERS" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Transfer-Encoding: 8BIT Message-Id: References: <20170106162635.19677-1-robh@kernel.org> <1483786850.9552.249.camel@linux.intel.com> To: Rob Herring X-Mailer: Apple Mail (2.3259) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, >>> Here goes another attempt at a serial device bus (aka uart slaves, tty >>> slaves, etc.). >>> >>> After some discussions with Dmitry at LPC, I decided to move away from >>> extending serio and moved back to making a new bus type instead. He >>> didn't >>> think using serio was a good fit, and serio has a number of >>> peculiarities >>> in regards to sysfs and it's driver model. I don't think we want to >>> inherit >>> those for serial slave devices. >>> >>> This version sits on top of tty_port rather than uart_port as Alan >>> requested. Once I created a struct tty rather than moving everything >>> needed to tty_port, it became a lot easier and less invasive to the >>> tty >>> core code. >>> >>> I have hacked up versions of the BT ldisc and TI ST drivers moved over >>> to >>> use the serdev bus. I have BT working on the HiKey board which has TI >>> BT. >>> With the serdev bus support, it eliminates the need for the TI >>> userspace >>> UIM daemon. >>> >>> This series and the mentioned drivers can be found here[1]. >> >> For patches 1-4: >> Reviewed-by: Andy Shevchenko > > Thanks. > >> Regarding to naming. Why can't we just name bus "serial"? If you are >> worrying about folder name under drivers/tty, I can propose at lease >> couple of options serialdev, serialbus. > > Naming is hard, right? > > I have don't have too much opinion on what the name should be. I just > came up with something unique and inspired by serio. It is a bit > easier to grep for serdev rather than just serial. while I do not really care for the function names and how they are named, but I think the sysfs bus name should be just “serial” or something generic like it. It is suppose to be like “usb”, “net”, “bluetooth” etc. Duplicating the word “bus” in it would seem kinda pointless. And that part is ABI and we should be sure that we want it that way. Function names and source directory names can be easily renamed later on. Regards Marcel