Received: by 10.192.165.148 with SMTP id m20csp376535imm; Wed, 25 Apr 2018 00:34:18 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+MJvQczShORmgU0W0wXJWUAgedelDNd8KHg9uPpMR/s7O2JnwFiAN2VpdE5yZSxIgisCk2 X-Received: by 10.99.64.65 with SMTP id n62mr22761519pga.259.1524641657987; Wed, 25 Apr 2018 00:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524641657; cv=none; d=google.com; s=arc-20160816; b=PdJosxtZ9Riyydth0ays5pCmsJdk0bRnGekVgdWA9CVNpS4iGdks0QU2bFU6FQN6z7 oOVXV75K8sKO6x87sWyLlXh6I1QrrU6Hsp691/tSwWH4ZCSGByLBzcs2URqG+elY+F78 vKkeyIz74qOskZeaoIb7GCnQqG/ZS6mpuTC6s9Uzfk2Qb37eUuGZ5yTLcjryBwNcW3t5 9NwY84IIZSPDG88LdBa54RguaLPmUiQ7UsYTgNC+LDfMGqxL50tULRNdR0+HsNgkhmXy 7JMsVF+mWIWEaknoyK3AiiTRvHrNCpJ4wvppEgwFOYjr6Ya743tGQb8rD68n/QzhBM4J 6EbA== 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=Cf6++sqcM2FwEf4/0/GCMDjS21r6CJ+V2Qu31XqThWE=; b=IIhLAayWxzx9NrOnwlLtYn02eLI0YarW/LuCL+n4gW4mzRMBot4XKEtMCo8mlogbTq rUXAcmeZOMom3ez57vfvQvEN74UVx/L9gFs4meiQ/5Spf33oTvvvdYcqAHLgQz5Z0HQy dsd5R65BClpb9F+4hSkqwnQQ7G6m9QwF3B3nSpxu1zWrVqo51QA19TL1lgCmpkB8ntwJ ufweocVN4ygA9dwSIxbIkvA4tt6cXfJRlGFhaSP+0C+rI3lsyqMP+E6VQHIBVwb6mfPj vJTPLWcJWPKuxSJQ7Mf4QJMNBmUuNVO5+aKVT/Qt9ui3HBU3JUAOGHp83mOEnHFQwFJe GHqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=ppecLrYk; 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 d13si12948152pgn.334.2018.04.25.00.34.03; Wed, 25 Apr 2018 00:34:17 -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=ppecLrYk; 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 S1751280AbeDYHc4 (ORCPT + 99 others); Wed, 25 Apr 2018 03:32:56 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:45113 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750841AbeDYHcx (ORCPT ); Wed, 25 Apr 2018 03:32:53 -0400 Received: by mail-lf0-f45.google.com with SMTP id q5-v6so23976629lff.12; Wed, 25 Apr 2018 00:32:52 -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=Cf6++sqcM2FwEf4/0/GCMDjS21r6CJ+V2Qu31XqThWE=; b=ppecLrYkj+dmaJg0ecF1PZDxNwG1mSIgPWt2N/NuiTnwYb9TaMJ0P7uTGoKZd6I3IO +mMUrbFfr2mXYddeyMyTy0xr3v4o2QJ8AtezohbYXoUwVZ09967UZhpL6ieo7Y22OPvj Tr6S54Sp+Y8V12Ej9z63XOSWYGT1W+/4plmJUY1qH/M74hgXHywPihekm/rv4tB8320P jpWxeLSUn1S+3di1k9jYOu5+ObfeRMq7Pr1VT7dSarLXgBM6zOhA+PWfmiWmZ9lhf6LM MKQoFd4NSrnhbannoLLei2rw36sfcklJCbY2dEqAW8IKhJR2bGWsYJsWXYECjxAql2W7 8cmw== 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=Cf6++sqcM2FwEf4/0/GCMDjS21r6CJ+V2Qu31XqThWE=; b=LRfpGA9Om8sMq4PxMsV6XymA4b0+Epo2/ssmxkoci2zl0g0QU5TCvgHOJSgMJ3gWlh bX66uzehResefsUSP+JYB8MAjgoiqhUc5boH4rENaUwgde+PXmydPLH/yW2gSHbJFY9c +VPUhoTBHEJHXeh22GqTh1bKBwwBqtzB8kT237GlVZmhSZoj4pDqoJfIFBqGZcXDwTAE trh36PA0FcQR5rnvoLtKcGMcUU8g1LPV/nCXbNBg/1RASEaK2j4EpSn4xjSLrbRnEM0s tJHb0nhnnvGYLILDQEn39LMAHBOHPpuNIW2cZssfot/hiZFcLMRoW4c+FDNIMLzzsubo 7x0Q== X-Gm-Message-State: ALQs6tCTOnALpJQ/bWs8h/Ear3E+QZGVZBMEGZDxJYqUyu1XgOxnX/pb DuvJ0TjyvFa77J1bhe97GNY= X-Received: by 10.46.157.84 with SMTP id y20mr18086134ljj.107.1524641572044; Wed, 25 Apr 2018 00:32:52 -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 s9-v6sm3797079lfk.28.2018.04.25.00.32.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 Apr 2018 00:32:51 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fBEux-0007vy-Eu; Wed, 25 Apr 2018 09:32:43 +0200 Date: Wed, 25 Apr 2018 09:32:43 +0200 From: Johan Hovold To: Andreas Kemnade Cc: Pavel Machek , Johan Hovold , Greg Kroah-Hartman , Rob Herring , Mark Rutland , 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: <20180425073243.GJ4615@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180424201318.GA14390@amd> <20180424225948.4d6a121c@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180424225948.4d6a121c@aktux> 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:59:48PM +0200, Andreas Kemnade wrote: > On Tue, 24 Apr 2018 22:13:19 +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. > > > > (Alternatively, we could have drivers/position and /dev/pos0...) > > > > 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... > > > > 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... > > > I am not really sure what to do here. The question is if we can remove > nmea parsing from userspace if the kernel does it? There is the > use-case of having external loggers storing nmea data and userspace > will access the logger data and needs to have nmea parsing for that > anyway. > > But for other more exotic stuff, it would be helpful that the user > space does not need to handle the differences. > > Hmm, maybe userspace could register something like uinput devices for > having more complex calculation. Maybe triangulating using gsm cell > reception data. And the uinput-like device would have properties > attached like accuracy, costs. There's also seems to be trend towards exposing raw measurements and experimenting with different Position-Velocity-Time algorithms in user space. But in any case, moving gpsd into the kernel is not my aim here. With a GNSS subsystem in place which would give us device detection and power management from the start, people can start experimenting with more features (e.g. device identification, feature flags, or possibly higher-level protocol interfaces). Thanks, Johan