Received: by 10.192.165.148 with SMTP id m20csp343332imm; Tue, 24 Apr 2018 23:53:30 -0700 (PDT) X-Google-Smtp-Source: AIpwx49IMbhJTCBYwfRU4yAWF4wUOlfl99u6oeE4wVJTLf7mGn+vO30RXZbnmZEXIfCAEZC/D/z5 X-Received: by 10.98.87.84 with SMTP id l81mr9464336pfb.56.1524639210441; Tue, 24 Apr 2018 23:53:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524639210; cv=none; d=google.com; s=arc-20160816; b=NGuLQYpCtRtQYTazYISYHiCj6UeS4a7rv8daiko5hdSWj3owrqgTqSS5ZWEeeuKCHJ KEOlEOnVs7Afw3u0+trDEn19n357AxNYI4/3MEVFQD7ohiMOfg4xTe+ChvVi/QvgPvKL zboJSB7JEYQrUgM3MgFBi/R676ZpPkFoYzckAdD0qu+tlRnG0FoG+/JYkOghxsuIfjTk P8bMbbTCmtZzfTNwBugZXFAu0pNe4sjDu75kwAbu9ljIZKpfWB3KIKfBsJaunRjZJ5Uh 1DslkJ35xKeGT965EsMwkSyhModErVnsQHllukiaqcDv0CwL3sG4sYMUotRV9FfS6etP +stw== 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=deTgewHoF+xkeUfMySaQ895CDn3NVIxOtBJVr60y4NI=; b=dEbfTyzRatJGlBR35g1E830oS2JCMY2CsSqBVquOh9PwncsUcG1SD3S/gUyEHIzKsi 1dXE7zihPwBhbmAKL7tlI5QshS1kPGeRMl+oa0SzteLbtpp4IbBp5iKiJo2yyCmOlprr KF4XKDIO70Db2nrFcQTXOkcsyhF13I3SAs6gmb7cEYjcYM9M6T35a6yHh8ZdaTKOyIYh oG4dZGQmnz7UIg2GmFrTPxELDIgTp6cL6/hWT2YOfJSOpMeYicJxxnuSGSFJLx3z0GhJ kpDfKhihtcxs33EVjepCmxhEkIOaap0iNN8UcU4qgu7cgFrv2TkhW2c/D8ZKh1QXzihv FpaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=UkZcBXAu; 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 e26si2468967pfb.185.2018.04.24.23.53.16; Tue, 24 Apr 2018 23:53:30 -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=UkZcBXAu; 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 S1751318AbeDYGv7 (ORCPT + 99 others); Wed, 25 Apr 2018 02:51:59 -0400 Received: from mail-lf0-f44.google.com ([209.85.215.44]:37533 "EHLO mail-lf0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750943AbeDYGv4 (ORCPT ); Wed, 25 Apr 2018 02:51:56 -0400 Received: by mail-lf0-f44.google.com with SMTP id b23-v6so23880573lfg.4; Tue, 24 Apr 2018 23:51:56 -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=deTgewHoF+xkeUfMySaQ895CDn3NVIxOtBJVr60y4NI=; b=UkZcBXAu4zyr3i6l0dA4sDcegmwt3JVmF85u4Cb/U/AU04IxUl0oVb3U9ZSirXpCrr lcioeMAUjd14gh7OmoQHIi7DtGwOr1RujrKu1lkqrQEwm5+swfHv7/YqTN0aQUw2u0dl ng1C65c9CdbPbDiOzWn06qEQWaqqjo/Sa5VQYXMW1FKLUW0W5emyJbCLtpx+/Ij0C+6z i9nJci/Usf8CuWEqDuQOGcf1vu8gyi36Awu50SwxKPMWVBrkELBqe3qgCAXZMcmYr5w+ tQJ6OoVkbemH43SNbTPepCpQxFnMoHzNVqb8dFwRwljfkgUVtzRbqU7nRBLJX9yiHnMq /oUw== 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=deTgewHoF+xkeUfMySaQ895CDn3NVIxOtBJVr60y4NI=; b=Aj+U4g7LbEoWcMJ7vFBsV8ShfB2klbRkky37BUDvuBLzLhOWz4p8DpGGAIowm2VBUi AslKnkqf3lkjnBAoTaCSUezAh0VcuaFYu++KTikIKcf2XyakCVENuWcrlXH8kULgAAWS 59U1PNBDvdA91+2beB/snlEqgI3vah92oeC8cNqeb5Ed/e4XBPKySSb72qLiUPvglCge RegK5GH+j48p4oVwkMkizkBRpyuroEOEatLRIdOzUlgjR/b4AOQF4p17RooTSVDUkvGC AUbEsBKb3oNQLgN/F9YQo0SMAs18TB9yzNud9T5LEl7dADqjeVZChbPJ0BSIL74liLxv Grhg== X-Gm-Message-State: ALQs6tBzP905X+PCjy37tuKacmbZAzZMH19WdfE4cnjO1hDP1OEjcZic dNdd30wssfKawWKnTDATxjWBDQ7N X-Received: by 10.46.129.80 with SMTP id t16mr343933ljg.32.1524639115061; Tue, 24 Apr 2018 23:51:55 -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 h86-v6sm3735672lfl.73.2018.04.24.23.51.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 23:51:54 -0700 (PDT) Received: from johan by xi.terra with local (Exim 4.90_1) (envelope-from ) id 1fBEHK-0007jn-8a; Wed, 25 Apr 2018 08:51:46 +0200 Date: Wed, 25 Apr 2018 08:51:46 +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: <20180425065146.GH4615@localhost> References: <20180424163458.11947-1-johan@kernel.org> <20180425062659.GA5352@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180425062659.GA5352@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 Wed, Apr 25, 2018 at 08:26:59AM +0200, Pavel Machek wrote: > Hi! > > > This series adds a new subsystem for GNSS receivers (e.g. GPS > > receivers). > > > > While GNSS receivers are typically accessed using a UART interface they > > often also support other I/O interfaces such as I2C, SPI and USB, while > > yet other devices use iomem or even some form of remote-processor > > messaging (rpmsg). > > > > The new GNSS subsystem abstracts the underlying interface and provides a > > new "gnss" class type, which exposes a character-device interface (e.g. > > /dev/gnss0) to user space. This allows GNSS receivers to have a > > representation in the Linux device model, something which is important > > not least for power management purposes and which also allows for easy > > detection and (eventually) identification of GNSS devices. > > Actually... no, what you done is not GNSS subsystem. It is generic > subsystem for a link + some controls, typically for power. > > Yes, that setup is common for GPS receivers, but it is there also for > modems (droid 4: usb + gpios) and bluetooth dongles (n900: serial + > gpios). Those would be handled by other subsystems. The idea here is that eventually there may be more GNSS specific bits added, such as 1PPS support that I already mentioned. If someone is crazy enough to put a location service in the kernel with a more high-level interface (an in-kernel gpsd) they can try, but I'm more and more convinced that needs to remain in user space. I did also already mentioned however, that some hybrid approach may be doable, such as handling port setup over NMEA/UBX/SiRF from within the kernel. Johan