From: David Daney <ddaney.cavm@gmail.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: Jeff Garzik <jgarzik@pobox.com>,
linux-ide@vger.kernel.org, Tejun Heo <tj@kernel.org>,
David Daney <david.daney@cavium.com>
Subject: Re: [PATCH v2 2/4] pata_octeon_cf: perform host detach, removal on exit
Date: Mon, 03 Dec 2012 16:26:25 -0800 [thread overview]
Message-ID: <50BD4331.6010904@gmail.com> (raw)
In-Reply-To: <1354559682-30965-2-git-send-email-computersforpeace@gmail.com>
On 12/03/2012 10:34 AM, Brian Norris wrote:
> This driver does not detach and remove its ata_host properly on device
> removal. Add the common .remove helper.
>
> Note: I do not know this driver well enough to ensure this is the right
> thing to do. Merge this patch with caution.
>
> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> Acked-by: Tejun Heo <tj@kernel.org>
> Cc: David Daney <david.daney@cavium.com>
> ---
> v2: no change (rebased along with previous patch)
>
> drivers/ata/pata_octeon_cf.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/ata/pata_octeon_cf.c b/drivers/ata/pata_octeon_cf.c
> index 1d61d5d..d8df93b 100644
> --- a/drivers/ata/pata_octeon_cf.c
> +++ b/drivers/ata/pata_octeon_cf.c
> @@ -921,6 +921,7 @@ free_cf_port:
>
> static struct platform_driver octeon_cf_driver = {
> .probe = octeon_cf_probe,
> + .remove = ata_platform_remove_one,
Can you point me at the definition of ata_platform_remove_one()?
I can seem to find it. Without knowing what that does, I would be
inclined to NACK the whole thing.
How did you test the patch?
This patch is likely to be incomplete as the driver is also missing the
module_exit() things.
It might be simpler to just make the driver "bool" instead of "tristate"
in the Kconfig.
> .driver = {
> .name = DRV_NAME,
> .owner = THIS_MODULE,
>
next prev parent reply other threads:[~2012-12-04 0:26 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 18:34 [PATCH v3 1/4] sata_highbank: utilize common ata_platform_remove_one() Brian Norris
2012-12-03 18:34 ` [PATCH v2 2/4] pata_octeon_cf: perform host detach, removal on exit Brian Norris
2012-12-04 0:26 ` David Daney [this message]
2012-12-04 6:10 ` Brian Norris
2012-12-14 14:37 ` Jeff Garzik
2012-12-03 18:34 ` [PATCH v2 3/4] libata: use pci_get_drvdata() helper Brian Norris
2012-12-03 18:34 ` [PATCH v2 4/4] pata_of_platform: fix compile error Brian Norris
2012-12-03 18:55 ` [PATCH v3 1/4] sata_highbank: utilize common ata_platform_remove_one() Jeff Garzik
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=50BD4331.6010904@gmail.com \
--to=ddaney.cavm@gmail.com \
--cc=computersforpeace@gmail.com \
--cc=david.daney@cavium.com \
--cc=jgarzik@pobox.com \
--cc=linux-ide@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;
as well as URLs for NNTP newsgroup(s).