mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nate Watterson <nwatters@codeaurora.org>
To: Hans de Goede <hdegoede@redhat.com>, Tejun Heo <tj@kernel.org>,
	linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Cc: Nate Watterson <nwatters@codeaurora.org>
Subject: [PATCH 2/2] ata: ahci_platform: Handle shutdown with ata_platform_shutdown_one()
Date: Mon,  3 Jul 2017 14:02:42 -0400	[thread overview]
Message-ID: <1499104962-17498-2-git-send-email-nwatters@codeaurora.org> (raw)
In-Reply-To: <1499104962-17498-1-git-send-email-nwatters@codeaurora.org>

To avoid interfering with a new kernel started using kexec, quiesce
host controller DMA interrupts during driver shutdown with
ata_platform_remove_one().

Change-Id: Iedee7f7ba12172b3d34796a3e3b92dbb72d4ed9c
Signed-off-by: Nate Watterson <nwatters@codeaurora.org>
---
 drivers/ata/ahci_platform.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/ata/ahci_platform.c b/drivers/ata/ahci_platform.c
index 62a04c8..ca25b0d 100644
--- a/drivers/ata/ahci_platform.c
+++ b/drivers/ata/ahci_platform.c
@@ -93,6 +93,7 @@ static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_platform_suspend,
 static struct platform_driver ahci_driver = {
 	.probe = ahci_probe,
 	.remove = ata_platform_remove_one,
+	.shutdown = ata_platform_shutdown_one,
 	.driver = {
 		.name = DRV_NAME,
 		.of_match_table = ahci_of_match,
-- 
Qualcomm Datacenter Technologies, Inc. on behalf of Qualcomm Technologies, Inc.
Qualcomm Technologies, Inc. is a member of the Code Aurora Forum, a Linux
Foundation Collaborative Project.

  reply	other threads:[~2017-07-03 18:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-03 18:02 [PATCH 1/2] libata: Introduce ata_platform_shutdown_one() Nate Watterson
2017-07-03 18:02 ` Nate Watterson [this message]
2017-07-05 14:51   ` [PATCH 2/2] ata: ahci_platform: Handle shutdown with ata_platform_shutdown_one() Tejun Heo
2017-07-05 14:50 ` [PATCH 1/2] libata: Introduce ata_platform_shutdown_one() Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1499104962-17498-2-git-send-email-nwatters@codeaurora.org \
    --to=nwatters@codeaurora.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome