Received: by 10.192.165.148 with SMTP id m20csp369782imm; Wed, 25 Apr 2018 00:25:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+X/6aEXGlW50ZuEeKwLYBGOfowBx2boe4GrWm+EFNF81E0CTypkyv/DRHOuagwb2hCka/N X-Received: by 2002:a17:902:8e8c:: with SMTP id bg12-v6mr27829292plb.295.1524641148565; Wed, 25 Apr 2018 00:25:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524641148; cv=none; d=google.com; s=arc-20160816; b=IPFhHDp+wSgOVBjYRyp5ytWDqcYjY92Hp5is+Njvv0paWqnLqMmR9fjbnnyzzer2QA jA1m/QjdG0DC3Q1iDlYODWD5QDYc2o82OW87JIJxVD/BoIyVzc8v2VGhgOQsEFPsQehG A13vqZD2n8z2oGgCunsThlqf68QwbeYiIx2IsGWHfGcx3e10xuDhMUDDv1QbdfL0b6Va lXr0TNcEcJt/EIYBNOumDTiu5ZMa9F8FzWDfeVI+wePz57cF2ybbIJAfDYBrn6BWnPlo v1orRim1C/AY7sIcYnEEqHSIG0AkthzkblDpAa9CbBe8U+9j6hiT6y6njPe0CLqiHk04 IPiw== 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:dkim-signature:arc-authentication-results; bh=XeB/K69ni+Wg6WINJE2/hH3ox1uZaKHIpggrolP3nxE=; b=NFwBurjGydvPSQa7EEHoYIHiM8e2sEfTIvQkxYshZnWn382sWpD8Q3+q+Bgt0cnTMs JE8nylw0zisGBNQZy3WWxXWeeoJjq2+QxopBp1UBS3NxxJjGJdU6sNF8N20XOXtfouWD A6xwrxFL9DSudkFZwiuQGDq5qG4X+6lyx4ITwN6zByGreUg4ySIBh/9zfFouRf9RaIIY VTBwVJwgcEDcS7jqZhWIYYY/lnJyHYskwdBBkX9JKhdhfFHSYy1ycXjQrKW3D+vwZs/H ejOD7sey5CldOpWVSIgWCIfoGStcDDbTxuV0ROAK58Q5tj/c0MtQZ9CD+HWtEyLSp3Wq Ml6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MgxRV8Qg; 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 w66si15850661pfj.144.2018.04.25.00.25.34; Wed, 25 Apr 2018 00:25:48 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MgxRV8Qg; 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 S1751426AbeDYHY3 (ORCPT + 99 others); Wed, 25 Apr 2018 03:24:29 -0400 Received: from mail-lf0-f54.google.com ([209.85.215.54]:35655 "EHLO mail-lf0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750929AbeDYHYX (ORCPT ); Wed, 25 Apr 2018 03:24:23 -0400 Received: by mail-lf0-f54.google.com with SMTP id r125-v6so23976187lfe.2; Wed, 25 Apr 2018 00:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=XeB/K69ni+Wg6WINJE2/hH3ox1uZaKHIpggrolP3nxE=; b=MgxRV8QgpRn+V1979Dod7HM+74BQkeUDCQ3t+nPF2l+NapyEMFMYMS61ExKCNLBzZ4 j1XaLIrz+ux4VYFVjo6OwPYVfknrZc8o2Gre7qLlOSi8D+8OG7fyOSWqSjkfcHU7fp3B fxEHgBOjnTP/y1YHsocT3msJe1KtjVNv6D2ohfGtSZQ6gTzlrZHjc5JAWoBfYzbHUFpv 7RKY9kz20H4ROq/JJKNU+/BRtkmaeCMzkrQQv1FrtQeMljPMKWs8KG9qkhfymG4uf4+y Udhw9lUejXoFpJ2oEUVw2koC5zpot7AA3bgFTAA0cSPqN/P3/on6Fn9peKLJxbSZGTsJ ymmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=XeB/K69ni+Wg6WINJE2/hH3ox1uZaKHIpggrolP3nxE=; b=nqILZkOD3Y/rhabtPfTb6j4C1mFYhE8wtp7cDtd8OfAY09LZdUihcMJVjnZlkoGrb8 X3PfJuVEKvK1II8pN3F9Z26UySor/iD4RgcfmxJkx+p5maf9CSZq0QCAAuix0LGpzR/l 96rw0GUVL3yRYS4kGU3nvnNsGvWm4az0okU6LLKso9DIj3ajU7STZvmHN7m4Z/h+Vy9+ DWDxrd9S9yAvbGQMJ6uynp3R2YsLopavtHd7PooL8amF7PLq2KgeTPMBPgh7ObfdUsmT UquRi/a1TwUeZWcXvJ9tQV6CovHJNuyH+pPs/88vHqge2xKYEOFDSDuNJ1Wrk2ICOdsB TEOQ== X-Gm-Message-State: ALQs6tBwh1Y/7g6kraeORgO6/pfWcx0ADjXQWIa5FmfMXMNZu+Zo91M2 9GVBx3Si8uSgLNJdLOK8DOc= X-Received: by 10.46.115.5 with SMTP id o5mr18155807ljc.29.1524641062170; Wed, 25 Apr 2018 00:24:22 -0700 (PDT) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id r5sm2412314ljr.41.2018.04.25.00.24.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 00:24:21 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fBEmj-0007tL-GU; Wed, 25 Apr 2018 09:24:13 +0200 Date: Wed, 25 Apr 2018 09:24:13 +0200 From: Johan Hovold To: Pavel Machek 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: <20180425072413.GI4615@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180424201318.GA14390@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424201318.GA14390@amd> User-Agent: Mutt/1.9.5 (2018-04-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 10:13:19PM +0200, Pavel Machek wrote: > Hi! > > > This series adds a new subsystem for GNSS receivers (e.g. GPS > > receivers). > > Actually... I'd just call it GPS subsystem. Yes, GPS is a bit > misleading, but so is GNSS. We'd like Loran to use similar interface, > right? We'd like to QZSS to use similar interface, too... > > https://www.pcworld.com/article/205325/japan_launches_its_first_gps_satellite.html > . QZSS is not _global_ positioning system. Still they call it GPS. I'd > call it GPS too. What Marcel said. Never heard of Loran, but apparently it's no longer in use: https://en.wikipedia.org/wiki/Radio_navigation#Satellite_navigation > (Alternatively, we could have drivers/position and /dev/pos0...) If you find such a system in use and implement a driver for it, we'll just let it be the odd bird. > Looking closer... I'm not sure if it makes sense to push different > protocols (SiRF, NMEA, ...) through one device. Userland should know > what protocol to expect... Yes, there will be common code between > /dev/nmea0 and /dev/sirf0... That's not how GNSS devices work. It does not seem to be uncommon to switch to a vendor protocol with a richer feature set and back to NMEA (e.g. for configuration). Raw GNSS data may also be available over the vendor protocol, etc. And some devices even support using to protocols concurrently on one port. I was going to call the device node /dev/gnssraw0 (cf. hidraw), but since "raw" GNSS measurement already has a meaning in this space I decided to drop that suffix. It can all be accessed over /dev/gnss0. > I don't know. I'd really like to see '/dev/input/event0'-like layer, > so that userland would not need to know about different protocols. But > your work solves some problems we have now... Yeah, and moving gpsd into the kernel is probably never going to happen. But if it were, we probably wouldn't be using a character device to access it anyway. Johan