Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp9595888imu; Wed, 5 Dec 2018 07:20:16 -0800 (PST) X-Google-Smtp-Source: AFSGD/X4bNYNLMTvKdCxtG7oKTxpIyoXP+uFXY6u1XTUqVk3JwtSsc+N0COa5I+j1IT2OKoNbUjl X-Received: by 2002:a62:2cf:: with SMTP id 198mr25027389pfc.67.1544023216543; Wed, 05 Dec 2018 07:20:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544023216; cv=none; d=google.com; s=arc-20160816; b=GboGa8r1zHkGxYtg085oH3dRW75gIvFTIU+2Le8YL7jW1qtLvKDs8KpRdaogXiyHQy 7QYdlsITk+wcHetzyOfc43xgWDGnImiEH9GJhp/h9ySFADJBxhwSvsODpIwvelP6FpRz V2zAk9ZCNwEgMqBlGTz1Tpr9dleP0zA/86cb50k7303B/s04rWVceajZX05yAihgwBju jNRKPRBv65ZirHjBUAGz2GcA/q9FMDqTogb45nxw3boig/DDD5rPM4TcW41ly6pX6lYB +rXIjlxC/WFkDKMUQEf+JnkpHROg9QvVLFfTXVi+P7Zr/XDPzvYnlYBSRwOuqcvxVzO9 8oIQ== 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; bh=gpOr2zq67oHOcIG4Mz4a0XE2KlQn4N9TXqBHQHbAwD0=; b=0IgCsCW1WlbxfAWs4J6XaRXyzQaCbKS4lUSqLbSs6/GGNHb2uDLuTwEdhERzHXe0t6 iDgF9s80YliVP21KKuvzaZK90qwRzCFbmFRGE87PVcSl7YAhmRvWr+e8UF/OUUqtaBrJ sjEYJIhdeccdFx42hpwc5+gp97eie4W7YBblzaZ+hzV3pjfOcMIu+HbPlJrxKl6dyCJ4 K47M2xhcS9dhs0cjK3ZHYcRkRhnFXdse5fTYI/f7sljS0mVKMwHyNrbxkCyVUHQNyyAd 3hBcqYV6NXTLaUed1TWlPCcXa2kTwaxYVDhUlY5Pvo1HRIcnxNZvRM7dpr2MRFzU4E58 l1IA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=EE7rh61V; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v75si20054911pfd.157.2018.12.05.07.20.01; Wed, 05 Dec 2018 07:20:16 -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=EE7rh61V; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728011AbeLEPTR (ORCPT + 99 others); Wed, 5 Dec 2018 10:19:17 -0500 Received: from mail-lj1-f193.google.com ([209.85.208.193]:42067 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727103AbeLEPTQ (ORCPT ); Wed, 5 Dec 2018 10:19:16 -0500 Received: by mail-lj1-f193.google.com with SMTP id l15-v6so18670583lja.9; Wed, 05 Dec 2018 07:19:15 -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=gpOr2zq67oHOcIG4Mz4a0XE2KlQn4N9TXqBHQHbAwD0=; b=EE7rh61VAJCshGniY87cHz99O76KH0FhStcFOT/xXjD5hnSKI9pbDKfJW9Slrexg52 MvGW97bJg0ZrLs3ZeyRkCjxCPkNN+Rn6miVyMa71vWZ9GbK4Kgc5T9LGJSRhR4vYioGh ed3htR81sPFJNdyctFQUGfg81TQU4AZaqvZ5GZ/UF+aAZoWCpqfIqeLWd6jm50QsFtYB bsotS9DIajPGfkBb+uDSknnEfwFqvFZZYV085HriGHJy5vl4aEeBBPIQxpO7B49zLqa6 897dnduW6TSHTiAhP6PlN98FBmqaeSqNyPQvJ141/iBJ34tnjPPDA1wKSYMzC9hTi8gu 4hqg== 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=gpOr2zq67oHOcIG4Mz4a0XE2KlQn4N9TXqBHQHbAwD0=; b=QMYIV58stJVQp7R3h9dC8jfkmeoNS7G6tqWQ1LY4fvU6SjyXQbZNPp18VEL5lRt/wD 5iO285hIB3tiz7l1L40CxyyC2QKDmEEPQvSS6OE74Lf4tiu1yurfOYeKHLt8gFi4mPUR 3DSBY8KOJXAmVRtz8Vz3kh+nYBwVputjI2BNYlDbBNu9dIz156r9l+JPQEvkB9jLwp2j EjC3W6mqd7AFyzqoB+H1tGWlfJI8ePtOjZPeF9u7mN6PEFntuZQTOHdnOlhfcwSBb49S RDvn06iVS95m5k0DjRjO6QF0bMrUKOrT1OfWqLFSsC0dUQiKH69QnsvmYlv8hHEHmpgR 2WJg== X-Gm-Message-State: AA+aEWYxcQbmBt6zBfCK3tmxvXKzmVj3iMCKzbzXdVDMC/BRsKzSveUc E8BMOT5aFqYYOliJVLCN3flLym78 X-Received: by 2002:a2e:5b1d:: with SMTP id p29-v6mr15793793ljb.176.1544023154203; Wed, 05 Dec 2018 07:19:14 -0800 (PST) Received: from xi.terra (c-74bee655.07-184-6d6c6d4.bbcust.telenor.se. [85.230.190.116]) by smtp.gmail.com with ESMTPSA id x11sm4007616lfd.81.2018.12.05.07.19.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 07:19:13 -0800 (PST) Received: from johan by xi.terra with local (Exim 4.91) (envelope-from ) id 1gUYxI-000473-1F; Wed, 05 Dec 2018 16:19:16 +0100 Date: Wed, 5 Dec 2018 16:19:16 +0100 From: Johan Hovold To: Andreas Kemnade Cc: "H. Nikolaus Schaller" , Johan Hovold , Rob Herring , Mark Rutland , devicetree , LKML , Discussions about the Letux Kernel Subject: Re: [Letux-kernel] [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna Message-ID: <20181205151916.GJ15689@localhost> References: <20181118215801.12280-1-andreas@kemnade.info> <3487514B-E546-4F11-8C0A-F5B4A8114376@goldelico.com> <20181119194414.1c7d6887@aktux> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181119194414.1c7d6887@aktux> User-Agent: Mutt/1.11.1 (2018-12-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 19, 2018 at 07:44:14PM +0100, Andreas Kemnade wrote: > On Mon, 19 Nov 2018 09:22:59 +0100 > "H. Nikolaus Schaller" wrote: > > > Am 18.11.2018 um 22:57 schrieb Andreas Kemnade : > > > > > > Here is another chapter of the story to get gta04 gnss power > > > management into the mainline kernel. > > > There is a w2sg0004 without wakeup line in there, so power state > > > can only be determined indirectly by looking at the serial data lines. > > > Then there as also an lna which needs to be powered for real gps > > > reception. That part needs probably more discussion, since it might > > > be an idea to have it more generalized since it has nothing todo > > > with the chip itself. > > > > On the other hand if we follow the "SoC is the spider in the net" > > way of looking at DTS hierarchy, we have the uart as a child of the > > SoC and the gnss receiver as a serdev child of the UART. The LNA > > is even one step more distantly connected to the gnss. So it makes > > sense to me to have it as a property/reference of the gnss chip's > > DTS record which is a sibling of the compatible records. So the only > > place where it can be reasonably processed is the driver. > > > Or the lna is a child of the gnss receiver. The whole thing > should probably not be overdesigned, but it does not make sense that > every gnss chip driver has some lna logic. Did you mean "does make sense" here? > Maybe the regulator should just be stored in the struct > gnss_device and then drivers/gnss/core.c takes care. Maybe eventually, but keeping it per driver is fine for now. As you say above, this really isn't part of the chip itself, and therefore should probably be a generic gnss property as it could be required for any receiver (in principle). But we still need driver support for coordinating it with the rest of the receiver power management, so adding it to drivers as need arises seems reasonable. Thanks, Johan