aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorMurali Nalajala <[email protected]>2024-08-14 15:32:44 -0700
committerBjorn Andersson <[email protected]>2024-08-14 22:08:28 -0500
commit9960085a3a82c58d3323c1c20b991db6045063b0 (patch)
treee2518c7de496aa8825291fa073a22492fd30a3c8 /drivers/usb/cdns3/cdns3-imx.c
parentfce6a1eefb2a1db706fa17ca21e3e7107811d2e8 (diff)
firmware: qcom: scm: Mark get_wq_ctx() as atomic call
Currently get_wq_ctx() is wrongly configured as a standard call. When two SMC calls are in sleep and one SMC wakes up, it calls get_wq_ctx() to resume the corresponding sleeping thread. But if get_wq_ctx() is interrupted, goes to sleep and another SMC call is waiting to be allocated a waitq context, it leads to a deadlock. To avoid this get_wq_ctx() must be an atomic call and can't be a standard SMC call. Hence mark get_wq_ctx() as a fast call. Fixes: 6bf325992236 ("firmware: qcom: scm: Add wait-queue handling logic") Cc: [email protected] Signed-off-by: Murali Nalajala <[email protected]> Signed-off-by: Unnathi Chalicheemala <[email protected]> Reviewed-by: Elliot Berman <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions