OSDN Git Service

pinctrl: amd: Fix mistake in handling clearing pins at startup
authorMario Limonciello <mario.limonciello@amd.com>
Fri, 21 Apr 2023 12:06:22 +0000 (07:06 -0500)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 8 May 2023 13:42:24 +0000 (15:42 +0200)
commita855724dc08b8cb0c13ab1e065a4922f1e5a7552
tree66b1effb9a4df391bb529fb59e19c847c411188e
parent968ab9261627fa305307e3935ca1a32fcddd36cb
pinctrl: amd: Fix mistake in handling clearing pins at startup

commit 4e5a04be88fe ("pinctrl: amd: disable and mask interrupts on probe")
had a mistake in loop iteration 63 that it would clear offset 0xFC instead
of 0x100.  Offset 0xFC is actually `WAKE_INT_MASTER_REG`.  This was
clearing bits 13 and 15 from the register which significantly changed the
expected handling for some platforms for GPIO0.

Cc: stable@vger.kernel.org
Link: https://bugzilla.kernel.org/show_bug.cgi?id=217315
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Link: https://lore.kernel.org/r/20230421120625.3366-3-mario.limonciello@amd.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-amd.c