Messages in this thread | | | From | Linus Walleij <> | Date | Fri, 17 Mar 2023 21:56:59 +0100 | Subject | Re: [PATCH v3 1/5] firmware: qcom_scm: provide a read-modify-write function |
| |
On Fri, Mar 17, 2023 at 5:28 PM Mukesh Ojha <quic_mojha@quicinc.com> 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@linaro.org> > Signed-off-by: Mukesh Ojha <quic_mojha@quicinc.com>
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
| |