Skip to content

Commit bd5717a

Browse files
anderssonohadbc
authored andcommitted
hwspinlock: qcom: Correct msb in regmap_field
msb of the regmap_field was mistakenly given the value 32, to set all bits in the regmap update mask; although incorrect this worked until 921cc29, where the mask calculation was corrected. Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
1 parent b97cade commit bd5717a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/hwspinlock/qcom_hwspinlock.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ static int qcom_hwspinlock_probe(struct platform_device *pdev)
123123
for (i = 0; i < QCOM_MUTEX_NUM_LOCKS; i++) {
124124
field.reg = base + i * stride;
125125
field.lsb = 0;
126-
field.msb = 32;
126+
field.msb = 31;
127127

128128
bank->lock[i].priv = devm_regmap_field_alloc(&pdev->dev,
129129
regmap, field);

0 commit comments

Comments
 (0)