[PATCH 0/3] snvs_pwrkey - code improvements and add report event

Joy Zou
2026-03-26T10:38:12Z

This patch series improves the snvs_pwrkey driver with better code quality
and add report press event.

The main improvements include:
1. Clean up the code by using local device pointers and dev_err_probe() for
better readability and easier debugging.

2. Fix potential event loss during system suspend by reporting key press events
directly in the interrupt handler.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
---
Joy Zou (3):
Input: snvs_pwrkey - make use of dev_err_probe()
Input: snvs_pwrkey - use local device pointer avoid reference platform_device pointer every time
Input: snvs_pwrkey - report press event in interrupt handler

drivers/input/keyboard/snvs_pwrkey.c | 75 ++++++++++++++++++------------------
1 file changed, 38 insertions(+), 37 deletions(-)
---
base-commit: 66ba480978ce390e631e870b740a3406e3eb6b01
change-id: 20260326-pwrkey-cleanup-99d3de61ed6d

Best regards,
--
Joy Zou <joy.zou@nxp.com>