diff options
author | Srinivas Kandagatla <srinivas.kandagatla@linaro.org> | 2020-09-17 15:01:36 +0300 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-09-18 15:18:51 +0300 |
commit | 578ddced239f554baf6ba935a53077f6a80cb584 (patch) | |
tree | 360ceda7fc1530ec4f4d594a5c9e6a589c2864a4 /lib/refcount.c | |
parent | 9026118f20e28f202dab34f219bbb831ffb8c4dc (diff) | |
download | linux-578ddced239f554baf6ba935a53077f6a80cb584.tar.xz |
soundwire: qcom: clear BIT FIELDs before value set.
According to usage (bitfields.h) of REG_FIELDS,
Modify is:
reg &= ~REG_FIELD_C;
reg |= FIELD_PREP(REG_FIELD_C, c);
Patch ("soundwire: qcom : use FIELD_{GET|PREP}") seems to have
accidentally removed clearing bit field while modifying the register.
Fix this by using u32p_replace_bits() to clear and set the values.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20200917120138.11313-2-srinivas.kandagatla@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'lib/refcount.c')
0 files changed, 0 insertions, 0 deletions