Commit 8f304c36 authored by Dan Williams's avatar Dan Williams

isci: kill scic_remote_device_get_connection_rate

A function call to dereference a pointer is a tad much.
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent ab2e8f7d
...@@ -443,8 +443,7 @@ static void scu_ssp_reqeust_construct_task_context( ...@@ -443,8 +443,7 @@ static void scu_ssp_reqeust_construct_task_context(
task_context->abort = 0; task_context->abort = 0;
task_context->priority = 0; task_context->priority = 0;
task_context->initiator_request = 1; task_context->initiator_request = 1;
task_context->connection_rate = task_context->connection_rate = target_device->connection_rate;
scic_remote_device_get_connection_rate(target_device);
task_context->protocol_engine_index = task_context->protocol_engine_index =
scic_sds_controller_get_protocol_engine_group(controller); scic_sds_controller_get_protocol_engine_group(controller);
task_context->logical_port_index = task_context->logical_port_index =
......
...@@ -193,8 +193,7 @@ static void scu_smp_request_construct_task_context( ...@@ -193,8 +193,7 @@ static void scu_smp_request_construct_task_context(
*/ */
task_context->priority = 0; task_context->priority = 0;
task_context->initiator_request = 1; task_context->initiator_request = 1;
task_context->connection_rate = task_context->connection_rate = sci_dev->connection_rate;
scic_remote_device_get_connection_rate(sci_dev);
task_context->protocol_engine_index = task_context->protocol_engine_index =
scic_sds_controller_get_protocol_engine_group(controller); scic_sds_controller_get_protocol_engine_group(controller);
task_context->logical_port_index = task_context->logical_port_index =
......
...@@ -181,8 +181,7 @@ static void scu_sata_reqeust_construct_task_context( ...@@ -181,8 +181,7 @@ static void scu_sata_reqeust_construct_task_context(
task_context->abort = 0; task_context->abort = 0;
task_context->priority = SCU_TASK_PRIORITY_NORMAL; task_context->priority = SCU_TASK_PRIORITY_NORMAL;
task_context->initiator_request = 1; task_context->initiator_request = 1;
task_context->connection_rate = task_context->connection_rate = target_device->connection_rate;
scic_remote_device_get_connection_rate(target_device);
task_context->protocol_engine_index = task_context->protocol_engine_index =
scic_sds_controller_get_protocol_engine_group(controller); scic_sds_controller_get_protocol_engine_group(controller);
task_context->logical_port_index = task_context->logical_port_index =
......
...@@ -152,22 +152,9 @@ enum sci_status scic_remote_device_reset_complete( ...@@ -152,22 +152,9 @@ enum sci_status scic_remote_device_reset_complete(
return sci_dev->state_handlers->reset_complete_handler(sci_dev); return sci_dev->state_handlers->reset_complete_handler(sci_dev);
} }
enum sas_linkrate scic_remote_device_get_connection_rate(
struct scic_sds_remote_device *sci_dev)
{
return sci_dev->connection_rate;
}
/**
*
*
* Remote device timer requirements
*/
#define SCIC_SDS_REMOTE_DEVICE_MINIMUM_TIMER_COUNT (0) #define SCIC_SDS_REMOTE_DEVICE_MINIMUM_TIMER_COUNT (0)
#define SCIC_SDS_REMOTE_DEVICE_MAXIMUM_TIMER_COUNT (SCI_MAX_REMOTE_DEVICES) #define SCIC_SDS_REMOTE_DEVICE_MAXIMUM_TIMER_COUNT (SCI_MAX_REMOTE_DEVICES)
/** /**
* *
* @sci_dev: The remote device for which the suspend is being requested. * @sci_dev: The remote device for which the suspend is being requested.
......
...@@ -208,19 +208,6 @@ enum sci_status scic_remote_device_reset( ...@@ -208,19 +208,6 @@ enum sci_status scic_remote_device_reset(
enum sci_status scic_remote_device_reset_complete( enum sci_status scic_remote_device_reset_complete(
struct scic_sds_remote_device *remote_device); struct scic_sds_remote_device *remote_device);
/**
* scic_remote_device_get_connection_rate() - This method simply returns the
* link rate at which communications to the remote device occur.
* @remote_device: This parameter specifies the device for which to get the
* connection rate.
*
* Return the link rate at which we transfer for the supplied remote device.
*/
enum sas_linkrate scic_remote_device_get_connection_rate(
struct scic_sds_remote_device *remote_device);
#define scic_remote_device_is_atapi(device_handle) false #define scic_remote_device_is_atapi(device_handle) false
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment