All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stephen Boyd <sboyd@kernel.org>
To: Phil Reid <preid@electromag.com.au>,
	linux-clk@vger.kernel.org, mturquette@baylibre.com
Subject: Re: [PATCH 1/1] clk: clk-cdce925: Add regulator support
Date: Tue, 25 Jun 2019 20:46:37 -0700	[thread overview]
Message-ID: <20190626034638.369CA20659@mail.kernel.org> (raw)
In-Reply-To: <1bf34693-a4e9-bbdd-9066-ff5dc5c6ce32@electromag.com.au>

Quoting Phil Reid (2019-06-25 18:06:29)
> On 26/06/2019 06:54, Stephen Boyd wrote:
> > Quoting Phil Reid (2019-06-13 20:52:43)
> >> +               return PTR_ERR(regulator);
> >> +
> >> +       err = regulator_enable(regulator);
> > 
> G'day Stephen,
> 
> Thanks for looking at this.
> > The regulator is never turned off though. Are these regulators really
> > just always on regulators that don't need to be managed by this driver?
> > 
> For our system the regulator needs to be enabled before we try talking to the chip.
> Funny that.
> Unloading the driver will disable the regulator thru the devm call to
> cdce925_regulator_disable

Ok. Is it a regulator that is expected to just always be on though? Or
does the datasheet for this device indicate that these supplies can be
turned on and off when the device isn't in use?

> 
> > +     return devm_add_action_or_reset(dev, cdce925_regulator_disable,
> > +                                     regulator);
> > +}
> 
> In the future suspend/resume support could be added to power the device down.
> The system I have doesn't support suspending thou.
> 
> > Also, is there an update to the DT binding somewhere?
> > 
> No I didn't update that.
> It seems a bit adhoc if supply reference are including in the DT docs.
> I can add something if your happy with the pathc in general.
> 

Yes, the binding needs an update to list out the supplies. If they're
not always going to be enabled because they're controlled supplies in
the design then it makes sense to me to add them to the binding and use
them from this driver so that things operate properly.


  reply	other threads:[~2019-06-26  3:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-14  3:52 [PATCH 1/1] clk: clk-cdce925: Add regulator support Phil Reid
2019-06-25 22:54 ` Stephen Boyd
2019-06-26  1:06   ` Phil Reid
2019-06-26  3:46     ` Stephen Boyd [this message]
2019-06-26  4:03       ` Phil Reid
2019-06-26  4:10         ` Stephen Boyd

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190626034638.369CA20659@mail.kernel.org \
    --to=sboyd@kernel.org \
    --cc=linux-clk@vger.kernel.org \
    --cc=mturquette@baylibre.com \
    --cc=preid@electromag.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.