From: Tejun Heo <tj@kernel.org>
To: Nate Watterson <nwatters@codeaurora.org>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] libata: Introduce ata_platform_shutdown_one()
Date: Wed, 5 Jul 2017 10:50:27 -0400 [thread overview]
Message-ID: <20170705145027.GB19330@htj.duckdns.org> (raw)
In-Reply-To: <1499104962-17498-1-git-send-email-nwatters@codeaurora.org>
On Mon, Jul 03, 2017 at 02:02:41PM -0400, Nate Watterson wrote:
> In similar fashion to how ata_platform_remove_one() is used, this
> newly introduced method can be used by platform ata drivers to get
> basic shutdown functionality (stopping host DMA and interrupts).
>
> Signed-off-by: Nate Watterson <nwatters@codeaurora.org>
> ---
> drivers/ata/libata-core.c | 20 ++++++++++++++++++++
> include/linux/libata.h | 1 +
> 2 files changed, 21 insertions(+)
>
> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index e157a0e..537932e 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
> @@ -6702,6 +6702,25 @@ int ata_platform_remove_one(struct platform_device *pdev)
> return 0;
> }
>
> +/**
> + * ata_platform_shutdown_one - Platform layer callback for device shutdown
> + * @pdev: Platform device being shutdown
> + *
> + * Platform layer indicates to libata via this hook that shutdown is
> + * in progress and the input device should be quiesced. Functionally this
^^^^^
> + * is equivalent to ata_platform_remove_one(), however devres_release_all()
> + * is not called on the shutdown path as it is for remove so releasing the
> + * resources associated with the device must instead be initiated directly.
I can't easily understand the above comment. Can you please try to
rephrase it so that it's clear why and when it's used?
Thanks.
--
tejun
prev parent reply other threads:[~2017-07-05 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-03 18:02 Nate Watterson
2017-07-03 18:02 ` [PATCH 2/2] ata: ahci_platform: Handle shutdown with ata_platform_shutdown_one() Nate Watterson
2017-07-05 14:51 ` Tejun Heo
2017-07-05 14:50 ` Tejun Heo [this message]
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=20170705145027.GB19330@htj.duckdns.org \
--to=tj@kernel.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=nwatters@codeaurora.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
all inboxes | Powered by JetHome®