lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181130084315.GA25587@amd>
Date:   Fri, 30 Nov 2018 09:43:15 +0100
From:   Pavel Machek <pavel@....cz>
To:     Andreas Kemnade <andreas@...nade.info>
Cc:     johan@...nel.org, robh+dt@...nel.org, mark.rutland@....com,
        devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
        Discussions about the Letux Kernel 
        <letux-kernel@...nphoenux.org>
Subject: Re: [PATCH RFC 4/5] gnss: sirf: add a separate supply for a lna

On Fri 2018-11-30 07:38:04, Andreas Kemnade wrote:
> Hi,
> 
> On Tue, 27 Nov 2018 19:03:57 +0100
> Pavel Machek <pavel@....cz> wrote:
> 
> > 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?
> 
> 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
-- 
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Download attachment "signature.asc" of type "application/pgp-signature" (182 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ