]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: sophgo: avoid to modify untouched bit when setting cv1800 pinconf
authorInochi Amaoto <inochiama@gmail.com>
Tue, 11 Feb 2025 05:17:49 +0000 (13:17 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 27 Feb 2025 22:56:17 +0000 (23:56 +0100)
commitef1a5121ae3da02372fcb66d9632ed3d47ad5637
treec0326ce35a1dc51f34e52e5c3842226004c09f76
parent2014c95afecee3e76ca4a56956a936e23283f05b
pinctrl: sophgo: avoid to modify untouched bit when setting cv1800 pinconf

When setting pinconf configuration for cv1800 SoC, the driver just writes
the value. It may zero some bits of the pinconf register and cause some
unexpected error. Add a mask to avoid this.

Signed-off-by: Inochi Amaoto <inochiama@gmail.com>
Link: https://lore.kernel.org/20250211051801.470800-2-inochiama@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/sophgo/pinctrl-cv18xx.c