Re: [PATCH v2] Input: psxpad-spi - use devm_pm_runtime_enable()

From: Dmitry Torokhov

Date: Tue Dec 01 2026 - 01:07:28 EST


On Tue, Dec 01, 2026 at 11:18:42AM +0700, Cong Nguyen wrote:
> psxpad_spi_probe() calls pm_runtime_enable(), but the driver has no
> remove callback and nothing disables runtime PM on unbind. A later
> probe of the same device then calls pm_runtime_enable() with the
> disable depth already zero and warns about an unbalanced enable.
>
> Use devm_pm_runtime_enable() so runtime PM is disabled on unbind, and
> enable it before registering the input device so it is still enabled
> when that device is closed on unbind.
>
> Fixes: 8be193c7b1f4 ("Input: add support for PlayStation 1/2 joypads connected via SPI")
> Signed-off-by: Cong Nguyen <congnt264@xxxxxxxxx>

Applied, thank you.

--
Dmitry