Received: by 10.223.185.116 with SMTP id b49csp2398117wrg; Mon, 12 Feb 2018 08:56:37 -0800 (PST) X-Google-Smtp-Source: AH8x22424aH/0CF+kbkio8g1Rzig7WsnRcySXQRfCCWmyGNL8DSnMGcUSeaetLUs2jVOJ9RL9w2d X-Received: by 10.99.114.3 with SMTP id n3mr9751097pgc.225.1518454597168; Mon, 12 Feb 2018 08:56:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454597; cv=none; d=google.com; s=arc-20160816; b=NRM9sLbrdBd6grMNXD6zubO4lIhxn+1yeWtKrXZkg9TGY9O1PMk/nu/TZ/uMfj7+/x lLYSgPvcVq9ETOPAgBzwpl8TB5HK/XyUhfaS9/mpr8TM3NvjUZNQb7Pah5V4Rco3fDnB m4UC1s6wdA92IZO9zRCc80zBzT4jxdVhxJA41exGKVVp3nyaTT3W32wVwlbGvLtmMFTy 97jLLaCmwymifGviPurkyORoxQpb1iO1GDmWfdM8Cg4wjZOBuFgGT4VTJadDWOfZtPYx sk4qwIdmGQ/l/j/hNn+dxLP3uqxGuyFoK8NqX3N+bj1sgFTWCW6obkAx1I4bXNEYyehk gqwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=we9qQ1gveM7bSHn8YvgpUPYEP3v4uwbsLeKDB6n6aQQ=; b=HcooOqK754XwthLnj6G4mYadVjrtW080Xjv28ah+U43BPy+oqj5lT92yWYmHKZW8no EwTR5HatpHSNgid+L710+mh+P3oKSywEY0QAnsTn+xRDELQXYyplMdPc4VgslSz20Kt4 /nmD94BXx6FM0Ba9M01vNCIV8U/OwEY7oKBzNWu2TAcgnFnTYT2zlALOpFllOgWj34m/ 1eRID6ZxuLLwyZ3DVLMQvg6/AOmGIKj3NVby1t/jOJjuevAI2QeUToF3mO6P8AAIgwAg 9wvEhzI5uR4nzQo1ZwfaZA4IxvHIsUIUUtdJ92TD5S4jwVTWG4NKboP3lbnA2HrSLn2v b44A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t6-v6si6027710plq.631.2018.02.12.08.56.22; Mon, 12 Feb 2018 08:56:37 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753228AbeBLPZz (ORCPT + 99 others); Mon, 12 Feb 2018 10:25:55 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:43041 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753191AbeBLPZw (ORCPT ); Mon, 12 Feb 2018 10:25:52 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 9C7BC80160; Mon, 12 Feb 2018 16:25:50 +0100 (CET) Date: Mon, 12 Feb 2018 16:25:47 +0100 From: Pavel Machek To: "H. Nikolaus Schaller" Cc: Johan Hovold , Mark Rutland , DTML , linux-omap , Arnd Bergmann , Tony Lindgren , Greg Kroah-Hartman , kernel@pyra-handheld.com, Russell King , Linux Kernel Mailing List , Rob Herring , Linux ARM , =?iso-8859-1?Q?Beno=EEt?= Cousson , Kevin Hilman , Thierry Reding , Andreas =?iso-8859-1?Q?F=E4rber?= , Jonathan Cameron , Discussions about the Letux Kernel Subject: Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver Message-ID: <20180212152547.GA13962@amd> References: <5494ad34b39a6c62601e3747440268dfb3be7d5a.1512114576.git.hns@goldelico.com> <20171222124427.GI3374@localhost> <91850CC3-B280-4701-9D07-96AFF3A79A6F@goldelico.com> <90F9A8E4-035A-4A9E-8AAB-757491D63E69@goldelico.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: <90F9A8E4-035A-4A9E-8AAB-757491D63E69@goldelico.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > >> I'm sorry (and I know this discussion has been going on for a long > >> time),but this still feels like too much of a hack. >=20 > Happy new year ... Happy new attempt... >=20 > Let's restart this discussion and focus on the main roadblock (others are= minor > details which can be sorted out later). >=20 > If it feels like a hack, the key issue seems to me to be the choice of > the API to present the GPS data to user space. Right? >=20 > I see three reasonable options how this presentation can be done: >=20 > 1. char device > 2. tty device > 3. some new gps interface API (similar to network, bluetooth interfaces) > 4. no driver and use the UART tty directly > 3. some new gps interface API > + could become very elegant and general > - does not exist (AFAIK not even a plan but I am not aware of everything) > - no user-space daemons and applications exist which use it Yes, that is what needs to be done. It is very similar problem to serial mice we used to have long time ago. (And it has pretty much same solution; exporting NMEA for gpsd, then slowly moving to system with no gpsd). Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlqBsfsACgkQMOfwapXb+vIztgCgpEcmQ7dvaYf7kgZRjfe0YBDw v+gAoMKpp9BRiTQ1XZyg/N2O0lebNF7X =NWEi -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--