On Fri, Mar 17, 2023 at 5:28 PM Mukesh Ojha <quic_mojha@xxxxxxxxxxx> wrote: > It was released by Srinivas K. that there is a need of > read-modify-write scm exported function so that it can > be used by multiple clients. > > Let's introduce qcom_scm_io_update_field() which masks > out the bits and write the passed value to that > bit-offset. Subsequent patch will use this function. > > Suggested-by: Srinivas Kandagatla <srinivas.kandagatla@xxxxxxxxxx> > Signed-off-by: Mukesh Ojha <quic_mojha@xxxxxxxxxxx> This is starting to reimplement regmap. In this case regmap_update_bits(). What about just using regmap as accessor for these registers instead? Yours, Linus Walleij