lkml.org 
[lkml]   [2026]   [May]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v4 0/3] iio: light: stk3310: Fix PS interrupt after suspend and clean up code style
Date
From: Miao Li <limiao@kylinos.cn>

This patch series addresses an interrupt issue and does two code cleanups
for the stk3310 driver.

Patch 1 fixes a PS interrupt issue where the interrupt cannot be triggered
normally after waking from suspend/hibernation, discovered on the Inspur
HS326 laptop with HiSilicon M900 processor.

Patch 2 replaces uint32_t with u32 and reorders members of struct
stk3310_data to eliminate memory padding holes, improving code
consistency and efficiency.

Patch 3 replaces hardcoded count parameters with sizeof(buf) in
regmap_bulk_read/write calls to improve code maintainability.

Miao Li (3):
iio: light: stk3310: Deal with the ps interrupt issue in PM
iio: light: stk3310: Replace uint32_t with u32 and reorder members to
eliminate padding
iio: light: stk3310: Use sizeof() for regmap_bulk_read/write count
parameter

drivers/iio/light/stk3310.c | 84 ++++++++++++++++++++++++++++++++-----
1 file changed, 73 insertions(+), 11 deletions(-)

Best regards.
--
2.25.1


\
 
 \ /
  Last update: 2026-05-04 05:06    [W:0.151 / U:3.297 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog