pm80xx: Updated link rate
authorViswas G <Viswas.G@pmcs.com>
Tue, 11 Aug 2015 09:36:25 +0000 (15:06 +0530)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 27 Aug 2015 00:06:26 +0000 (17:06 -0700)
Updated 12G linkrate to libsas.

Signed-off-by: Viswas G <Viswas.G@pmcs.com>
Reviewed-by: Suresh Thiagarajan <Suresh.Thiagarajan@pmcs.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Reviewed-by: Jack Wang <jinpu.wang@profitbricks.com>
Reviewed-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: James Bottomley <JBottomley@Odin.com>
drivers/scsi/pm8001/pm8001_defs.h
drivers/scsi/pm8001/pm8001_hwi.c

index dc4233be52c8179bfdffb22b21e0bb1c702f4290..f14ec6e042b9ae240b9c5984688325b746496347 100644 (file)
@@ -57,6 +57,7 @@ enum phy_speed {
        PHY_SPEED_15 = 0x01,
        PHY_SPEED_30 = 0x02,
        PHY_SPEED_60 = 0x04,
+       PHY_SPEED_120 = 0x08,
 };
 
 enum data_direction {
index 96dcc097a4632c66c2e20f2cc13b770e4fec341d..39306b1e704c5202764d95a510bab4431e0f97dc 100644 (file)
@@ -3263,6 +3263,10 @@ void pm8001_get_lrate_mode(struct pm8001_phy *phy, u8 link_rate)
        struct sas_phy *sas_phy = phy->sas_phy.phy;
 
        switch (link_rate) {
+       case PHY_SPEED_120:
+               phy->sas_phy.linkrate = SAS_LINK_RATE_12_0_GBPS;
+               phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_12_0_GBPS;
+               break;
        case PHY_SPEED_60:
                phy->sas_phy.linkrate = SAS_LINK_RATE_6_0_GBPS;
                phy->sas_phy.phy->negotiated_linkrate = SAS_LINK_RATE_6_0_GBPS;