This is a note to let you know that I've just added the patch titled pinctrl: amd: Add Z-state wake control bits to the 6.1-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: pinctrl-amd-add-z-state-wake-control-bits.patch and it can be found in the queue-6.1 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From df72b4a692b60d3e5d99d9ef662b2d03c44bb9c0 Mon Sep 17 00:00:00 2001 From: Basavaraj Natikar <Basavaraj.Natikar@xxxxxxx> Date: Thu, 8 Dec 2022 15:07:04 +0530 Subject: pinctrl: amd: Add Z-state wake control bits From: Basavaraj Natikar <Basavaraj.Natikar@xxxxxxx> commit df72b4a692b60d3e5d99d9ef662b2d03c44bb9c0 upstream. GPIO registers include Bit 27 for WakeCntrlZ used to enable wake in Z state. Hence add Z-state wake control bits to debugfs output to debug and analyze Z-states problems. Signed-off-by: Basavaraj Natikar <Basavaraj.Natikar@xxxxxxx> Suggested-by: Mario Limonciello <mario.limonciello@xxxxxxx> Tested-by: Guruvendra Punugupati <Guruvendra.Punugupati@xxxxxxx> Link: https://lore.kernel.org/r/20221208093704.1151928-1-Basavaraj.Natikar@xxxxxxx Signed-off-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/pinctrl/pinctrl-amd.c | 7 +++++++ drivers/pinctrl/pinctrl-amd.h | 1 + 2 files changed, 8 insertions(+) --- a/drivers/pinctrl/pinctrl-amd.c +++ b/drivers/pinctrl/pinctrl-amd.c @@ -218,6 +218,7 @@ static void amd_gpio_dbg_show(struct seq char *orientation; char debounce_value[40]; char *debounce_enable; + char *wake_cntrlz; for (bank = 0; bank < gpio_dev->hwbank_num; bank++) { unsigned int time = 0; @@ -305,6 +306,12 @@ static void amd_gpio_dbg_show(struct seq wake_cntrl2 = " ∅"; seq_printf(s, "S4/S5 %s| ", wake_cntrl2); + if (pin_reg & BIT(WAKECNTRL_Z_OFF)) + wake_cntrlz = "⏰"; + else + wake_cntrlz = " ∅"; + seq_printf(s, "Z %s| ", wake_cntrlz); + if (pin_reg & BIT(PULL_UP_ENABLE_OFF)) { pull_up_enable = "+"; if (pin_reg & BIT(PULL_UP_SEL_OFF)) --- a/drivers/pinctrl/pinctrl-amd.h +++ b/drivers/pinctrl/pinctrl-amd.h @@ -42,6 +42,7 @@ #define OUTPUT_ENABLE_OFF 23 #define SW_CNTRL_IN_OFF 24 #define SW_CNTRL_EN_OFF 25 +#define WAKECNTRL_Z_OFF 27 #define INTERRUPT_STS_OFF 28 #define WAKE_STS_OFF 29 Patches currently in stable-queue which might be from Basavaraj.Natikar@xxxxxxx are queue-6.1/hid-amd_sfh-fix-for-shift-out-of-bounds.patch queue-6.1/pinctrl-amd-add-z-state-wake-control-bits.patch queue-6.1/hid-amd_sfh-rename-the-float32-variable.patch