From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Jonathan Cameron <jic23@cam.ac.uk>
Cc: linux-kernel@vger.kernel.org, Michael.Hennerich@analog.com,
linux-iio@vger.kernel.org
Subject: Re: [PATCH 1/2] regmap: Support half writes and padding between register and value.
Date: Fri, 9 Sep 2011 09:14:19 -0700 [thread overview]
Message-ID: <20110909161418.GB3515@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <4E69E019.6060601@cam.ac.uk>
On Fri, Sep 09, 2011 at 10:44:57AM +0100, Jonathan Cameron wrote:
> On 09/08/11 17:27, Mark Brown wrote:
> > Please do a patch adding padding separately - that does seem like a
> > useful thing to have in general, with the option of having it both
> > before and after the register.
> Happy to do it separately, but not sure the padding before the register
> address is a real use case. You pad after to give the device time to
> respond, before doesn't make much sense to me on a register based device...
> I'll change the naming to make it explicit that it is after the register though
> so as to leave room for this to be added in future.
Some devices apparently use an entire byte or word with a magic flag in
it to distinguish reads and writes. These end up looking like 16 bit
registers with only the lower 8 bits actually used in the current code.
next prev parent reply other threads:[~2011-09-09 16:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-08 14:09 [RFC PATCH 0/2 V2] Using regmap with ADIS devices Jonathan Cameron
2011-09-08 14:09 ` [PATCH 1/2] regmap: Support half writes and padding between register and value Jonathan Cameron
2011-09-08 16:27 ` Mark Brown
2011-09-09 9:44 ` Jonathan Cameron
2011-09-09 16:14 ` Mark Brown [this message]
2011-09-09 16:30 ` Jonathan Cameron
2011-09-09 16:30 ` Mark Brown
2011-09-08 14:09 ` [PATCH 2/2] staging:iio:imu:adis16400 regmap introduction Jonathan Cameron
2011-09-08 16:30 ` Mark Brown
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=20110909161418.GB3515@opensource.wolfsonmicro.com \
--to=broonie@opensource.wolfsonmicro.com \
--cc=Michael.Hennerich@analog.com \
--cc=jic23@cam.ac.uk \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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).