Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3132417imu; Mon, 19 Nov 2018 11:07:12 -0800 (PST) X-Google-Smtp-Source: AFSGD/WaE0ZuXPhuRpkKOa5xpn8YsRQ2FYS3V0xcxpyFBxe0NGFd3hhDs6LpV66X0AAoOD8OnfXY X-Received: by 2002:a17:902:9f89:: with SMTP id g9mr13446131plq.214.1542654432197; Mon, 19 Nov 2018 11:07:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542654432; cv=none; d=google.com; s=arc-20160816; b=v9iCZihH9f2Ateacp1lxiz9DzhmruQCrKz41R0LyFcR6oM5Gef+JHVDOAZPaapyaA7 q/mSac2lnrNnajD/gkr6S1J1jo713uTSRPjyifu5FuYX5dGsNintsTSsQ0davQ3snnQ6 w74ROwHI8OH+5q/ihwvdz3IBiWD7CEJl23OZ0/5nO1TVPWFD6w4edP//rlbAYquupTkD 1iIHqgqzYLy7oAgIT47/thrZt8Q5LM+egTjF7nPJ64MIOdGue6+xBy/E58kCfe+On5a4 FjUpGri+oJ+cu69dKW887ebh3boL/Qopr+SSOW9xmVlgkvsOUR30YxijvhqFnosX7e3e WigA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=6KmSVF6Kp8ypANGJ8pZRT/WocflJ7opbU8Tj9pCfdFs=; b=UvoNSsHXhHN8sId6JYt5VseLe12jq655RtanHekRKzbXCaTHAmZIxxk6d/xEtGLS5I xW2bRLUr/Jx22jmlZEGIZ33gOvdKt4XFLYGw4Y0Pmzf9JP8d4xYDgMZcCmnsr/uwXE4c F5QlCWbvGVfoQXNw+LZr3ymG7/b7RrosoB/qClrNJkq0gAKXgEO3PFSe2CFiPEpMTV03 J+MyCb25sOJewwX9ItSuPJ61WNVrkFALfPBzMHXD/2526cUR6v3VwUzM08KLAMd6E6Zy 8AL5bapIrbB///kvX2VHe2KLnKPDgOj/8FunhxkIUGTuuCQKA0U1IUDyF2qO5eQFPQK+ BSlg== ARC-Authentication-Results: i=1; mx.google.com; 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 133si37844279pge.246.2018.11.19.11.06.57; Mon, 19 Nov 2018 11:07:12 -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; 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 S1730216AbeKTFa3 (ORCPT + 99 others); Tue, 20 Nov 2018 00:30:29 -0500 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.217]:13960 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726115AbeKTFa3 (ORCPT ); Tue, 20 Nov 2018 00:30:29 -0500 X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7wpz8NMGH/zowDCvpOU=" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 44.4 DYNA|AUTH) with ESMTPSA id c01a4cuAJJ5NFE6 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate); Mon, 19 Nov 2018 20:05:23 +0100 (CET) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH 0/5] gnss: sirf: add support for w2sg0004 + lna From: "H. Nikolaus Schaller" In-Reply-To: <20181119194414.1c7d6887@aktux> Date: Mon, 19 Nov 2018 20:05:23 +0100 Cc: Johan Hovold , Rob Herring , Mark Rutland , devicetree , LKML , Discussions about the Letux Kernel Content-Transfer-Encoding: 7bit Message-Id: <7506654C-2601-4252-BB30-0DE9AF692309@goldelico.com> References: <20181118215801.12280-1-andreas@kemnade.info> <3487514B-E546-4F11-8C0A-F5B4A8114376@goldelico.com> <20181119194414.1c7d6887@aktux> To: Andreas Kemnade X-Mailer: Apple Mail (2.3124) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, > Am 19.11.2018 um 19:44 schrieb Andreas Kemnade : > > Hi, > > On Mon, 19 Nov 2018 09:22:59 +0100 > "H. Nikolaus Schaller" wrote: > >> Hi, >> >>> 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. Well, this IMHO would assume the gnss receiver is a bus master... > The whole thing > should probably not be overdesigned, but it does not make sense that > every gnss chip driver has some lna logic. > Maybe the regulator should just be stored in the struct > gnss_device and then drivers/gnss/core.c takes care. Probably yes, but likely not difficult to refactor and generalize later if users of other chips report a similar need. More important is to get upstream support for the gta04 with this chip. BR, Nikolaus