usb: cdnsp: Fix incorrect calling of cdnsp_died function
authorPawel Laszczak <pawell@cadence.com>
Fri, 10 Dec 2021 11:29:45 +0000 (12:29 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Dec 2021 08:32:46 +0000 (09:32 +0100)
commitec83d6e57a624673b233b02e5b594ac0fcb474b0
tree09f4f10cffd6e8a9390341425c274c86ba93e835
parented89521e2dcb59344810b1d26344e9212d80a69e
usb: cdnsp: Fix incorrect calling of cdnsp_died function

commit 16f00d969afe60e233c1a91af7ac840df60d3536 upstream.

Patch restrict calling of cdnsp_died function during removing modules
or software disconnect.
This function was called because after transition controller to HALT
state the driver starts handling the deferred interrupt.
In this case such interrupt can be simple ignored.

Fixes: 3d82904559f4 ("usb: cdnsp: cdns3 Add main part of Cadence USBSSP DRD Driver")
cc: <stable@vger.kernel.org>
Reviewed-by: Peter Chen <peter.chen@kernel.org>
Signed-off-by: Pawel Laszczak <pawell@cadence.com>
Link: https://lore.kernel.org/r/20211210112945.660-1-pawell@gli-login.cadence.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/cdns3/cdnsp-ring.c