Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 254326
b: refs/heads/master
c: 83e5143
h: refs/heads/master
v: v3
  • Loading branch information
Dan Williams committed Jul 3, 2011
1 parent 88a39ca commit 238a506
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 92f4f0f544a6a75979bace0c43fee9c4fb95830c
refs/heads/master: 83e514301ec73b16fb258618c9f9b443cca3744a
3 changes: 3 additions & 0 deletions trunk/drivers/scsi/isci/core/scic_phy.h
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
struct scic_sds_phy;
struct scic_sds_port;


enum sas_linkrate sci_phy_linkrate(struct scic_sds_phy *sci_phy);

/**
* struct scic_phy_properties - This structure defines the properties common to
* all phys that can be retrieved.
Expand Down
5 changes: 5 additions & 0 deletions trunk/drivers/scsi/isci/core/scic_sds_phy.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
/* Maximum arbitration wait time in micro-seconds */
#define SCIC_SDS_PHY_MAX_ARBITRATION_WAIT_TIME (700)

enum sas_linkrate sci_phy_linkrate(struct scic_sds_phy *sci_phy)
{
return sci_phy->max_negotiated_speed;
}

/*
* *****************************************************************************
* * SCIC SDS PHY Internal Methods
Expand Down
2 changes: 2 additions & 0 deletions trunk/drivers/scsi/isci/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 238a506

Please sign in to comment.