isci: remove port frame and event handlers
authorPiotr Sawicki <piotr.sawicki@intel.com>
Thu, 12 May 2011 19:10:08 +0000 (19:10 +0000)
committerDan Williams <dan.j.williams@intel.com>
Sun, 3 Jul 2011 11:04:49 +0000 (04:04 -0700)
Unused infrastructure.

Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Piotr Sawicki <piotr.sawicki@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/scsi/isci/port.c
drivers/scsi/isci/port.h

index 5501e14c8d93b0b7abe1ebe647d1789214e327c4..d58001cb0bcf71f552ad176a3b36a36a0b59b66d 100644 (file)
@@ -1262,30 +1262,6 @@ static enum sci_status default_port_handler(struct scic_sds_port *sci_port,
        return SCI_FAILURE_INVALID_STATE;
 }
 
-/*
- * This is the default method for a port unsolicited frame request.  It will
- * report a warning and exit. enum sci_status SCI_FAILURE_INVALID_STATE Is it even
- * possible to receive an unsolicited frame directed to a port object?  It
- * seems possible if we implementing virtual functions but until then?
- */
-static enum sci_status
-scic_sds_port_default_frame_handler(struct scic_sds_port *sci_port,
-                                   u32 frame_index)
-{
-       struct scic_sds_controller *scic = scic_sds_port_get_controller(sci_port);
-
-       default_port_handler(sci_port, __func__);
-       scic_sds_controller_release_frame(scic, frame_index);
-
-       return SCI_FAILURE_INVALID_STATE;
-}
-
-static enum sci_status scic_sds_port_default_event_handler(struct scic_sds_port *sci_port,
-                                                   u32 event_code)
-{
-       return default_port_handler(sci_port, __func__);
-}
-
 static void scic_sds_port_default_link_up_handler(struct scic_sds_port *sci_port,
                                           struct scic_sds_phy *sci_phy)
 {
@@ -1925,64 +1901,48 @@ enum sci_status scic_sds_port_remove_phy(struct scic_sds_port *sci_port,
 
 static struct scic_sds_port_state_handler scic_sds_port_state_handler_table[] = {
        [SCI_BASE_PORT_STATE_STOPPED] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_default_link_up_handler,
                .link_down_handler      = scic_sds_port_default_link_down_handler,
                .start_io_handler       = scic_sds_port_default_start_io_handler,
                .complete_io_handler    = scic_sds_port_default_complete_io_handler
        },
        [SCI_BASE_PORT_STATE_STOPPING] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_default_link_up_handler,
                .link_down_handler      = scic_sds_port_default_link_down_handler,
                .start_io_handler       = scic_sds_port_default_start_io_handler,
                .complete_io_handler    = scic_sds_port_stopping_state_complete_io_handler
        },
        [SCI_BASE_PORT_STATE_READY] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_default_link_up_handler,
                .link_down_handler      = scic_sds_port_default_link_down_handler,
                .start_io_handler       = scic_sds_port_default_start_io_handler,
                .complete_io_handler    = scic_sds_port_general_complete_io_handler
        },
        [SCIC_SDS_PORT_READY_SUBSTATE_WAITING] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_ready_waiting_substate_link_up_handler,
                .link_down_handler      = scic_sds_port_default_link_down_handler,
                .start_io_handler       = scic_sds_port_ready_waiting_substate_start_io_handler,
                .complete_io_handler    = scic_sds_port_ready_substate_complete_io_handler,
        },
        [SCIC_SDS_PORT_READY_SUBSTATE_OPERATIONAL] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_ready_operational_substate_link_up_handler,
                .link_down_handler      = scic_sds_port_ready_operational_substate_link_down_handler,
                .start_io_handler       = scic_sds_port_ready_operational_substate_start_io_handler,
                .complete_io_handler    = scic_sds_port_ready_substate_complete_io_handler,
        },
        [SCIC_SDS_PORT_READY_SUBSTATE_CONFIGURING] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_default_link_up_handler,
                .link_down_handler      = scic_sds_port_default_link_down_handler,
                .start_io_handler       = scic_sds_port_default_start_io_handler,
                .complete_io_handler    = scic_sds_port_ready_configuring_substate_complete_io_handler
        },
        [SCI_BASE_PORT_STATE_RESETTING] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_reset_state_link_up_handler,
                .link_down_handler      = scic_sds_port_reset_state_link_down_handler,
                .start_io_handler       = scic_sds_port_default_start_io_handler,
                .complete_io_handler    = scic_sds_port_general_complete_io_handler
        },
        [SCI_BASE_PORT_STATE_FAILED] = {
-               .frame_handler          = scic_sds_port_default_frame_handler,
-               .event_handler          = scic_sds_port_default_event_handler,
                .link_up_handler        = scic_sds_port_default_link_up_handler,
                .link_down_handler      = scic_sds_port_default_link_down_handler,
                .start_io_handler       = scic_sds_port_default_start_io_handler,
index 326279a194ab08313802aa854d8af7aeb94570b9..20f99263fa0a0b2045e0be56b73ce24bbc91ec1a 100644 (file)
@@ -312,9 +312,6 @@ typedef enum sci_status (*scic_sds_port_io_request_handler_t)(struct scic_sds_po
                                                              struct scic_sds_request *);
 
 struct scic_sds_port_state_handler {
-       scic_sds_port_frame_handler_t frame_handler;
-       scic_sds_port_event_handler_t event_handler;
-
        scic_sds_port_link_handler_t link_up_handler;
        scic_sds_port_link_handler_t link_down_handler;