linux-stable/drivers/i3c
Clark Wang 3d3a2307ff 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:36:33 +02:00
..
master i3c: master: svc: fix cpu schedule in spin lock 2023-07-19 16:36:33 +02:00
device.c driver core: make struct device_type.uevent() take a const * 2023-01-27 13:45:36 +01:00
internals.h i3c: export SETDASA method 2022-12-11 21:25:58 +01:00
Kconfig
Makefile
master.c i3c: Allow OF-alias-based persistent bus numbering 2023-04-28 08:19:01 +02:00