linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [for 4.11]xhci: plat: Register shutdown for xhci_plat
@ 2017-03-13 21:21 Adam Wallis
  2017-03-13 21:43 ` Greg KH
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Wallis @ 2017-03-13 21:21 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Adam Wallis <awallis@codeaurora.org>
---
 drivers/usb/host/xhci-plat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index bd02a6c..6ed468f 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -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,
-- 
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.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] [for 4.11]xhci: plat: Register shutdown for xhci_plat
  2017-03-13 21:21 [PATCH] [for 4.11]xhci: plat: Register shutdown for xhci_plat Adam Wallis
@ 2017-03-13 21:43 ` Greg KH
  0 siblings, 0 replies; 4+ messages in thread
From: Greg KH @ 2017-03-13 21:43 UTC (permalink / raw)
  To: linux-arm-kernel

On Mon, Mar 13, 2017 at 05:21:14PM -0400, Adam Wallis wrote:
> Shutdown should be called for xhci_plat devices especially for
> situations where kexec might be used by stopping DMA
> transactions.
> 
> Signed-off-by: Adam Wallis <awallis@codeaurora.org>
> ---
>  drivers/usb/host/xhci-plat.c | 1 +
>  1 file changed, 1 insertion(+)

$ ./scripts/get_maintainer.pl --file drivers/usb/host/xhci-plat.c
Mathias Nyman <mathias.nyman@intel.com> (supporter:USB XHCI DRIVER)

:(

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] [for 4.11]xhci: plat: Register shutdown for xhci_plat
@ 2017-03-13 21:59 Adam Wallis
  2017-03-14  9:20 ` Mathias Nyman
  0 siblings, 1 reply; 4+ messages in thread
From: Adam Wallis @ 2017-03-13 21:59 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Adam Wallis <awallis@codeaurora.org>
---
 drivers/usb/host/xhci-plat.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
index bd02a6c..6ed468f 100644
--- a/drivers/usb/host/xhci-plat.c
+++ b/drivers/usb/host/xhci-plat.c
@@ -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,
-- 
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.

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] [for 4.11]xhci: plat: Register shutdown for xhci_plat
  2017-03-13 21:59 Adam Wallis
@ 2017-03-14  9:20 ` Mathias Nyman
  0 siblings, 0 replies; 4+ messages in thread
From: Mathias Nyman @ 2017-03-14  9:20 UTC (permalink / raw)
  To: linux-arm-kernel

On 13.03.2017 23:59, Adam Wallis wrote:
> Shutdown should be called for xhci_plat devices especially for
> situations where kexec might be used by stopping DMA
> transactions.
>
> Signed-off-by: Adam Wallis <awallis@codeaurora.org>
> ---
>   drivers/usb/host/xhci-plat.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c
> index bd02a6c..6ed468f 100644
> --- a/drivers/usb/host/xhci-plat.c
> +++ b/drivers/usb/host/xhci-plat.c
> @@ -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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-03-14  9:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-13 21:21 [PATCH] [for 4.11]xhci: plat: Register shutdown for xhci_plat Adam Wallis
2017-03-13 21:43 ` Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2017-03-13 21:59 Adam Wallis
2017-03-14  9:20 ` Mathias Nyman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).