From: Lee Jones <lee.jones@linaro.org>
To: Mark Brown <broonie@kernel.org>
Cc: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>,
Charles Keepax <ckeepax@opensource.wolfsonmicro.com>,
linus.walleij@linaro.org, gnurou@gmail.com,
alsa-devel@alsa-project.org, tiwai@suse.de,
patches@opensource.wolfsonmicro.com, lgirdwood@gmail.com,
linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org
Subject: Re: [PATCH 1/3] mfd: arizona: Add support for CS47L24
Date: Tue, 18 Nov 2014 11:34:01 +0000 [thread overview]
Message-ID: <20141118113401.GW24004@x1> (raw)
In-Reply-To: <20141117150107.GF2722@sirena.org.uk>
On Mon, 17 Nov 2014, Mark Brown wrote:
> On Mon, Nov 17, 2014 at 12:54:33PM +0000, Richard Fitzgerald wrote:
> > On Mon, Nov 17, 2014 at 12:16:48PM +0000, Lee Jones wrote:
>
> > > Looks like I was a little hasty with my comments. However 8000 lines
> > > over 4 platforms just to describe which registers are readable is all
> > > a little bit grim. Is there any way you can use ranges instead of
> > > listing every single register on the chip? How many gaps are there?
>
> > It's debatable. Ranges would be possible but there are a lot of gaps.
> > Personally, speaking as someone who has to maintain these drivers, I
> > like that fact that I can look at this file and see exactly which registers
> > are readable and volatile because they are all explicitly listed. It's also
> > useful that the files are searchable for specific registers.
>
> > I'll point Charles at this to get his opinion.
>
> It's probably also worth pointing out that while ranges do compress the
> data a bit they make it harder to answer questions like "is this
> register mapped properly" since the question becomes "is the numeric
> value of this symbol between the numeric values of any of these other
> pairs of symbols we have listed here". I generally find it harder to
> review drivers using ranges since when checking that things are mapped
> voatile or whatever you have to do lookups like that.
Very well, thanks Mark and Charles.
How about we go back to my original idea then and chucking all of
these massive tables into a nice header file in include?
--
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2014-11-18 11:34 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 16:52 [PATCH 0/3] Driver for Cirrus Logic CS47L24 codec Richard Fitzgerald
2014-11-11 17:03 ` [PATCH 1/3] mfd: arizona: Add support for CS47L24 Richard Fitzgerald
2014-11-12 9:34 ` Charles Keepax
2014-11-11 17:04 ` [PATCH 2/3] gpio: " Richard Fitzgerald
2014-11-11 17:16 ` Mark Brown
2014-11-17 6:41 ` Linus Walleij
2014-11-17 9:58 ` Richard Fitzgerald
2014-11-17 15:03 ` Mark Brown
2014-11-11 17:05 ` [PATCH 3/3] ASoC: arizona: Add initial CS47L24 codec driver Richard Fitzgerald
2014-11-18 14:51 ` Mark Brown
2014-11-18 17:34 ` Richard Fitzgerald
2014-11-11 17:15 ` [PATCH 1/3] mfd: arizona: Add support for CS47L24 Richard Fitzgerald
2014-11-13 10:12 ` Lee Jones
2014-11-13 16:24 ` Richard Fitzgerald
2014-11-13 16:40 ` Charles Keepax
2014-11-17 12:16 ` Lee Jones
2014-11-17 12:54 ` Richard Fitzgerald
2014-11-17 15:01 ` Mark Brown
2014-11-18 11:34 ` Lee Jones [this message]
2014-11-18 13:10 ` Richard Fitzgerald
2014-11-17 15:13 ` Charles Keepax
2014-11-18 15:00 ` Mark Brown
2014-11-19 16:51 ` Lee Jones
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=20141118113401.GW24004@x1 \
--to=lee.jones@linaro.org \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=ckeepax@opensource.wolfsonmicro.com \
--cc=gnurou@gmail.com \
--cc=lgirdwood@gmail.com \
--cc=linus.walleij@linaro.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=patches@opensource.wolfsonmicro.com \
--cc=rf@opensource.wolfsonmicro.com \
--cc=tiwai@suse.de \
/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).