[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20140827081848.GT17528@sirena.org.uk>
Date: Wed, 27 Aug 2014 09:18:48 +0100
From: Mark Brown <broonie@...nel.org>
To: Jarkko Nikula <jarkko.nikula@...ux.intel.com>
Cc: Takashi Iwai <tiwai@...e.de>, alsa-devel@...a-project.org,
linux-kernel@...r.kernel.org, Liam Girdwood <lgirdwood@...il.com>
Subject: Re: [alsa-devel] [PATCH 1/2] regmap: cache: Fix regcache_sync_block
for non-autoincrementing devices
On Wed, Aug 27, 2014 at 08:52:16AM +0300, Jarkko Nikula wrote:
> I don't know. I was thinking that also but was unsure about it since
> regcache_sync_block_raw() and regcache_sync_block_single() code paths use
> different regmap write functions. regcache_sync_block_raw() ends up calling
> _regmap_raw_write() which takes care of page select operation when needed
> and regcache_sync_block_single() uses _regmap_write() which doesn't.
> Which makes me thinking should the regcache_sync_block_single() also use
> _regmap_raw_write() in order to take care of page selects?
We can't use raw_write() for everything since not every bus can do a raw
write. We probably need to push the select_page() operation into the
_regmap_write() path though, it looks like it's getting missed at the
minute. I ought to redo a lot of that code to simplify it, it's got too
many tentacles at the minute.
Download attachment "signature.asc" of type "application/pgp-signature" (820 bytes)
Powered by blists - more mailing lists