Received: by 10.223.185.116 with SMTP id b49csp4627172wrg; Mon, 26 Feb 2018 23:05:52 -0800 (PST) X-Google-Smtp-Source: AH8x227AL1g/MovO0Fq2yuaY7nBjuRfHlceBXl7QD0OAdX9Qu4e81BkWpyK3NhtFqQu01wVIrnWN X-Received: by 2002:a17:902:aa8e:: with SMTP id d14-v6mr12844131plr.94.1519715152657; Mon, 26 Feb 2018 23:05:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519715152; cv=none; d=google.com; s=arc-20160816; b=zisOVcMed0zmg1kdk2R3puG9JmyV3R5pFaURmDKnkkSVP+Ia5b1Y1gkdaMnpsehw/m TfZxnj7i8f/QKVYFzw/PwzhDlbgQ7afkuYitWJzB0o90W2mQTp8soVdSdGNUS5681zEy ckmA6HjnHfgP1iaY4ce+JhZQqUD5Cr76vfTpL6M33B9rKPPUx4oyhCfgmbX6n/2sYlM7 KridgSSjJkfou4BQHxw5RgTPUkKEfNSdYvQ31TI9u/qYt1GbETrqypBk8Tj2xbJLdRmj cy6/LzhFw1EsuuYo5IXmCtzJAUQ4/wiiz6ucCwfHOFAgGrBfkjVf2Mcw3WW2PYvZY6I5 zlxw== 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=kFy6x7ArzeMpbWDRmUo6gWP2WSZ6+qhyb5BzjX0f96w=; b=hG5HGvvtWSNDL/3hqewD956bf189u95r8c1co6wS5ZTtAlbpHByXie+kC+rgqDxxi4 jVR00oaWviOd10q8TjAUpSiZeKjbnMqkNgFloe0ynRiWULVeTfxx4EITjAHMA8ehLDOh lKw/o1vd9sSMipBfshPR3CRAg85vsmxkgciSGgCtAVmTZ+l9jIKlJaoFm9p1yBShFCbX 0Wv/TO47AEPgmOLH1F11It+KWqUs1voSk6NAap5Ve6EOSo8XLJlZxK2fD/6JaC36rxEN FKT69SesUQHPrJzT5/4YdgWg/3Kl/uYWQ2hTmNkWuuSJS6pdZh+Dy5Ze3wDGO3m9sE5N GkQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gwNoV91C; 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 a13si8102249pfc.255.2018.02.26.23.05.37; Mon, 26 Feb 2018 23:05:52 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=gwNoV91C; 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 S1752049AbeB0HEV (ORCPT + 99 others); Tue, 27 Feb 2018 02:04:21 -0500 Received: from mail-lf0-f51.google.com ([209.85.215.51]:38770 "EHLO mail-lf0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbeB0HES (ORCPT ); Tue, 27 Feb 2018 02:04:18 -0500 Received: by mail-lf0-f51.google.com with SMTP id i80so6626990lfg.5; Mon, 26 Feb 2018 23:04:17 -0800 (PST) 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=kFy6x7ArzeMpbWDRmUo6gWP2WSZ6+qhyb5BzjX0f96w=; b=gwNoV91CywLr1Ynzytmk/sQT0tf6TFz/SAZybgrMh1JtX2war3EKgEvDEcUHqvqC/D zRoC0cIe3muUkwGYrdIr//myo4iZaAcdYrVlLqYvbBAuua56rRqZJyst1x9yoTgUjcrd IUuVyXX+ShP8WWMREXt+irMCITxHz46/9tTtxLF7tlCuM5fh1M1zIU8zv6Povup+KMvA pLFxqeO55e30FyjPD4NHRQMYkLcswMmMSdxPo3Z0M+G4hYHAASLeDZw0Ov5CVnUspdCE r/pRGJPyacBwgOSz3kQSLVUQ3i1NOh6Y6NbjkOhLxAjVDL4EidM2I3xBNw5gr1HjOkg8 jqbA== 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=kFy6x7ArzeMpbWDRmUo6gWP2WSZ6+qhyb5BzjX0f96w=; b=k8aDaiWe7SQJ/+So/9p0c40Z1hUp3M6vqNr6+tazKilDfuoUiguJjfjJnFLX4iDnvJ wPI1SF0rCN6mJZ0jqe03DQLdizM4DGGNyRd6+IO9W3Q70ed35XRXr9ECKINCv+2MHr2n J0pPZRb1dCHb4zPNSgzLBYyJ/pF3GzwdD3LcH7n/QOQrjOm+OxGC9zp6krivd7U0ekjD rHhpd3/asn7qVhofUj+Mqjoi9DqpkXw/JKaOwELQaV+DkPOHZXv1A0s+aJ2Ua/+k3o7a MgMN+9cUcMdHE3OefAF5OKMeg/u2V6iXs7Pk7gtfAB4ocdu8TmhwrUVIFHztxcyqlE9h 3qKw== X-Gm-Message-State: APf1xPCZjumV/TIKspSEfX6vevBgFPqxhRhSHiVFPitMAk/2cFstR2JI kr27M46l0n/VrlYEvq19Mcw= X-Received: by 10.25.43.136 with SMTP id r130mr9623365lfr.48.1519715056928; Mon, 26 Feb 2018 23:04:16 -0800 (PST) Received: from xi.terra (c-8bb2e655.07-184-6d6c6d4.cust.bredbandsbolaget.se. [85.230.178.139]) by smtp.gmail.com with ESMTPSA id h7sm2386626ljf.37.2018.02.26.23.04.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Feb 2018 23:04:15 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.89) (envelope-from ) id 1eqZJ9-0006YB-U6; Tue, 27 Feb 2018 08:04:15 +0100 Date: Tue, 27 Feb 2018 08:04:15 +0100 From: Johan Hovold To: Pavel Machek Cc: Johan Hovold , "H. Nikolaus Schaller" , Mark Rutland , DTML , Thierry Reding , Jonathan Cameron , Arnd Bergmann , Tony Lindgren , Greg Kroah-Hartman , Russell King , Linux Kernel Mailing List , Rob Herring , Kevin Hilman , =?iso-8859-1?Q?Beno=EEt?= Cousson , kernel@pyra-handheld.com, Discussions about the Letux Kernel , linux-omap , Andreas =?iso-8859-1?Q?F=E4rber?= , Linux ARM Subject: Re: [Letux-kernel] [PATCH v5 3/5] misc serdev: Add w2sg0004 (gps receiver) power control driver Message-ID: <20180227070415.GB18666@localhost> References: <5494ad34b39a6c62601e3747440268dfb3be7d5a.1512114576.git.hns@goldelico.com> <20171222124427.GI3374@localhost> <91850CC3-B280-4701-9D07-96AFF3A79A6F@goldelico.com> <90F9A8E4-035A-4A9E-8AAB-757491D63E69@goldelico.com> <20180112153903.GB5992@localhost> <20180212152618.GC13962@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180212152618.GC13962@amd> User-Agent: Mutt/1.7.2 (2016-11-26) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 12, 2018 at 04:26:18PM +0100, Pavel Machek wrote: > Hi! > > > > Let's restart this discussion and focus on the main roadblock (others > > > are minor details which can be sorted out later). > > > > > > 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? > > > > Or even more fundamentally, does this belong in the kernel at all? > > Yes, it does. But not necessarily in its current form. > > Now, if we'd ever have a proper GPS framework that handled everything in > > kernel space (i.e. no more gpsd) then we would be able to write kernel > > drivers that also take care of PM. But perhaps that's unlikely to ever > > be realised given the state of things (proprietary protocols, numerous > > quirky implementations, etc). > > That is what needs to happen. > > > The kernel is probably not the place to be working around issues like > > that, even if serdev at least allows for such hacks to be fairly > > isolated in drivers (unlike some of the earlier proposals touching core > > code). > > Oh, kernel is indeed right place to provide hardware abstraction -- > and that includes bug workarounds. Right, at least when such hacks can be confined to a driver and not be spread all over the place. Johan