Skip to contentSkip to conversation

xhci: plat: Register shutdown for xhci_plat

PATCH New Adam Wallis 2 participants 2 messages Mar 13, 2017 – Mar 14, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xhci: plat: Register shutdown for xhci_plat

Shutdown should be called for xhci_plat devices especially for situations where kexec might be used by stopping DMA transactions.

---
 drivers/usb/host/xhci-plat.c | 1 +
 1 file changed, 1 insertion(+)
drivers/usb/host/xhci-plat.c +1 -0
index bd02a6c..6ed468f 100644
@@ -344,6 +344,7 @@ static int xhci_plat_resume(struct device *dev)
 static struct platform_driver usb_xhci_driver = {
 	.probe	= xhci_plat_probe,
 	.remove	= xhci_plat_remove,
+	.shutdown	= usb_hcd_platform_shutdown,
 	.driver	= {
 		.name = "xhci-hcd",
 		.pm = DEV_PM_OPS,
Signature · 3 lines
Qualcomm Datacenter Technologies as an affiliate of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the
Code Aurora Forum, a Linux Foundation Collaborative Project.
#1 lore raw

PATCH 1/1 xhci: plat: Register shutdown for xhci_plat

Quoted 14 lines · Adam Wallis

Shutdown should be called for xhci_plat devices especially for situations where kexec might be used by stopping DMA transactions.

---
  drivers/usb/host/xhci-plat.c | 1 +
  1 file changed, 1 insertion(+)
drivers/usb/host/xhci-plat.c +0 -0
index bd02a6c..6ed468f 100644

drivers/usb/host/xhci-plat.c static int xhci_plat_resume(struct device *dev) · line 347

Quoted 4 lines
drivers/usb/host/xhci-plat.c +1 -0
@@ -344,6 +344,7 @@ static int xhci_plat_resume(struct device *dev)
  static struct platform_driver usb_xhci_driver = {
  	.probe	= xhci_plat_probe,
  	.remove	= xhci_plat_remove,
+	.shutdown	= usb_hcd_platform_shutdown,

Thanks, adding to queue.

-Mathias