From: Tony Lindgren <tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
To: Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Liam Girdwood <lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Marcel Partap <mpartap-hi6Y0CQ0nG0@public.gmane.org>,
Michael Scott
<michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org>
Subject: Re: [PATCH] regulator: cpcap: Add basic regulator support
Date: Tue, 31 Jan 2017 14:09:53 -0800 [thread overview]
Message-ID: <20170131220953.GF7403@atomide.com> (raw)
In-Reply-To: <20170131211256.l3e53y2mkzylfjnw-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
* Mark Brown <broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org> [170131 13:14]:
> On Mon, Jan 30, 2017 at 04:12:41PM -0800, Tony Lindgren wrote:
> > + error = regmap_update_bits(rdev->regmap, rdev->desc->enable_reg,
> > + rdev->desc->enable_mask,
> > + rdev->desc->enable_val);
> > + if (error)
> > + return error;
> > +
> > + if (rdev->desc->enable_val & CPCAP_REG_OFF_MODE_SEC) {
> > + error = regmap_update_bits(rdev->regmap, regulator->assign_reg,
> > + regulator->assign_mask,
> > + regulator->assign_mask);
> > + if (error)
> > + return error;
> > + }
>
> What does this second register bit do?
My guess is that it triggers regulator idle modes in the PMIC based
on the SoC off mode. There's no documentation for this thing..
I've just kept what the Motorola Linux kernel tree does here and added
some comments to CPCAP_REG_OFF_MODE_SEC.
I'll address the rest of the comments and post v2, thanks for looking.
Regards,
Tony
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2017-01-31 22:09 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-31 0:12 [PATCH] regulator: cpcap: Add basic regulator support Tony Lindgren
2017-01-31 21:12 ` Mark Brown
[not found] ` <20170131211256.l3e53y2mkzylfjnw-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>
2017-01-31 22:09 ` Tony Lindgren [this message]
[not found] ` <20170131220953.GF7403-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org>
2017-01-31 23:13 ` Mark Brown
2017-02-01 17:14 ` Rob Herring
2017-02-02 23:36 ` Tony Lindgren
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=20170131220953.GF7403@atomide.com \
--to=tony-4v6ys6ai5vpbdgjk7y7tuq@public.gmane.org \
--cc=broonie-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=devicetree-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lgirdwood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=michael.scott-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org \
--cc=mpartap-hi6Y0CQ0nG0@public.gmane.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).