From: broonie@opensource.wolfsonmicro.com (Mark Brown)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] can: flexcan: add a regulator for transceiver
Date: Tue, 3 Jul 2012 17:56:35 +0100 [thread overview]
Message-ID: <20120703165635.GV29030@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20120703152813.GI22705@S2101-09.ap.freescale.net>
On Tue, Jul 03, 2012 at 11:28:15PM +0800, Shawn Guo wrote:
> On Tue, Jul 03, 2012 at 03:46:47PM +0100, Mark Brown wrote:
> > No, I really do mean a fixed voltage regulator. Dummy regulators should
> > essentially never be used in production.
> In that case, my patch may need to stay unchanged. Some systems have
> a supply controlled by gpio and we need to have it be a Linux regulator
> to switch it, while other systems have the supply non-switchable which
> can be reasonably invisible to software. That said, the regulator is
> optional and the failure of devm_regulator_get should not make the
> driver probe fail.
No, really.
> I guess your suggestion here is to make the regulator mandatory for
> the driver, which means those non-switchable supplies have to be
> also defined as Linux regulators for every single system. I'm not
> sure we want to do that just for saving a regulator pointer check.
If we go down that route what we need to do is to go through and remove
all error checking for failure to get regulators and make the regulator
API silently handle this since exactly the same thing applies to almost
every supply in the system.
What we shouldn't be doing is open coding this stupidity in every single
regulator API user, that's just a pointless waste of everyone's time.
prev parent reply other threads:[~2012-07-03 16:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-03 12:46 [PATCH] can: flexcan: add a regulator for transceiver Shawn Guo
2012-07-03 13:07 ` Mark Brown
2012-07-03 14:18 ` Shawn Guo
2012-07-03 14:46 ` Mark Brown
2012-07-03 15:28 ` Shawn Guo
2012-07-03 16:56 ` Mark Brown [this message]
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=20120703165635.GV29030@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).