lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <5c3bfd3c-f84a-3fa2-f6fd-5624fd052e87@linaro.org>
Date:   Thu, 5 Jul 2018 18:20:50 +0100
From:   Srinivas Kandagatla <srinivas.kandagatla@...aro.org>
To:     Mark Brown <broonie@...nel.org>
Cc:     gregkh@...uxfoundation.org, linux-kernel@...r.kernel.org,
        alsa-devel@...a-project.org
Subject: Re: [PATCH] regmap: slimbus: add support to raw read/writes



On 05/07/18 17:50, Mark Brown wrote:
> On Thu, Jul 05, 2018 at 05:13:21PM +0100, Srinivas Kandagatla wrote:
> 
> 
>> All am trying to do is support paged registers, which seems to be only
>> possible via read/write support at bus level.
> 
> Could you explain what you mean by paged registers?  There's framework
> support for what's normally called pages but perhaps this is some
> slimbus specific thing?

AFAIU, this is not specific to SLIMbus. The way registers are organized 
in WCD9335 codec is in 256 bytes of 6 Pages. Its possible that the 
reason to do this is because SLIMbus has max of 1024 bytes for "User 
Value elements" per device, according to Value Map from SLIMbus Specs.

Access to codec registers is done in 2 steps.

1> Write page number in page register.
2> access register within the page.

This seems to exactly what struct regmap_range_cfg gives.

Adding ranges to regmap_config along with read/write bus callbacks works 
for me.

thanks,
srini
> 

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ