aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/port_config.c
diff options
context:
space:
mode:
authorEdmund Nadolski <edmund.nadolski@intel.com>2011-06-01 20:10:43 -0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 07:04:50 -0400
commite301370ac553a9a0ac0d1d25e769b86cf60395b3 (patch)
tree58c00e0aeb21c3101df389d4b5e34f47e4b32119 /drivers/scsi/isci/port_config.c
parent8d2c65c09c9e0adc16070562e7944c1c3277f332 (diff)
isci: state machine cleanup
This cleans up several areas of the state machine mechanism: o Rename sci_base_state_machine_change_state to sci_change_state o Remove sci_base_state_machine_get_state function o Rename 'state_machine' struct member to 'sm' in client structs o Shorten the name of request states o Shorten state machine state names as follows: SCI_BASE_CONTROLLER_STATE_xxx to SCIC_xxx SCI_BASE_PHY_STATE_xxx to SCI_PHY_xxx SCIC_SDS_PHY_STARTING_SUBSTATE_xxx to SCI_PHY_SUB_xxx SCI_BASE_PORT_STATE_xxx to SCI_PORT_xxx and SCIC_SDS_PORT_READY_SUBSTATE_xxx to SCI_PORT_SUB_xxx SCI_BASE_REMOTE_DEVICE_STATE_xxx to SCI_DEV_xxx SCIC_SDS_STP_REMOTE_DEVICE_READY_SUBSTATE_xxx to SCI_STP_DEV_xxx SCIC_SDS_SMP_REMOTE_DEVICE_READY_SUBSTATE_xxx to SCI_SMP_DEV_xxx SCIC_SDS_REMOTE_NODE_CONTEXT_xxx_STATE to SCI_RNC_xxx Signed-off-by: Edmund Nadolski <edmund.nadolski@intel.com> Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/port_config.c')
-rw-r--r--drivers/scsi/isci/port_config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/isci/port_config.c b/drivers/scsi/isci/port_config.c
index 38401f644e1..fcb8f030b7a 100644
--- a/drivers/scsi/isci/port_config.c
+++ b/drivers/scsi/isci/port_config.c
@@ -661,13 +661,13 @@ static void scic_sds_apc_agent_link_up(struct scic_sds_controller *scic,
661 scic_sds_apc_agent_configure_ports(scic, port_agent, sci_phy, true); 661 scic_sds_apc_agent_configure_ports(scic, port_agent, sci_phy, true);
662 } else { 662 } else {
663 /* the phy is already the part of the port */ 663 /* the phy is already the part of the port */
664 u32 port_state = sci_port->state_machine.current_state_id; 664 u32 port_state = sci_port->sm.current_state_id;
665 665
666 /* if the PORT'S state is resetting then the link up is from 666 /* if the PORT'S state is resetting then the link up is from
667 * port hard reset in this case, we need to tell the port 667 * port hard reset in this case, we need to tell the port
668 * that link up is recieved 668 * that link up is recieved
669 */ 669 */
670 BUG_ON(port_state != SCI_BASE_PORT_STATE_RESETTING); 670 BUG_ON(port_state != SCI_PORT_RESETTING);
671 port_agent->phy_ready_mask |= 1 << phy_index; 671 port_agent->phy_ready_mask |= 1 << phy_index;
672 scic_sds_port_link_up(sci_port, sci_phy); 672 scic_sds_port_link_up(sci_port, sci_phy);
673 } 673 }