On Fri, Aug 6, 2021 at 1:24 PM Loic Poulain <loic.poulain@xxxxxxxxxx> wrote: > Lockdep detected possible interrupt unsafe locking scenario: > > CPU0 CPU1 > ---- ---- > lock(&mhiwwan->rx_lock); > local_irq_disable(); > lock(&mhi_cntrl->pm_lock); > lock(&mhiwwan->rx_lock); > <Interrupt> > lock(&mhi_cntrl->pm_lock); > > *** DEADLOCK *** > > To prevent this we need to disable the soft-interrupts when taking > the rx_lock. > > Cc: stable@xxxxxxxxxxxxxxx > Fixes: fa588eba632d ("net: Add Qcom WWAN control driver") > Reported-by: Thomas Perrot <thomas.perrot@xxxxxxxxxxx> > Signed-off-by: Loic Poulain <loic.poulain@xxxxxxxxxx> Reviewed-by: Sergey Ryazanov <ryazanov.s.a@xxxxxxxxx>