Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286354
b: refs/heads/master
c: d4ec1cf
h: refs/heads/master
v: v3
  • Loading branch information
Marcin Tomczak authored and James Bottomley committed Jan 16, 2012
1 parent 1ffc851 commit d5031f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d3fd2e2bc29b1f0979352994f9035359003461c3
refs/heads/master: d4ec1cf61fb081a9dde0c0e0b2d0201f4005f937
10 changes: 7 additions & 3 deletions trunk/drivers/scsi/isci/port.c
Original file line number Diff line number Diff line change
Expand Up @@ -674,9 +674,13 @@ void sci_port_deactivate_phy(struct isci_port *iport, struct isci_phy *iphy,

iphy->max_negotiated_speed = SAS_LINK_RATE_UNKNOWN;

/* Re-assign the phy back to the LP as if it were a narrow port */
writel(iphy->phy_index,
&iport->port_pe_configuration_register[iphy->phy_index]);
/* Re-assign the phy back to the LP as if it were a narrow port for APC
* mode. For MPC mode, the phy will remain in the port.
*/
if (iport->owning_controller->oem_parameters.controller.mode_type ==
SCIC_PORT_AUTOMATIC_CONFIGURATION_MODE)
writel(iphy->phy_index,
&iport->port_pe_configuration_register[iphy->phy_index]);

if (do_notify_user == true)
isci_port_link_down(ihost, iphy, iport);
Expand Down

0 comments on commit d5031f1

Please sign in to comment.