Re: [PATCH] i3c: master: svc: fix cpu schedule in spin lock
From: Miquel Raynal
Date: Mon May 22 2023 - 04:33:20 EST
Hi Clark,
xiaoning.wang@xxxxxxx wrote on Wed, 17 May 2023 11:30:29 +0800:
> 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@xxxxxxx>
> Fixes: 05be23ef78f7 ("i3c: master: svc: add runtime pm support")
Reviewed-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx>
Thanks,
Miquèl