mfd: da9062: Fix missing volatile registers in the core regmap_range volatile lists
authorSteve Twiss <stwiss.opensource@diasemi.com>
Mon, 1 Feb 2016 16:09:38 +0000 (16:09 +0000)
committerLee Jones <lee.jones@linaro.org>
Wed, 16 Mar 2016 08:50:27 +0000 (08:50 +0000)
commitbf742a53ce1eaca26849e22b013a9523621f8db5
tree398d6e22713e36129798bb563b90d2e5ca5ae81f
parent2cd9ad0c5f5455f02815024229c1cb44d8ae636f
mfd: da9062: Fix missing volatile registers in the core regmap_range volatile lists

Add an updated set of registers listed in the core regmap_range volatile
ranges defined for the DA9062.

These new registers contain bits that cannot be considered under the full
control of software. Under various conditions the hardware will set and/or
automatically clear bit(s) contained in these registers.

When using a cached version of regmap, the volatility of these registers must
be identified otherwise the regmap operations may not ensure the registers
are explicitly altered.

As well as updating the list of volatile registers, this change will fix a
corner case discovered in the DA9063 ONKEY which is used by the DA9062 core.

In the ONKEY case, the CONTROL_B register is now listed as volatile in the
regmap_range because it contains the bit field NONKEY_LOCK. This bit can be
altered by hardware, in which case regmap must be notified of its ability
to be manpiulated outside of software control.

Signed-off-by: Steve Twiss <stwiss.opensource@diasemi.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/da9062-core.c
This page took 0.025812 seconds and 5 git commands to generate.