linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH #upstream] revert libata: export host controller number thru /sys
@ 2013-01-24 16:33 David Milburn
  2013-01-25 20:31 ` Jeff Garzik
  0 siblings, 1 reply; 2+ messages in thread
From: David Milburn @ 2013-01-24 16:33 UTC (permalink / raw)
  To: jgarzik; +Cc: linux-ide, kay.sievers, coughlan, fengguang.wu, gwendal

    Revert "libata: export host controller number thru /sys"
    
    This reverts commit 1757d902b029a29dfcef63609964385cf8865b5a.

    Solution still uses global counter for ata port.

Signed-off-by: David Milburn <dmilburn@redhat.com>
---
 drivers/ata/libata-core.c      |    4 ----
 drivers/ata/libata-transport.c |    2 +-
 include/linux/libata.h         |    1 -
 3 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index b7eed82..4b6fb48 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -99,7 +99,6 @@ static void ata_dev_xfermask(struct ata_device *dev);
 static unsigned long ata_dev_blacklisted(const struct ata_device *dev);
 
 atomic_t ata_print_id = ATOMIC_INIT(0);
-atomic_t host_print_id = ATOMIC_INIT(0);
 
 struct ata_force_param {
 	const char	*name;
@@ -6119,9 +6118,6 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
 	for (i = host->n_ports; host->ports[i]; i++)
 		kfree(host->ports[i]);
 
-	/* track host controller */
-	host->host_id = atomic_inc_return(&host_print_id);
-
 	/* give ports names and add SCSI hosts */
 	for (i = 0; i < host->n_ports; i++)
 		host->ports[i]->print_id = atomic_inc_return(&ata_print_id);
diff --git a/drivers/ata/libata-transport.c b/drivers/ata/libata-transport.c
index 61dca7a..c04d393 100644
--- a/drivers/ata/libata-transport.c
+++ b/drivers/ata/libata-transport.c
@@ -284,7 +284,7 @@ int ata_tport_add(struct device *parent,
 
 	dev->parent = get_device(parent);
 	dev->release = ata_tport_release;
-	dev_set_name(dev, "ata%d.%d", ap->host->host_id, ap->print_id);
+	dev_set_name(dev, "ata%d", ap->print_id);
 	transport_setup_device(dev);
 	error = device_add(dev);
 	if (error) {
diff --git a/include/linux/libata.h b/include/linux/libata.h
index 65ff67e..91c9d10 100644
--- a/include/linux/libata.h
+++ b/include/linux/libata.h
@@ -546,7 +546,6 @@ struct ata_host {
 	void			*private_data;
 	struct ata_port_operations *ops;
 	unsigned long		flags;
-	unsigned int            host_id; /* user visible host ID */
 
 	struct mutex		eh_mutex;
 	struct task_struct	*eh_owner;

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

* Re: [PATCH #upstream] revert libata: export host controller number thru /sys
  2013-01-24 16:33 [PATCH #upstream] revert libata: export host controller number thru /sys David Milburn
@ 2013-01-25 20:31 ` Jeff Garzik
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2013-01-25 20:31 UTC (permalink / raw)
  To: David Milburn; +Cc: linux-ide, kay.sievers, coughlan, fengguang.wu, gwendal

On 01/24/2013 11:33 AM, David Milburn wrote:
>      Revert "libata: export host controller number thru /sys"
>
>      This reverts commit 1757d902b029a29dfcef63609964385cf8865b5a.
>
>      Solution still uses global counter for ata port.
>
> Signed-off-by: David Milburn <dmilburn@redhat.com>
> ---
>   drivers/ata/libata-core.c      |    4 ----
>   drivers/ata/libata-transport.c |    2 +-
>   include/linux/libata.h         |    1 -
>   3 files changed, 1 insertions(+), 6 deletions(-)

applied




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

end of thread, other threads:[~2013-01-25 20:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-24 16:33 [PATCH #upstream] revert libata: export host controller number thru /sys David Milburn
2013-01-25 20:31 ` Jeff Garzik

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).