public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [SCSI] LIBSAS: fix libsas link error issue
@ 2011-06-14 15:17 yxlraid
  2011-06-14 15:29 ` James Bottomley
  0 siblings, 1 reply; 20+ messages in thread
From: yxlraid @ 2011-06-14 15:17 UTC (permalink / raw)
  To: JBottomley
  Cc: James.Bottomley, jack_wang, lucas.demarchi, maciej.trela,
	dan.j.williams, linux-scsi, linux-kernel, yuxiangl, jfeng

From: Xiangliang Yu <yuxiangl@marvell.com>

-- The value of child link rate should is minimum of link rate, or
   command will fail if child link rate is bigger than parent link rate.

Signed-off-by: Xiangliang Yu <yuxiangl@marvell.com>
---
 drivers/scsi/libsas/sas_expander.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/libsas/sas_expander.c b/drivers/scsi/libsas/sas_expander.c
index 874e29d..6ccca09 100644
--- a/drivers/scsi/libsas/sas_expander.c
+++ b/drivers/scsi/libsas/sas_expander.c
@@ -638,7 +638,7 @@ static void sas_ex_get_linkrate(struct domain_device *parent,
 			sas_port_add_phy(port, phy->phy);
 		}
 	}
-	child->linkrate = min(parent_phy->linkrate, child->max_linkrate);
+	child->linkrate = min(parent_phy->linkrate, child->min_linkrate);
 	child->pathways = min(child->pathways, parent->pathways);
 }
 
-- 
1.7.5.4


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

end of thread, other threads:[~2011-06-16  9:34 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 15:17 [PATCH] [SCSI] LIBSAS: fix libsas link error issue yxlraid
2011-06-14 15:29 ` James Bottomley
2011-06-15  1:44   ` Xiangliang Yu
2011-06-15  4:15     ` Douglas Gilbert
2011-06-15  4:52       ` Xiangliang Yu
2011-06-15  5:57     ` James Bottomley
2011-06-15  6:31       ` Xiangliang Yu
2011-06-16  1:41         ` Jack Wang
2011-06-16  1:57           ` Xiangliang Yu
2011-06-16  2:18             ` Jack Wang
2011-06-16  2:29               ` Xiangliang Yu
2011-06-16  4:31                 ` Jack Wang
2011-06-16  4:53                   ` Xiangliang Yu
2011-06-16  6:12                     ` Jack Wang
2011-06-16  6:37                       ` Xiangliang Yu
2011-06-16  6:55                         ` Jack Wang
2011-06-16  7:27                           ` Xiangliang Yu
2011-06-16  8:11                             ` Jack Wang
2011-06-16  9:04                               ` Xiangliang Yu
2011-06-16  9:33                                 ` Jack Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox