Commit b09b5224 authored by Andreas Fenkart's avatar Andreas Fenkart Committed by Peter Chen

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: default avatarAndreas Fenkart <andreas.fenkart@dev.digitalstrom.org>
Signed-off-by: default avatarPeter Chen <peter.chen@freescale.com>
parent 3a35d59a
...@@ -345,6 +345,11 @@ static int ci_hdrc_imx_remove(struct platform_device *pdev) ...@@ -345,6 +345,11 @@ static int ci_hdrc_imx_remove(struct platform_device *pdev)
return 0; return 0;
} }
static void ci_hdrc_imx_shutdown(struct platform_device *pdev)
{
ci_hdrc_imx_remove(pdev);
}
#ifdef CONFIG_PM #ifdef CONFIG_PM
static int imx_controller_suspend(struct device *dev) static int imx_controller_suspend(struct device *dev)
{ {
...@@ -462,6 +467,7 @@ static const struct dev_pm_ops ci_hdrc_imx_pm_ops = { ...@@ -462,6 +467,7 @@ static const struct dev_pm_ops ci_hdrc_imx_pm_ops = {
static struct platform_driver ci_hdrc_imx_driver = { static struct platform_driver ci_hdrc_imx_driver = {
.probe = ci_hdrc_imx_probe, .probe = ci_hdrc_imx_probe,
.remove = ci_hdrc_imx_remove, .remove = ci_hdrc_imx_remove,
.shutdown = ci_hdrc_imx_shutdown,
.driver = { .driver = {
.name = "imx_usb", .name = "imx_usb",
.of_match_table = ci_hdrc_imx_dt_ids, .of_match_table = ci_hdrc_imx_dt_ids,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment