scsi: isci: Remove unused isci_remote_device_reset_complete()
isci_remote_device_reset_complete() last use was removed in 2012 by commit
14aaa9f0a3 ("isci: Redesign device suspension, abort, cleanup.")
Remove it.
It was the last user of sci_remote_device_reset_complete().
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20241223180218.50426-1-linux@treblig.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
6e67b32087
commit
5d10344ab6
@@ -422,21 +422,6 @@ enum sci_status sci_remote_device_reset(struct isci_remote_device *idev)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
enum sci_status sci_remote_device_reset_complete(struct isci_remote_device *idev)
|
|
||||||
{
|
|
||||||
struct sci_base_state_machine *sm = &idev->sm;
|
|
||||||
enum sci_remote_device_states state = sm->current_state_id;
|
|
||||||
|
|
||||||
if (state != SCI_DEV_RESETTING) {
|
|
||||||
dev_warn(scirdev_to_dev(idev), "%s: in wrong state: %s\n",
|
|
||||||
__func__, dev_state_name(state));
|
|
||||||
return SCI_FAILURE_INVALID_STATE;
|
|
||||||
}
|
|
||||||
|
|
||||||
sci_change_state(sm, SCI_DEV_READY);
|
|
||||||
return SCI_SUCCESS;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum sci_status sci_remote_device_frame_handler(struct isci_remote_device *idev,
|
enum sci_status sci_remote_device_frame_handler(struct isci_remote_device *idev,
|
||||||
u32 frame_index)
|
u32 frame_index)
|
||||||
{
|
{
|
||||||
@@ -1694,20 +1679,6 @@ enum sci_status sci_remote_device_abort_requests_pending_abort(
|
|||||||
return sci_remote_device_terminate_reqs_checkabort(idev, 1);
|
return sci_remote_device_terminate_reqs_checkabort(idev, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
enum sci_status isci_remote_device_reset_complete(
|
|
||||||
struct isci_host *ihost,
|
|
||||||
struct isci_remote_device *idev)
|
|
||||||
{
|
|
||||||
unsigned long flags;
|
|
||||||
enum sci_status status;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&ihost->scic_lock, flags);
|
|
||||||
status = sci_remote_device_reset_complete(idev);
|
|
||||||
spin_unlock_irqrestore(&ihost->scic_lock, flags);
|
|
||||||
|
|
||||||
return status;
|
|
||||||
}
|
|
||||||
|
|
||||||
void isci_dev_set_hang_detection_timeout(
|
void isci_dev_set_hang_detection_timeout(
|
||||||
struct isci_remote_device *idev,
|
struct isci_remote_device *idev,
|
||||||
u32 timeout)
|
u32 timeout)
|
||||||
|
|||||||
@@ -174,19 +174,6 @@ enum sci_status sci_remote_device_stop(
|
|||||||
enum sci_status sci_remote_device_reset(
|
enum sci_status sci_remote_device_reset(
|
||||||
struct isci_remote_device *idev);
|
struct isci_remote_device *idev);
|
||||||
|
|
||||||
/**
|
|
||||||
* sci_remote_device_reset_complete() - This method informs the device object
|
|
||||||
* that the reset operation is complete and the device can resume operation
|
|
||||||
* again.
|
|
||||||
* @remote_device: This parameter specifies the device which is to be informed
|
|
||||||
* of the reset complete operation.
|
|
||||||
*
|
|
||||||
* An indication that the device is resuming operation. SCI_SUCCESS the device
|
|
||||||
* is resuming operation.
|
|
||||||
*/
|
|
||||||
enum sci_status sci_remote_device_reset_complete(
|
|
||||||
struct isci_remote_device *idev);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* enum sci_remote_device_states - This enumeration depicts all the states
|
* enum sci_remote_device_states - This enumeration depicts all the states
|
||||||
* for the common remote device state machine.
|
* for the common remote device state machine.
|
||||||
@@ -364,10 +351,6 @@ enum sci_status isci_remote_device_reset(
|
|||||||
struct isci_host *ihost,
|
struct isci_host *ihost,
|
||||||
struct isci_remote_device *idev);
|
struct isci_remote_device *idev);
|
||||||
|
|
||||||
enum sci_status isci_remote_device_reset_complete(
|
|
||||||
struct isci_host *ihost,
|
|
||||||
struct isci_remote_device *idev);
|
|
||||||
|
|
||||||
enum sci_status isci_remote_device_suspend_terminate(
|
enum sci_status isci_remote_device_suspend_terminate(
|
||||||
struct isci_host *ihost,
|
struct isci_host *ihost,
|
||||||
struct isci_remote_device *idev,
|
struct isci_remote_device *idev,
|
||||||
|
|||||||
Reference in New Issue
Block a user