Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3484419imu; Fri, 30 Nov 2018 00:46:15 -0800 (PST) X-Google-Smtp-Source: AFSGD/Wg2iPskE12C1aVVWuAZrhYKXj722af1AR00I8pHT8uqomSzJa8VubgIlQUmHwtMInmd6T1 X-Received: by 2002:a62:46d0:: with SMTP id o77mr4808548pfi.172.1543567574985; Fri, 30 Nov 2018 00:46:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543567574; cv=none; d=google.com; s=arc-20160816; b=oyrWZ5JnMYN8R2GuilAenkZRZBNIeIt4hEivXbZENZFRkNmySy8bNKxR8ea8C33RAw PvRH/BMHKYd60Ap1/azun+J4+wYeLfpEDOLH2jHLtaA8uP5lBuD2cldjyHPwxsEYrAXs umTPOfCxtzFlp9XSppYAdoixW4Rx/9+KWrTBvb6XKFoetzxxx4K9eWYSzzgD9DD1qhzp pHu1qVXUZGGIzy6bAdHa9iVy5/V1Gr1A7iQZQdsMtA/jvSWoIj92W9kdaIkB2tqaBNkp fy3zO226TwJKFj8ANqgfQDNhf+xJiAxf7+0Ef2MIx7TLfbqr4SxRX61mkEvJye1EFNMn FFfA== 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=Et5GmUg3Xo0wP+FAV7UZWY6EcLUJF58kjADzJGZYgjE=; b=utbeLBwX0XPhjwTkYJwUp7HT0KiR+r1CzUJE9vWtXDXajPOEvsUnz8Z3knz0zmC0Il 9Kpi9t1aoIETUX/iIQbl4mr7OlO5MRGUuZWlDJfMxbJSKBAFaAMe9bizqBVXOFMjW+oy pvwtBlZPk7C5oTGcI2gLE7vWOe6sZP15FFPZJun50zizITBZ4v7NPIZCVeq5RvAYM/Kh 3PhRCP2UpsPlxRHLrESjKd8a/BugJSQzMeNRDZSQjgx7yThMPWct7BTx70/yrI9liJrP bTnj6NeGXq02xrHXUGVu0PHPE8GND7cLIt1zyJbXVlph1cfZ0Ffwi4W+HWReZRwirHJH xJnA== 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 c22si4287511pgb.254.2018.11.30.00.46.00; Fri, 30 Nov 2018 00:46:14 -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 S1727050AbeK3Tvw (ORCPT + 99 others); Fri, 30 Nov 2018 14:51:52 -0500 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:36153 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726572AbeK3Tvw (ORCPT ); Fri, 30 Nov 2018 14:51:52 -0500 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id D6034808FF; Fri, 30 Nov 2018 09:43:12 +0100 (CET) Date: Fri, 30 Nov 2018 09:43:15 +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: <20181130084315.GA25587@amd> References: <20181118215801.12280-1-andreas@kemnade.info> <20181118215801.12280-5-andreas@kemnade.info> <20181127180356.GA32751@localhost> <20181130073804.1e57226f@kemnade.info> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="3V7upXqbjpZ4EhLz" Content-Disposition: inline In-Reply-To: <20181130073804.1e57226f@kemnade.info> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --3V7upXqbjpZ4EhLz Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri 2018-11-30 07:38:04, Andreas Kemnade wrote: > Hi, >=20 > On Tue, 27 Nov 2018 19:03:57 +0100 > Pavel Machek wrote: >=20 > > Hi! > >=20 > > > Devices might have a separate lna between antenna output of the gps > > > chip and the antenna which might have a separate supply =20 > >=20 > > Might have. > >=20 > > > @@ -340,6 +349,12 @@ static int sirf_probe(struct serdev_device *serd= ev) > > > goto err_put_device; > > > } > > > =20 > > > + data->lna =3D devm_regulator_get(dev, "lna"); > > > + if (IS_ERR(data->lna)) { > > > + ret =3D PTR_ERR(data->lna); > > > + goto err_put_device; > > > + } > > > + =20 > >=20 > > But it is not optional in the code. Probably should be? >=20 > well, if it no lna regulator is defined in the dtb, the regulator > framework will return a dummy Aha, did not know that detail. It is ok, then... > would not do that and would require more error checking in the code. > But if there is some rule which says that devm_regulator_get_optional() > should be used here, I can of course change that. > Before sending a v2, is that the only issue here? Quick look did not reveal anything else. Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --3V7upXqbjpZ4EhLz Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAlwA+CMACgkQMOfwapXb+vKJxACgoJeecgtF1KtFCjEppOxKBsxy OIUAn1ov1xofhbf3qXKyY8ipAR43iEIe =3odg -----END PGP SIGNATURE----- --3V7upXqbjpZ4EhLz--