• Steve Twiss's avatar
    mfd: da9063: Fix missing volatile registers in the core regmap_range volatile lists · 0e5df61d
    Steve Twiss authored
    Add an updated set of registers listed in the core regmap_range volatile
    ranges defined for the DA9063.
    
    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 DA9063 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: default avatarSteve Twiss <stwiss.opensource@diasemi.com>
    Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
    0e5df61d
da9063-i2c.c 7.7 KB