From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752330AbdATNzZ (ORCPT ); Fri, 20 Jan 2017 08:55:25 -0500 Received: from mail-io0-f171.google.com ([209.85.223.171]:36815 "EHLO mail-io0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbdATNzV (ORCPT ); Fri, 20 Jan 2017 08:55:21 -0500 MIME-Version: 1.0 In-Reply-To: <20170116225436.17505-1-robh@kernel.org> References: <20170116225436.17505-1-robh@kernel.org> From: Linus Walleij Date: Fri, 20 Jan 2017 14:55:20 +0100 Message-ID: Subject: Re: [PATCH v2 0/9] Serial slave device bus To: Rob Herring , "linux-iio@vger.kernel.org" , Jonathan Cameron Cc: Greg Kroah-Hartman , Marcel Holtmann , Jiri Slaby , Sebastian Reichel , Arnd Bergmann , "Dr . H . Nikolaus Schaller" , Peter Hurley , Andy Shevchenko , Alan Cox , Loic Poulain , Pavel Machek , NeilBrown , "linux-bluetooth@vger.kernel.org" , "linux-serial@vger.kernel.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v0KDtTO0008738 On Mon, Jan 16, 2017 at 11:54 PM, Rob Herring wrote: > There's still some discussion about what to do with devices that pass thru > data to userspace unmodified like GPS and could still use tty device for > the data path. IMO, we should treat this as a separate problem following > this series. Drivers we want to convert to serdev and already in the > kernel don't need this functionality. In my simple opinion GPSes shound live in drivers/iio/gps simply by usecase association: streaming out a series of accelerometer readings periodically through IIOs chardevs and other data about the physical world is not any different from the GPS usecase that give you a stream of coordinates on where on this planet you are. The fact that vendors like to defer GPS processing to userspace because it is considered "secret sauce" is not the concern of the kernel community, though problems like that in general is the great tragedy of our time. It would be fun to see a pure, reverse-engineered GPS driver in IIO. Just my €0.01 (And by the way: awesome work on this series.) Yours, Linus Walleij