Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 921cc294,
where the mask calculation was corrected.

Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>

authored by

Bjorn Andersson and committed by
Ohad Ben-Cohen
bd5717a4 b97cadee

+1 -1
+1 -1
drivers/hwspinlock/qcom_hwspinlock.c
··· 123 123 for (i = 0; i < QCOM_MUTEX_NUM_LOCKS; i++) { 124 124 field.reg = base + i * stride; 125 125 field.lsb = 0; 126 - field.msb = 32; 126 + field.msb = 31; 127 127 128 128 bank->lock[i].priv = devm_regmap_field_alloc(&pdev->dev, 129 129 regmap, field);