pm80xx: Updated link rate
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>
This commit is contained in:
parent
d32477e2a7
commit
b093d59036
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue