From: Mark Brown <broonie@kernel.org>
To: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: linux-kernel@vger.kernel.org, Watson Chow <watson.chow@avnet.com>,
Liam Girdwood <lgirdwood@gmail.com>
Subject: Re: [PATCH 2/2] regulator: Add MAX20086-MAX20089 driver
Date: Thu, 6 Jan 2022 11:40:34 +0000 [thread overview]
Message-ID: <YdbVMqKt6iKa/pY+@sirena.org.uk> (raw)
In-Reply-To: <YdYoW2me4aHpJzfm@pendragon.ideasonboard.com>
[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]
On Thu, Jan 06, 2022 at 01:23:07AM +0200, Laurent Pinchart wrote:
> On Tue, Jan 04, 2022 at 04:33:54PM +0200, Laurent Pinchart wrote:
> > On Tue, Jan 04, 2022 at 02:16:33PM +0000, Mark Brown wrote:
> > > It is worrying that a regulator driver should need the interfaces for
> > > machines... the driver doesn't look like it actually does though.
> > I'll try to remove it.
> It compiles fine, but I won't be able to check the init data to figure
> out the initial enable GPIO state if I don't include machine.h, as
> that's where regulator_init_data is defined. Am I missing something ?
Right, forgot about that bit - it's more of an issue with the gpiod
conversion. You could just request always enabled but it's probably
fine to leave as is with looking at but not modifying the constraints.
> > > > +static const struct regmap_config max20086_regmap_config = {
> > > > + .reg_bits = 8,
> > > > + .val_bits = 8,
> > > > + .writeable_reg = max20086_gen_is_writeable_reg,
> > > > + .max_register = 0x9,
> > > > + .cache_type = REGCACHE_NONE,
> > > > +};
> > > No readback support?
> > I'll fix that.
> Actually I'm not sure what you mean here. All registers are readable,
> what's wrong with the above regmap_config ?
It's not *wrong* if that's the case, it just looks weird to only provide
writable but not readable.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2022-01-06 11:40 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-01-02 21:11 [PATCH 0/2] regulator: Add driver for Maxim MAX20086-MAX20089 Laurent Pinchart
2022-01-02 21:11 ` [PATCH 1/2] dt-bindings: regulators: Add bindings " Laurent Pinchart
2022-01-04 14:26 ` Mark Brown
2022-01-04 14:43 ` Laurent Pinchart
2022-01-04 14:49 ` Mark Brown
2022-01-02 21:11 ` [PATCH 2/2] regulator: Add MAX20086-MAX20089 driver Laurent Pinchart
2022-01-04 14:16 ` Mark Brown
2022-01-04 14:33 ` Laurent Pinchart
2022-01-04 14:47 ` Mark Brown
2022-01-05 23:07 ` Laurent Pinchart
2022-01-05 23:23 ` Laurent Pinchart
2022-01-06 11:40 ` Mark Brown [this message]
2022-01-05 6:29 ` kernel test robot
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=YdbVMqKt6iKa/pY+@sirena.org.uk \
--to=broonie@kernel.org \
--cc=laurent.pinchart@ideasonboard.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=watson.chow@avnet.com \
/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
all inboxes | Powered by JetHome®