Received: by 10.192.165.148 with SMTP id m20csp456292imm; Fri, 4 May 2018 13:04:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrvZ04rlNwpBVd4rJA/h79sOxOgiMZcZnnd4WaIuyd0JPNw/9NjesUo84U67FF5kc88G6RV X-Received: by 2002:a17:902:5304:: with SMTP id b4-v6mr28402062pli.231.1525464294831; Fri, 04 May 2018 13:04:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525464294; cv=none; d=google.com; s=arc-20160816; b=tTDOWKgo1VioYj8Ylm6tzU2SvzUaOysI1ZxIUYaM84b+0M+Kwg1A5/v54IIznPbxUu G1vUn3l+MAFdVqQKoj7dK+uynIq6apfs0E+RWP9ENPR29fk6X96FdfTY9SocJBHJKHZ1 mJcdYR1E1JxSqE2iqIppj0HTDyxFMX1utX68T+bg4ZZ+5Ut3Q6i3LJv4OEvTOxGpr+5n K9V5OgmSBMExuG6E4rcsVmHpc1rd4FM6qFACxAL9zkFM4ctMniVIzuyZGQUPNlre9lVH GkM/DmNjZL1d8bTxl5fLUsNlnO3+CRFEibd26mCSQflSxqQ2cI4ld1v+Fba2U19tgRAd 168g== 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=W00ARIvNhZskPguOl58za0L4qdxnoVDXs194w3MfV4o=; b=IUppMN/ieQFu+mn5utilkAqUGQ8VcvKTe4UJusWLy1M/42/S/5hAfXlYvE/HBsvk9g IwUWfKUwe2ecGoeDDSVofLr+6EzAIkIQRoGpJYqN18v4/sx6/GC0iQEPEXhtZQnIvuy4 9BGhXUSBBGUfrjw6FxsBHGqc21Cymyz9b7UNik6Y8pWQwsfrHx7vM+21lcFAoWAO02Tb UndKZxL+6XXUeEwKRQO5Ae5jLJaPl0okxf27JKicmd45+M0D5Tphw/rS1j2oEr2WM3zL QRwgH/aNDlmcbMz2kjOuIoPvYVGSZGd6Dn3FhDTVz5T/Jha0F55fc/0+ABum5XkW8m4X Dxjg== 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 l11-v6si13679355pgn.315.2018.05.04.13.04.40; Fri, 04 May 2018 13:04:54 -0700 (PDT) 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 S1751741AbeEDUDS (ORCPT + 99 others); Fri, 4 May 2018 16:03:18 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:60261 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751507AbeEDUDR (ORCPT ); Fri, 4 May 2018 16:03:17 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id 7B2A7804E5; Fri, 4 May 2018 22:03:15 +0200 (CEST) Date: Fri, 4 May 2018 22:03:15 +0200 From: Pavel Machek To: Sebastian Reichel Cc: Johan Hovold , Greg Kroah-Hartman , Rob Herring , Mark Rutland , Andreas Kemnade , Arnd Bergmann , "H . Nikolaus Schaller" , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 0/7] gnss: add new GNSS subsystem Message-ID: <20180504200315.GA22519@amd> References: <20180424163458.11947-1-johan@kernel.org> <20180504132741.brn5jqv5ufjhp7ky@earth.universe> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20180504132741.brn5jqv5ufjhp7ky@earth.universe> 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 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > Finally, note that documentation (including kerneldoc) remains to be > > written, but hopefully this will not hinder review given that the > > current interfaces are fairly self-describing. >=20 > Great work. I like your design decisions. I have quite a few devices > with have non-serial based GPS peripherals using binary protocols (*). > As far as I can see it should be possible to add support for those. >=20 > I have one concern, though. While providing raw data by > default is fine generally, it is a problem with device > auto-discovery. I think there should be some IOCTL from > the start, that can be used to inform userspace about > the raw protocol being used (i.e. "NMEA"). I fear, that > userspace may start to just assume raw =3D NMEA without > having this (especially since all initial drivers provide > NMEA). Yep, that would be nice. > (*) I have those in mind: >=20 > Nokia N900: The phone has GPS integrated into the modem and uses > ISI encapsulated data. The protocol has been reverse engineered > and it should be possible to write a kernel driver for handling > the GPS packets and dumping the raw data to /dev/gnss0. I don't > think this is particularly useful without a non-raw interface, > though. It would still require a custom userspace implementation. Actually... in this case it would be nice to do the protocol processing in kernel and just present reasonable interface to userland... or maybe NMEA. > Droid 4: GPS is similar to N900, but different protocol and QMI > encapsulated. This one also has known protocol with userspace > implementation. I did not yet have a detailed look, if its possible > to (un)wrap this in the kernel. So, this is actually NMEA over QMI. I do have patches libqmi that provides NMEA on stdout. But there seems to be another possibile interface (yes, that modem is crazy, and you can talk to it over few different interfaces), and that's NMEA over GSM07.10. That one should be feasible to decode in kernel and just provide NMEA to userland. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --9amGYk9869ThD9tj Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlrsvIMACgkQMOfwapXb+vKWzQCfZOPNaj3pxEakhZzPJGSdPibB rWIAnirElFj5ptHna9t3I53DqNtFUjbQ =P8q2 -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--