[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <5836F70A.9070109@nvidia.com>
Date: Thu, 24 Nov 2016 19:49:54 +0530
From: Laxman Dewangan <ldewangan@...dia.com>
To: Linus Walleij <linus.walleij@...aro.org>,
Mark Brown <broonie@...nel.org>
CC: Rob Herring <robh+dt@...nel.org>,
Stephen Warren <swarren@...dotorg.org>,
"thierry.reding@...il.com" <thierry.reding@...il.com>,
Mark Rutland <mark.rutland@....com>,
Alexandre Courbot <gnurou@...il.com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Joe Perches <joe@...ches.com>,
Jon Hunter <jonathanh@...dia.com>
Subject: Re: [PATCH V3 2/2] pinctrl: tegra: Add driver to configure voltage
and power of io pads
On Thursday 24 November 2016 07:41 PM, Linus Walleij wrote:
> On Wed, Nov 23, 2016 at 12:42 PM, Laxman Dewangan <ldewangan@...dia.com> wrote:
>
>> Here, we need the regulator handle which can support the other regulator
>> APIs.
>>
>> In some of platforms, we do not use some of the io-pins and on this case, we
>> do not connect the IO rail supply for these pins. So this is like a hardware
>> optional.
>>
>> If the IO pins are used then it need to have the proper regulator handle.
>> Missing regulator handle on DT will be like that IO pads are not used.
> OK I buy that argument, unless Mark (Brown) has comments.
>
BTW, I resolved this in different way in V4 which I sent today, if
regulator_get() succeed for dummy then regulator_get_voltage() failed
and if it failed then assume that it is dummy and just ignore the
further handling based on regulator.
So when we really need the configuration based on voltage, we must
supply the regulator handle.
Powered by blists - more mailing lists