Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1238425
| From | Mark Brown <broonie@kernel.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function |
| Date | 2015-10-02 19:20 +0200 |
| Message-ID | <qfc9X-1mW-3@gated-at.bofh.it> (permalink) |
| References | <qeFH4-4bi-15@gated-at.bofh.it> <qeIEW-gR-1@gated-at.bofh.it> <qeL9M-3Vj-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, Oct 01, 2015 at 08:29:19AM -0400, Jon Ringle wrote:
> On Thu, 1 Oct 2015, Mark Brown wrote:
> > This completely bypasses and therefore breaks the cache infrastructure.
> Right after sending the v2 patch, I realized that calling the
> custom reg_update_bits would only be applicable for registers that are
> marked as volatile. Would the following solution be acceptable (it would
Well, it should still *work* with a cache, though it's certainly true
that it's unlikely to have any performance benefit with cached register
since the read part of the read/modify/write cycle is essentially free
with the cache.
> also simplify the regmap_update_bits in the encx24j600 driver):
> if (regmap_volatile(map, reg) && map->reg_update_bits) {
> return map->reg_update_bits(map->bus_context, reg, mask,
> val, change, force_write);
> The cache state should not matter for volatile registers, right?
Right. I see you've sent a new patch already, I'll reply to that after
I've thought about it a little.
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 1/2] regmap: Allow installing custom reg_update_bits function jon@ringle.org - 2015-10-01 08:40 +0200
Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function Mark Brown <broonie@kernel.org> - 2015-10-01 11:50 +0200
Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function Jon Ringle <jon@ringle.org> - 2015-10-01 14:30 +0200
Re: [PATCH 1/2] regmap: Allow installing custom reg_update_bits function Mark Brown <broonie@kernel.org> - 2015-10-02 19:20 +0200
csiph-web