Skip to content

Commit

Permalink
isci: reset hardware at init
Browse files Browse the repository at this point in the history
Don't assume the hardware is in a known state at init.

Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
djbw committed Jul 3, 2011
1 parent ce0b89f commit 9affa28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/isci/core/scic_sds_controller.c
Original file line number Diff line number Diff line change
Expand Up @@ -2116,7 +2116,7 @@ enum sci_status scic_controller_construct(struct scic_sds_controller *controller
/* Initialize the User and OEM parameters to default values. */
scic_sds_controller_set_default_config_parameters(controller);

return SCI_SUCCESS;
return scic_controller_reset(controller);
}

/* --------------------------------------------------------------------------- */
Expand Down Expand Up @@ -3562,6 +3562,7 @@ const struct scic_sds_controller_state_handler scic_sds_controller_state_handler
.terminate_request = scic_sds_controller_default_request_handler,
},
[SCI_BASE_CONTROLLER_STATE_RESET] = {
.base.reset = scic_sds_controller_general_reset_handler,
.base.initialize = scic_sds_controller_reset_state_initialize_handler,
.base.start_io = scic_sds_controller_default_start_operation_handler,
.base.complete_io = scic_sds_controller_default_request_handler,
Expand Down

0 comments on commit 9affa28

Please sign in to comment.