summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/port.c
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2011-02-18 18:25:13 +0100
committerDan Williams <dan.j.williams@intel.com>2011-07-03 12:55:27 +0200
commit83e514301ec73b16fb258618c9f9b443cca3744a (patch)
tree6310240e8336c7e5e2ae5c41f41a1de21d48ea90 /drivers/scsi/isci/port.c
parentisci: implement error isr (diff)
downloadlinux-83e514301ec73b16fb258618c9f9b443cca3744a.tar.xz
linux-83e514301ec73b16fb258618c9f9b443cca3744a.zip
isci: advertise linkrate
Inform libsas of the linkrate of direct attached links. Reported-by: Haavard Skinnemoen <hskinnemoen@gmail.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/port.c')
-rw-r--r--drivers/scsi/isci/port.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c
index 2343f6556428..446da20521c9 100644
--- a/drivers/scsi/isci/port.c
+++ b/drivers/scsi/isci/port.c
@@ -263,6 +263,8 @@ void isci_port_link_up(
success = false;
}
+ isci_phy->sas_phy.phy->negotiated_linkrate = sci_phy_linkrate(phy);
+
spin_unlock_irqrestore(&isci_phy->sas_phy.frame_rcvd_lock, flags);
/* Notify libsas that we have an address frame, if indeed