All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sergei Shtylyov <sshtylyov@mvista.com>
To: Brian Norris <computersforpeace@gmail.com>
Cc: Jeff Garzik <jgarzik@pobox.com>,
	linux-ide@vger.kernel.org, Tejun Heo <tj@kernel.org>
Subject: Re: [PATCH v2 04/14] libata: implement ata_platform_remove_one()
Date: Fri, 02 Nov 2012 23:12:21 +0300	[thread overview]
Message-ID: <50942925.7070407@mvista.com> (raw)
In-Reply-To: <1351883393-32354-1-git-send-email-computersforpeace@gmail.com>

On 11/02/2012 10:09 PM, Brian Norris wrote:

> This relatively simple boiler-plate code is repeated in several platform
> drivers. We should implement a common version in libata.

> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
> ---
> v2: fix whitespace

>  drivers/ata/libata-core.c | 23 +++++++++++++++++++++++
>  include/linux/libata.h    |  4 ++++
>  2 files changed, 27 insertions(+)

> diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
> index 611050d..7bf1199 100644
> --- a/drivers/ata/libata-core.c
> +++ b/drivers/ata/libata-core.c
[...]
> @@ -6350,6 +6351,26 @@ int ata_pci_device_resume(struct pci_dev *pdev)
>  
>  #endif /* CONFIG_PCI */
>  
> +/**
> + *      ata_platform_remove_one- Platform layer callback for device removal

   A space before hyphen is needed.

> + *      @pdev: Platform device that was removed
> + *
> + *      Platform layer indicates to libata via this hook that hot-unplug or
> + *      module unload event has occurred.  Detach all ports.  Resource
> + *      release is handled via devres.
> + *
> + *      LOCKING:
> + *      Inherited from platform layer (may sleep).
> + */

   I actually meant indenting with tabs within the comment too. :-)

WBR, Sergei


  parent reply	other threads:[~2012-11-02 19:13 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-02  7:46 [PATCH 00/14] ahci/libata: clean up platform device removal Brian Norris
2012-11-02  7:46 ` [PATCH 01/14] ahci_platform: enable hotplug unbinding Brian Norris
2012-11-02  7:46 ` [PATCH 02/14] ahci_platform: convert to module_platform_driver Brian Norris
2012-11-02  7:46 ` [PATCH 03/14] ahci_platform: perform platform exit in host_stop() hook Brian Norris
2012-11-02  7:46 ` [PATCH 04/14] libata: implement ata_platform_remove_one() Brian Norris
2012-11-02 11:07   ` Sergei Shtylyov
2012-11-02 19:05     ` Brian Norris
2012-11-02 19:09   ` [PATCH v2 " Brian Norris
2012-11-02 19:29     ` [PATCH v3 " Brian Norris
2012-11-02 20:12     ` Sergei Shtylyov [this message]
2012-11-02 19:29       ` [PATCH v2 " Brian Norris
2012-11-02  7:46 ` [PATCH 05/14] ahci_platform: utilize common ata_platform_remove_one() Brian Norris
2012-11-02  7:46 ` [PATCH 06/14] pata_ixp4xx_cf: " Brian Norris
2012-11-02  7:46 ` [PATCH 07/14] pata_mpc52xx: " Brian Norris
2012-11-02  7:46 ` [PATCH 08/14] pata_of_platform: " Brian Norris
2012-11-02  7:46 ` [PATCH 09/14] pata_platform: " Brian Norris
2012-11-02  7:46 ` [PATCH 10/14] ata_platform: remove unused remove function Brian Norris
2012-11-02  7:46 ` [PATCH 11/14] pata_palmld: utilize common ata_platform_remove_one() Brian Norris
2012-11-02  7:46 ` [PATCH 12/14] sata_highbank: " Brian Norris
2012-11-02 19:12   ` [PATCH v2 " Brian Norris
2012-12-03 10:17     ` Jeff Garzik
2012-12-03 18:12       ` Brian Norris
2012-11-02  7:46 ` [PATCH 13/14] pata_octeon_cf: perform host detach, removal on exit Brian Norris
2012-11-02  7:46 ` [PATCH 14/14] libata: use pci_get_drvdata() helper Brian Norris
2012-11-02 17:01 ` [PATCH 00/14] ahci/libata: clean up platform device removal Tejun Heo
2012-11-02 19:03   ` Brian Norris
2012-11-02 19:04     ` 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=50942925.7070407@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=computersforpeace@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.