Re: using the same regmap by multiple device drivers

2016-06-29 Thread Vitaly Andrianov
On 06/29/2016 02:31 PM, Mark Brown wrote: On Wed, Jun 29, 2016 at 01:19:37PM -0400, Vitaly Andrianov wrote: Here is my question. Is that actually possible to use in regmap framework the same registers in multiple different drivers? Of course, this is how the vast majority of MFDs work. The r

Re: using the same regmap by multiple device drivers

2016-06-29 Thread Mark Brown
On Wed, Jun 29, 2016 at 01:19:37PM -0400, Vitaly Andrianov wrote: > Here is my question. Is that actually possible to use in regmap framework > the same registers in multiple different drivers? Of course, this is how the vast majority of MFDs work. The regmap has no idea what's calling it, it ca

using the same regmap by multiple device drivers

2016-06-29 Thread Vitaly Andrianov
Hello, I'm working on two drivers "crypto" and "hwrng", which use the same hardware module and the same block of registers. Actually the drivers don't need to access the same registers except several common ones. Here is fragment of dts. sa_subsys: subsys@1234000 { compatible =