diff options
| author | Srinivas Kandagatla <[email protected]> | 2020-09-17 13:01:36 +0100 |
|---|---|---|
| committer | Vinod Koul <[email protected]> | 2020-09-18 17:48:51 +0530 |
| commit | 578ddced239f554baf6ba935a53077f6a80cb584 (patch) | |
| tree | 360ceda7fc1530ec4f4d594a5c9e6a589c2864a4 /tools/perf/scripts/python | |
| parent | 9026118f20e28f202dab34f219bbb831ffb8c4dc (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions