]> www.infradead.org Git - users/jedix/linux-maple.git/commit
pinctrl: cy8c95x0: Avoid accessing reserved registers
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 3 Feb 2025 13:10:28 +0000 (15:10 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Feb 2025 13:33:51 +0000 (14:33 +0100)
commit3fbe3fe28764455e4fc3578afb9765f46f9ce93d
tree47874ab85c7ead72581b340bb371f28d6d8a7816
parent6f36f103cff1737094f2187b1f9a7b312820d377
pinctrl: cy8c95x0: Avoid accessing reserved registers

The checks for vrtual registers in the cy8c95x0_readable_register()
and cy8c95x0_writeable_register() are not aligned and broken.

Fix that by explicitly avoiding reserved registers to be accessed.

Fixes: 71e4001a0455 ("pinctrl: pinctrl-cy8c95x0: Fix regcache")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/20250203131506.3318201-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-cy8c95x0.c