[PATCH 15/18] [PATCH] libata-link: update ata_dev_configure() to deal with PMP links

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Update ata_dev_configure() to deal with PMP links.

Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>
---
 drivers/ata/libata-core.c |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 0ef6ab0..98ed9fd 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1363,10 +1363,13 @@ static void ata_set_port_max_cmd_len(str
 {
 	if (ap->scsi_host) {
 		unsigned int len = 0;
-		struct ata_device *dev;
+		struct ata_link *link;
 
-		ata_link_for_each_dev(dev, &ap->link)
-			len = max(len, dev->cdb_len);
+		ata_port_for_each_link(link, ap) {
+			struct ata_device *dev;
+			ata_link_for_each_dev(dev, link)
+				len = max(len, dev->cdb_len);
+		}
 
 		ap->scsi_host->max_cmd_len = len;
 	}
-- 
1.4.2.3


-
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux