mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-05 13:29:17 -04:00
scsi: qla2xxx: Remove unused qla82xx_wait_for_state_change()
qla82xx_wait_for_state_change() was added in 2010 as part of commit
579d12b58a ("[SCSI] qla2xxx: Added support for quiescence mode for
ISP82xx.") but has remained unused.
Remove it.
Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Link: https://lore.kernel.org/r/20250415002803.135909-6-linux@treblig.org
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
89981b47f6
commit
2a2f3168c5
@@ -865,7 +865,6 @@ extern int qla82xx_rd_32(struct qla_hw_data *, ulong);
|
||||
|
||||
/* ISP 8021 IDC */
|
||||
extern void qla82xx_clear_drv_active(struct qla_hw_data *);
|
||||
extern uint32_t qla82xx_wait_for_state_change(scsi_qla_host_t *, uint32_t);
|
||||
extern int qla82xx_idc_lock(struct qla_hw_data *);
|
||||
extern void qla82xx_idc_unlock(struct qla_hw_data *);
|
||||
extern int qla82xx_device_state_handler(scsi_qla_host_t *);
|
||||
|
||||
@@ -2915,32 +2915,6 @@ qla82xx_need_qsnt_handler(scsi_qla_host_t *vha)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* qla82xx_wait_for_state_change
|
||||
* Wait for device state to change from given current state
|
||||
*
|
||||
* Note:
|
||||
* IDC lock must not be held upon entry
|
||||
*
|
||||
* Return:
|
||||
* Changed device state.
|
||||
*/
|
||||
uint32_t
|
||||
qla82xx_wait_for_state_change(scsi_qla_host_t *vha, uint32_t curr_state)
|
||||
{
|
||||
struct qla_hw_data *ha = vha->hw;
|
||||
uint32_t dev_state;
|
||||
|
||||
do {
|
||||
msleep(1000);
|
||||
qla82xx_idc_lock(ha);
|
||||
dev_state = qla82xx_rd_32(ha, QLA82XX_CRB_DEV_STATE);
|
||||
qla82xx_idc_unlock(ha);
|
||||
} while (dev_state == curr_state);
|
||||
|
||||
return dev_state;
|
||||
}
|
||||
|
||||
void
|
||||
qla8xxx_dev_failed_handler(scsi_qla_host_t *vha)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user