Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp139588imu; Tue, 27 Nov 2018 10:06:51 -0800 (PST) X-Google-Smtp-Source: AFSGD/W56obg1N8fssuFgawB/HqlJLxMsOWY1gZEpQEV3o4/Kde8nFo1Wb2M5XIZwkUutqKdcl4X X-Received: by 2002:a63:b81a:: with SMTP id p26mr30701983pge.433.1543342011580; Tue, 27 Nov 2018 10:06:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543342011; cv=none; d=google.com; s=arc-20160816; b=rOREmk2mUsMM5EQ+w4Z8EUlK6EnJ6t3a9BT+iizYCMIcoldiSFAQa9caHgUrZpBqSv lgI5zV7GlQoAUZZ1cboi9HDV6jmdPePO7yhom/c3TXy5CJTYU3+Aaye7yUJUy+QC2JEl GclTpJGCAW7hLTvBUJvFPijgGl82uHlRgTpaeLoAOpGaZeFpTHd6mBl5yO/BcY39TcFl yq1w0Bnv0Q8+mlupE1MWgCHtzbXw5VLTxy90IOtPxHdfHI6loQzMeEEi20UHd49HZ1Za rns6Clhh04z7k+BGGfj2OHr3TwDeU2RpwIiCB4i5ewkuCARgadmyQMeL/+pwh2bloz/2 WcCQ== 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; bh=t5Cqc+loPUG2Qtehuq0ULtENKu3hV3TrSpLiG/8cHao=; b=T5vU9Z+ZL9VycJGqcPVmss4bPG6d7W8+0pVsFxbauC10esYy595gSdS4vgYdcTFmgS csIC+Ge60Y5mLqSmu3q7DWQFS5BENJeofJ7Mhw+c2fl3LJpssGX25bR3FvZLLc1N0EWc gUYRDIcy3u4pVR1/Xv+5CM66zvEdni+gcmWJjHDHsaqzUp3v+Aons4HDtqc2hjFYTpOx xTuPl1KJfzkY1KcZgXa5LoMBp3qDVe7Xoq/tnP2CbbZIHrszpheh8hsVWnrgFx98K7lb ziQxqtzsTZYA9ILOjAFsva4fcW1Hcpao7d1B8Z/PUlGJ95S447cBqMkOTl+MXKPmHFqT mHCg== 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 q16si3949321pgh.185.2018.11.27.10.06.06; Tue, 27 Nov 2018 10:06:51 -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 S1732152AbeK1FCs (ORCPT + 99 others); Wed, 28 Nov 2018 00:02:48 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:37586 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732079AbeK1FCr (ORCPT ); Wed, 28 Nov 2018 00:02:47 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id AA0E9809E9; Tue, 27 Nov 2018 19:04:00 +0100 (CET) Date: Tue, 27 Nov 2018 19:03:57 +0100 From: Pavel Machek To: Andreas Kemnade Cc: johan@kernel.org, robh+dt@kernel.org, mark.rutland@arm.com, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Discussions about the Letux Kernel Subject: Re: [PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna Message-ID: <20181127180356.GA32751@localhost> References: <20181118215801.12280-1-andreas@kemnade.info> <20181118215801.12280-5-andreas@kemnade.info> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181118215801.12280-5-andreas@kemnade.info> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! > Devices might have a separate lna between antenna output of the gps > chip and the antenna which might have a separate supply Might have. > @@ -340,6 +349,12 @@ static int sirf_probe(struct serdev_device *serdev) > goto err_put_device; > } > > + data->lna = devm_regulator_get(dev, "lna"); > + if (IS_ERR(data->lna)) { > + ret = PTR_ERR(data->lna); > + goto err_put_device; > + } > + But it is not optional in the code. Probably should be? -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html