diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-03-26 19:56:55 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:00:36 -0400 |
commit | 2828dc0b55da8937439121eaa82e9ee80c520f53 (patch) | |
tree | be2d89d83d30f2b1d8387ed892d9774cba171af2 /drivers/scsi | |
parent | 35173d579a08c0d145b3020039d3ba33fbf2c184 (diff) |
isci: remove unused "remote_device_started"
These routines are just stubs, re-add them when / if they are needed. Also
cleanup remote_device_stopped.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/isci/core/scic_sds_controller.c | 29 | ||||
-rw-r--r-- | drivers/scsi/isci/core/scic_sds_controller.h | 35 | ||||
-rw-r--r-- | drivers/scsi/isci/core/scic_sds_remote_device.c | 23 |
3 files changed, 7 insertions, 80 deletions
diff --git a/drivers/scsi/isci/core/scic_sds_controller.c b/drivers/scsi/isci/core/scic_sds_controller.c index 5cc6f2fa0939..f20d0eb9bda6 100644 --- a/drivers/scsi/isci/core/scic_sds_controller.c +++ b/drivers/scsi/isci/core/scic_sds_controller.c | |||
@@ -1584,31 +1584,6 @@ void scic_sds_controller_link_down( | |||
1584 | } | 1584 | } |
1585 | 1585 | ||
1586 | /** | 1586 | /** |
1587 | * This method is called by the remote device to inform the controller | ||
1588 | * that this remote device has started. | ||
1589 | * | ||
1590 | */ | ||
1591 | |||
1592 | void scic_sds_controller_remote_device_started(struct scic_sds_controller *scic, | ||
1593 | struct scic_sds_remote_device *sci_dev) | ||
1594 | { | ||
1595 | u32 state; | ||
1596 | scic_sds_controller_device_handler_t started; | ||
1597 | |||
1598 | state = scic->parent.state_machine.current_state_id; | ||
1599 | started = scic_sds_controller_state_handler_table[state].remote_device_started_handler; | ||
1600 | |||
1601 | if (started) | ||
1602 | started(scic, sci_dev); | ||
1603 | else { | ||
1604 | dev_dbg(scic_to_dev(scic), | ||
1605 | "%s: SCIC Controller 0x%p remote device started event " | ||
1606 | "from device 0x%p in unexpected state %d\n", | ||
1607 | __func__, scic, sci_dev, state); | ||
1608 | } | ||
1609 | } | ||
1610 | |||
1611 | /** | ||
1612 | * This is a helper method to determine if any remote devices on this | 1587 | * This is a helper method to determine if any remote devices on this |
1613 | * controller are still in the stopping state. | 1588 | * controller are still in the stopping state. |
1614 | * | 1589 | * |
@@ -1642,7 +1617,7 @@ void scic_sds_controller_remote_device_stopped(struct scic_sds_controller *scic, | |||
1642 | scic_sds_controller_device_handler_t stopped; | 1617 | scic_sds_controller_device_handler_t stopped; |
1643 | 1618 | ||
1644 | state = scic->parent.state_machine.current_state_id; | 1619 | state = scic->parent.state_machine.current_state_id; |
1645 | stopped = scic_sds_controller_state_handler_table[state].remote_device_stopped_handler; | 1620 | stopped = scic_sds_controller_state_handler_table[state].device_stopped; |
1646 | 1621 | ||
1647 | if (stopped) | 1622 | if (stopped) |
1648 | stopped(scic, sci_dev); | 1623 | stopped(scic, sci_dev); |
@@ -3575,7 +3550,7 @@ const struct scic_sds_controller_state_handler scic_sds_controller_state_handler | |||
3575 | .base.complete_io = scic_sds_controller_stopping_state_complete_io_handler, | 3550 | .base.complete_io = scic_sds_controller_stopping_state_complete_io_handler, |
3576 | .base.continue_io = scic_sds_controller_default_request_handler, | 3551 | .base.continue_io = scic_sds_controller_default_request_handler, |
3577 | .terminate_request = scic_sds_controller_default_request_handler, | 3552 | .terminate_request = scic_sds_controller_default_request_handler, |
3578 | .remote_device_stopped_handler = scic_sds_controller_stopping_state_device_stopped_handler, | 3553 | .device_stopped = scic_sds_controller_stopping_state_device_stopped_handler, |
3579 | }, | 3554 | }, |
3580 | [SCI_BASE_CONTROLLER_STATE_STOPPED] = { | 3555 | [SCI_BASE_CONTROLLER_STATE_STOPPED] = { |
3581 | .base.reset = scic_sds_controller_general_reset_handler, | 3556 | .base.reset = scic_sds_controller_general_reset_handler, |
diff --git a/drivers/scsi/isci/core/scic_sds_controller.h b/drivers/scsi/isci/core/scic_sds_controller.h index fedf5032d898..22b5f2c24a02 100644 --- a/drivers/scsi/isci/core/scic_sds_controller.h +++ b/drivers/scsi/isci/core/scic_sds_controller.h | |||
@@ -396,8 +396,7 @@ struct scic_sds_controller_state_handler { | |||
396 | sci_base_controller_request_handler_t terminate_request; | 396 | sci_base_controller_request_handler_t terminate_request; |
397 | scic_sds_controller_phy_handler_t link_up; | 397 | scic_sds_controller_phy_handler_t link_up; |
398 | scic_sds_controller_phy_handler_t link_down; | 398 | scic_sds_controller_phy_handler_t link_down; |
399 | scic_sds_controller_device_handler_t remote_device_started_handler; | 399 | scic_sds_controller_device_handler_t device_stopped; |
400 | scic_sds_controller_device_handler_t remote_device_stopped_handler; | ||
401 | }; | 400 | }; |
402 | 401 | ||
403 | extern const struct scic_sds_controller_state_handler | 402 | extern const struct scic_sds_controller_state_handler |
@@ -532,17 +531,10 @@ extern const struct scic_sds_controller_state_handler | |||
532 | #define scic_sds_controller_clear_invalid_phy(controller, phy) \ | 531 | #define scic_sds_controller_clear_invalid_phy(controller, phy) \ |
533 | ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index)) | 532 | ((controller)->invalid_phy_mask &= ~(1 << (phy)->phy_index)) |
534 | 533 | ||
535 | /* --------------------------------------------------------------------------- */ | ||
536 | |||
537 | |||
538 | /* --------------------------------------------------------------------------- */ | ||
539 | |||
540 | void scic_sds_controller_post_request( | 534 | void scic_sds_controller_post_request( |
541 | struct scic_sds_controller *this_controller, | 535 | struct scic_sds_controller *this_controller, |
542 | u32 request); | 536 | u32 request); |
543 | 537 | ||
544 | /* --------------------------------------------------------------------------- */ | ||
545 | |||
546 | void scic_sds_controller_release_frame( | 538 | void scic_sds_controller_release_frame( |
547 | struct scic_sds_controller *this_controller, | 539 | struct scic_sds_controller *this_controller, |
548 | u32 frame_index); | 540 | u32 frame_index); |
@@ -552,8 +544,6 @@ void scic_sds_controller_copy_sata_response( | |||
552 | void *frame_header, | 544 | void *frame_header, |
553 | void *frame_buffer); | 545 | void *frame_buffer); |
554 | 546 | ||
555 | /* --------------------------------------------------------------------------- */ | ||
556 | |||
557 | enum sci_status scic_sds_controller_allocate_remote_node_context( | 547 | enum sci_status scic_sds_controller_allocate_remote_node_context( |
558 | struct scic_sds_controller *this_controller, | 548 | struct scic_sds_controller *this_controller, |
559 | struct scic_sds_remote_device *the_device, | 549 | struct scic_sds_remote_device *the_device, |
@@ -568,8 +558,6 @@ union scu_remote_node_context *scic_sds_controller_get_remote_node_context_buffe | |||
568 | struct scic_sds_controller *this_controller, | 558 | struct scic_sds_controller *this_controller, |
569 | u16 node_id); | 559 | u16 node_id); |
570 | 560 | ||
571 | /* --------------------------------------------------------------------------- */ | ||
572 | |||
573 | struct scic_sds_request *scic_sds_controller_get_io_request_from_tag( | 561 | struct scic_sds_request *scic_sds_controller_get_io_request_from_tag( |
574 | struct scic_sds_controller *this_controller, | 562 | struct scic_sds_controller *this_controller, |
575 | u16 io_tag); | 563 | u16 io_tag); |
@@ -579,12 +567,6 @@ struct scu_task_context *scic_sds_controller_get_task_context_buffer( | |||
579 | struct scic_sds_controller *this_controller, | 567 | struct scic_sds_controller *this_controller, |
580 | u16 io_tag); | 568 | u16 io_tag); |
581 | 569 | ||
582 | /* | ||
583 | * ***************************************************************************** | ||
584 | * * CORE CONTROLLER POWER CONTROL METHODS | ||
585 | * ***************************************************************************** */ | ||
586 | |||
587 | |||
588 | void scic_sds_controller_power_control_queue_insert( | 570 | void scic_sds_controller_power_control_queue_insert( |
589 | struct scic_sds_controller *this_controller, | 571 | struct scic_sds_controller *this_controller, |
590 | struct scic_sds_phy *the_phy); | 572 | struct scic_sds_phy *the_phy); |
@@ -593,11 +575,6 @@ void scic_sds_controller_power_control_queue_remove( | |||
593 | struct scic_sds_controller *this_controller, | 575 | struct scic_sds_controller *this_controller, |
594 | struct scic_sds_phy *the_phy); | 576 | struct scic_sds_phy *the_phy); |
595 | 577 | ||
596 | /* | ||
597 | * ***************************************************************************** | ||
598 | * * CORE CONTROLLER PHY MESSAGE PROCESSING | ||
599 | * ***************************************************************************** */ | ||
600 | |||
601 | void scic_sds_controller_link_up( | 578 | void scic_sds_controller_link_up( |
602 | struct scic_sds_controller *this_controller, | 579 | struct scic_sds_controller *this_controller, |
603 | struct scic_sds_port *the_port, | 580 | struct scic_sds_port *the_port, |
@@ -608,16 +585,6 @@ void scic_sds_controller_link_down( | |||
608 | struct scic_sds_port *the_port, | 585 | struct scic_sds_port *the_port, |
609 | struct scic_sds_phy *the_phy); | 586 | struct scic_sds_phy *the_phy); |
610 | 587 | ||
611 | /* | ||
612 | * ***************************************************************************** | ||
613 | * * CORE CONTROLLER REMOTE DEVICE MESSAGE PROCESSING | ||
614 | * ***************************************************************************** */ | ||
615 | |||
616 | |||
617 | void scic_sds_controller_remote_device_started( | ||
618 | struct scic_sds_controller *this_controller, | ||
619 | struct scic_sds_remote_device *the_device); | ||
620 | |||
621 | void scic_sds_controller_remote_device_stopped( | 588 | void scic_sds_controller_remote_device_stopped( |
622 | struct scic_sds_controller *this_controller, | 589 | struct scic_sds_controller *this_controller, |
623 | struct scic_sds_remote_device *the_device); | 590 | struct scic_sds_remote_device *the_device); |
diff --git a/drivers/scsi/isci/core/scic_sds_remote_device.c b/drivers/scsi/isci/core/scic_sds_remote_device.c index 5ab8b0321de5..e100fdeee031 100644 --- a/drivers/scsi/isci/core/scic_sds_remote_device.c +++ b/drivers/scsi/isci/core/scic_sds_remote_device.c | |||
@@ -1533,34 +1533,19 @@ static void scic_sds_remote_device_starting_state_enter( | |||
1533 | SCIC_REMOTE_DEVICE_NOT_READY_START_REQUESTED); | 1533 | SCIC_REMOTE_DEVICE_NOT_READY_START_REQUESTED); |
1534 | } | 1534 | } |
1535 | 1535 | ||
1536 | /** | 1536 | static void scic_sds_remote_device_starting_state_exit(struct sci_base_object *object) |
1537 | * | ||
1538 | * @object: This is the struct sci_base_object that is cast into a | ||
1539 | * struct scic_sds_remote_device. | ||
1540 | * | ||
1541 | * This is the exit function for the SCI_BASE_REMOTE_DEVICE_STATE_STARTING it | ||
1542 | * reports that the device start is complete. none | ||
1543 | */ | ||
1544 | static void scic_sds_remote_device_starting_state_exit( | ||
1545 | struct sci_base_object *object) | ||
1546 | { | 1537 | { |
1547 | struct scic_sds_remote_device *sci_dev = | 1538 | struct scic_sds_remote_device *sci_dev = container_of(object, typeof(*sci_dev), |
1548 | (struct scic_sds_remote_device *)object; | 1539 | parent.parent); |
1549 | struct scic_sds_controller *scic = | 1540 | struct scic_sds_controller *scic = scic_sds_remote_device_get_controller(sci_dev); |
1550 | scic_sds_remote_device_get_controller(sci_dev); | ||
1551 | struct isci_host *ihost = sci_object_get_association(scic); | 1541 | struct isci_host *ihost = sci_object_get_association(scic); |
1552 | struct isci_remote_device *idev = sci_object_get_association(sci_dev); | 1542 | struct isci_remote_device *idev = sci_object_get_association(sci_dev); |
1553 | 1543 | ||
1554 | |||
1555 | /* | 1544 | /* |
1556 | * @todo Check the device object for the proper return code for this | 1545 | * @todo Check the device object for the proper return code for this |
1557 | * callback | 1546 | * callback |
1558 | */ | 1547 | */ |
1559 | isci_remote_device_start_complete(ihost, idev, SCI_SUCCESS); | 1548 | isci_remote_device_start_complete(ihost, idev, SCI_SUCCESS); |
1560 | |||
1561 | scic_sds_controller_remote_device_started( | ||
1562 | scic_sds_remote_device_get_controller(sci_dev), | ||
1563 | sci_dev); | ||
1564 | } | 1549 | } |
1565 | 1550 | ||
1566 | /** | 1551 | /** |