linux-stable/drivers/i3c
Clark Wang 76efcb6cda i3c: master: svc: fix cpu schedule in spin lock
[ Upstream commit 33beadb3b1 ]

pm_runtime_resume_and_get() may call sleep(). It cannot be used in
svc_i3c_master_start_xfer_locked(), because it is in a spin lock.

Move the pm runtime operations to svc_i3c_master_enqueue_xfer().

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Fixes: 05be23ef78 ("i3c: master: svc: add runtime pm support")
Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/r/20230517033030.3068085-2-xiaoning.wang@nxp.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-07-19 16:21:54 +02:00
..
master i3c: master: svc: fix cpu schedule in spin lock 2023-07-19 16:21:54 +02:00
device.c i3c: Handle drivers without probe or remove callback 2021-02-02 00:16:57 +01:00
internals.h
Kconfig
Makefile
master.c i3c: master: Remove the wrong place of reattach. 2022-10-12 23:45:29 +02:00