From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Cong Nguyen <congnt264@gmail.com>
Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] Input: psxpad-spi - use devm_pm_runtime_enable()
Date: Mon, 30 Nov 2026 22:07:20 -0800 [thread overview]
Message-ID: <aw5kFZ9j0eaX4LVz@google.com> (raw)
In-Reply-To: <20261201041842.3162217-1-congnt264@gmail.com>
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@gmail.com>
Applied, thank you.
--
Dmitry
prev parent reply other threads:[~2026-12-01 6:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 4:18 [PATCH v2] Input: psxpad-spi - use devm_pm_runtime_enable() Cong Nguyen
2026-12-01 6:07 ` Dmitry Torokhov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw5kFZ9j0eaX4LVz@google.com \
--to=dmitry.torokhov@gmail.com \
--cc=congnt264@gmail.com \
--cc=linux-input@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.