summaryrefslogtreecommitdiffstats
path: root/drivers/usb/chipidea/ci_hdrc_imx.c
diff options
context:
space:
mode:
authorAndreas Fenkart <afenkart@gmail.com>2015-11-12 14:14:40 +0100
committerPeter Chen <peter.chen@freescale.com>2015-12-24 07:15:27 +0100
commitb09b5224fe86b3c9adef1bd9f0bd81800e8ff0b3 (patch)
treeb9133eeb4662149f5f184d34f173a81e339d1cd8 /drivers/usb/chipidea/ci_hdrc_imx.c
parentusb: chipidea: clean up CONFIG_USB_CHIPIDEA_DEBUG reference (diff)
downloadlinux-b09b5224fe86b3c9adef1bd9f0bd81800e8ff0b3.tar.xz
linux-b09b5224fe86b3c9adef1bd9f0bd81800e8ff0b3.zip
usb: chipidea: implement platform shutdown callback
disable wakeup irq during shutdown, otherwise kexec fails for kernels that setup irq handlers before resetting the hardware Signed-off-by: Andreas Fenkart <andreas.fenkart@dev.digitalstrom.org> Signed-off-by: Peter Chen <peter.chen@freescale.com>
Diffstat (limited to 'drivers/usb/chipidea/ci_hdrc_imx.c')
-rw-r--r--drivers/usb/chipidea/ci_hdrc_imx.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/chipidea/ci_hdrc_imx.c b/drivers/usb/chipidea/ci_hdrc_imx.c
index 5a048b7b92e8..f14f4ab47ebb 100644
--- a/drivers/usb/chipidea/ci_hdrc_imx.c
+++ b/drivers/usb/chipidea/ci_hdrc_imx.c
@@ -345,6 +345,11 @@ static int ci_hdrc_imx_remove(struct platform_device *pdev)
return 0;
}
+static void ci_hdrc_imx_shutdown(struct platform_device *pdev)
+{
+ ci_hdrc_imx_remove(pdev);
+}
+
#ifdef CONFIG_PM
static int imx_controller_suspend(struct device *dev)
{
@@ -462,6 +467,7 @@ static const struct dev_pm_ops ci_hdrc_imx_pm_ops = {
static struct platform_driver ci_hdrc_imx_driver = {
.probe = ci_hdrc_imx_probe,
.remove = ci_hdrc_imx_remove,
+ .shutdown = ci_hdrc_imx_shutdown,
.driver = {
.name = "imx_usb",
.of_match_table = ci_hdrc_imx_dt_ids,