]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
i3c: master: Add missing runtime PM get in dev_nack_retry_count_store()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 16 Jun 2026 11:37:51 +0000 (14:37 +0300)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Tue, 16 Jun 2026 21:19:19 +0000 (23:19 +0200)
commit79ce29e100ab3de0cad66eb48d32a7de4043e2ae
treee9cabe4d652180caf4d75f6ef009a311b8d85410
parentab5f9c5cb527c03790a92142ad368881a9100aaf
i3c: master: Add missing runtime PM get in dev_nack_retry_count_store()

Ensure the device is runtime resumed while updating the retry
configuration to avoid accessing the controller while suspended.

Call i3c_master_rpm_get() before accessing the controller in
dev_nack_retry_count_store() and release it with
i3c_master_rpm_put() afterwards.

Fixes: 990c149c61ee4 ("i3c: master: Introduce optional Runtime PM support")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://patch.msgid.link/20260616113752.196140-3-adrian.hunter@intel.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
drivers/i3c/master.c