Re: [PATCH v2] pinctrl: qcom: Avoid assigning unused private context in test cases

From: Linus Walleij

Date: Wed Jun 24 2026 - 09:29:06 EST


On Wed, Jun 10, 2026 at 8:17 AM Sneh Mankad
<sneh.mankad@xxxxxxxxxxxxxxxx> wrote:

> tlmm_test_rising_while_disabled() sets thread_op_remain to 10, but this
> variable is only used by the threaded IRQ handler to control the number
> of GPIO pin toggles. Since tlmm_test_rising_while_disabled() does not
> register a threaded IRQ handler, the assignment is never used.
>
> Similarly, tlmm_test_high() and tlmm_test_low() set intr_op_remain to 9,
> but the variable is used to denote the IRQ handler the number of times
> GPIO signal has to be toggled from the hard IRQ handler.
>
> Since tlmm_test_high() and tlmm_test_low() themselves toggle the
> signal and do not require the hard IRQ handler to do it, the assignment is
> never used.
>
> Remove the thread_op_remain assignment from
> tlmm_test_rising_while_disabled() and intr_op_remain assignment from
> tlmm_test_high() and tlmm_test_low() test cases.
>
> This does not cause any change in functionality.
>
> Signed-off-by: Sneh Mankad <sneh.mankad@xxxxxxxxxxxxxxxx>

I don't understand this patch, qcom pinctrl maintainer Bartosz will
decide about it.

Yours,
Linus Walleij