mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
scsi: libsas: Delete lldd_clear_aca callback
This callback is never called, so remove support. Link: https://lore.kernel.org/r/1645112566-115804-4-git-send-email-john.garry@huawei.com Tested-by: Yihang Li <liyihang6@hisilicon.com> Tested-by: Damien Le Moal <damien.lemoal@opensource.wdc.com> Reviewed-by: Jack Wang <jinpu.wang@ionos.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Xiang Chen <chenxiang66@hisilicon.com> Signed-off-by: John Garry <john.garry@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
1d6049a3b1
commit
25882c82f8
@ -207,7 +207,6 @@ Management Functions (TMFs) described in SAM::
|
||||
/* Task Management Functions. Must be called from process context. */
|
||||
int (*lldd_abort_task)(struct sas_task *);
|
||||
int (*lldd_abort_task_set)(struct domain_device *, u8 *lun);
|
||||
int (*lldd_clear_aca)(struct domain_device *, u8 *lun);
|
||||
int (*lldd_clear_task_set)(struct domain_device *, u8 *lun);
|
||||
int (*lldd_I_T_nexus_reset)(struct domain_device *);
|
||||
int (*lldd_lu_reset)(struct domain_device *, u8 *lun);
|
||||
@ -262,7 +261,6 @@ can look like this (called last thing from probe())
|
||||
|
||||
my_ha->sas_ha.lldd_abort_task = my_abort_task;
|
||||
my_ha->sas_ha.lldd_abort_task_set = my_abort_task_set;
|
||||
my_ha->sas_ha.lldd_clear_aca = my_clear_aca;
|
||||
my_ha->sas_ha.lldd_clear_task_set = my_clear_task_set;
|
||||
my_ha->sas_ha.lldd_I_T_nexus_reset= NULL; (2)
|
||||
my_ha->sas_ha.lldd_lu_reset = my_lu_reset;
|
||||
|
@ -60,7 +60,6 @@ void asd_set_dmamode(struct domain_device *dev);
|
||||
/* ---------- TMFs ---------- */
|
||||
int asd_abort_task(struct sas_task *);
|
||||
int asd_abort_task_set(struct domain_device *, u8 *lun);
|
||||
int asd_clear_aca(struct domain_device *, u8 *lun);
|
||||
int asd_clear_task_set(struct domain_device *, u8 *lun);
|
||||
int asd_lu_reset(struct domain_device *, u8 *lun);
|
||||
int asd_I_T_nexus_reset(struct domain_device *dev);
|
||||
|
@ -960,7 +960,6 @@ static struct sas_domain_function_template aic94xx_transport_functions = {
|
||||
|
||||
.lldd_abort_task = asd_abort_task,
|
||||
.lldd_abort_task_set = asd_abort_task_set,
|
||||
.lldd_clear_aca = asd_clear_aca,
|
||||
.lldd_clear_task_set = asd_clear_task_set,
|
||||
.lldd_I_T_nexus_reset = asd_I_T_nexus_reset,
|
||||
.lldd_lu_reset = asd_lu_reset,
|
||||
|
@ -644,15 +644,6 @@ int asd_abort_task_set(struct domain_device *dev, u8 *lun)
|
||||
return res;
|
||||
}
|
||||
|
||||
int asd_clear_aca(struct domain_device *dev, u8 *lun)
|
||||
{
|
||||
int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_ACA, 0);
|
||||
|
||||
if (res == TMF_RESP_FUNC_COMPLETE)
|
||||
asd_clear_nexus_I_T_L(dev, lun);
|
||||
return res;
|
||||
}
|
||||
|
||||
int asd_clear_task_set(struct domain_device *dev, u8 *lun)
|
||||
{
|
||||
int res = asd_initiate_ssp_tmf(dev, lun, TMF_CLEAR_TASK_SET, 0);
|
||||
|
@ -1793,17 +1793,6 @@ static int hisi_sas_abort_task_set(struct domain_device *device, u8 *lun)
|
||||
return rc;
|
||||
}
|
||||
|
||||
static int hisi_sas_clear_aca(struct domain_device *device, u8 *lun)
|
||||
{
|
||||
struct hisi_sas_tmf_task tmf_task;
|
||||
int rc;
|
||||
|
||||
tmf_task.tmf = TMF_CLEAR_ACA;
|
||||
rc = hisi_sas_debug_issue_ssp_tmf(device, lun, &tmf_task);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
#define I_T_NEXUS_RESET_PHYUP_TIMEOUT (2 * HZ)
|
||||
|
||||
static int hisi_sas_debug_I_T_nexus_reset(struct domain_device *device)
|
||||
@ -2333,7 +2322,6 @@ static struct sas_domain_function_template hisi_sas_transport_ops = {
|
||||
.lldd_control_phy = hisi_sas_control_phy,
|
||||
.lldd_abort_task = hisi_sas_abort_task,
|
||||
.lldd_abort_task_set = hisi_sas_abort_task_set,
|
||||
.lldd_clear_aca = hisi_sas_clear_aca,
|
||||
.lldd_I_T_nexus_reset = hisi_sas_I_T_nexus_reset,
|
||||
.lldd_lu_reset = hisi_sas_lu_reset,
|
||||
.lldd_query_task = hisi_sas_query_task,
|
||||
|
@ -193,7 +193,6 @@ static struct sas_domain_function_template isci_transport_ops = {
|
||||
/* Task Management Functions. Must be called from process context. */
|
||||
.lldd_abort_task = isci_task_abort_task,
|
||||
.lldd_abort_task_set = isci_task_abort_task_set,
|
||||
.lldd_clear_aca = isci_task_clear_aca,
|
||||
.lldd_clear_task_set = isci_task_clear_task_set,
|
||||
.lldd_I_T_nexus_reset = isci_task_I_T_nexus_reset,
|
||||
.lldd_lu_reset = isci_task_lu_reset,
|
||||
|
@ -620,24 +620,6 @@ int isci_task_abort_task_set(
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* isci_task_clear_aca() - This function is one of the SAS Domain Template
|
||||
* functions. This is one of the Task Management functoins called by libsas.
|
||||
* @d_device: This parameter specifies the domain device associated with this
|
||||
* request.
|
||||
* @lun: This parameter specifies the lun associated with this request.
|
||||
*
|
||||
* status, zero indicates success.
|
||||
*/
|
||||
int isci_task_clear_aca(
|
||||
struct domain_device *d_device,
|
||||
u8 *lun)
|
||||
{
|
||||
return TMF_RESP_FUNC_FAILED;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* isci_task_clear_task_set() - This function is one of the SAS Domain Template
|
||||
* functions. This is one of the Task Management functoins called by libsas.
|
||||
|
@ -140,10 +140,6 @@ int isci_task_abort_task_set(
|
||||
struct domain_device *d_device,
|
||||
u8 *lun);
|
||||
|
||||
int isci_task_clear_aca(
|
||||
struct domain_device *d_device,
|
||||
u8 *lun);
|
||||
|
||||
int isci_task_clear_task_set(
|
||||
struct domain_device *d_device,
|
||||
u8 *lun);
|
||||
|
@ -64,7 +64,6 @@ static struct sas_domain_function_template mvs_transport_ops = {
|
||||
|
||||
.lldd_abort_task = mvs_abort_task,
|
||||
.lldd_abort_task_set = mvs_abort_task_set,
|
||||
.lldd_clear_aca = mvs_clear_aca,
|
||||
.lldd_clear_task_set = mvs_clear_task_set,
|
||||
.lldd_I_T_nexus_reset = mvs_I_T_nexus_reset,
|
||||
.lldd_lu_reset = mvs_lu_reset,
|
||||
|
@ -1550,17 +1550,6 @@ int mvs_abort_task_set(struct domain_device *dev, u8 *lun)
|
||||
return rc;
|
||||
}
|
||||
|
||||
int mvs_clear_aca(struct domain_device *dev, u8 *lun)
|
||||
{
|
||||
int rc = TMF_RESP_FUNC_FAILED;
|
||||
struct mvs_tmf_task tmf_task;
|
||||
|
||||
tmf_task.tmf = TMF_CLEAR_ACA;
|
||||
rc = mvs_debug_issue_ssp_tmf(dev, lun, &tmf_task);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
int mvs_clear_task_set(struct domain_device *dev, u8 *lun)
|
||||
{
|
||||
int rc = TMF_RESP_FUNC_FAILED;
|
||||
|
@ -441,7 +441,6 @@ int mvs_scan_finished(struct Scsi_Host *shost, unsigned long time);
|
||||
int mvs_queue_command(struct sas_task *task, gfp_t gfp_flags);
|
||||
int mvs_abort_task(struct sas_task *task);
|
||||
int mvs_abort_task_set(struct domain_device *dev, u8 *lun);
|
||||
int mvs_clear_aca(struct domain_device *dev, u8 *lun);
|
||||
int mvs_clear_task_set(struct domain_device *dev, u8 * lun);
|
||||
void mvs_port_formed(struct asd_sas_phy *sas_phy);
|
||||
void mvs_port_deformed(struct asd_sas_phy *sas_phy);
|
||||
|
@ -123,7 +123,6 @@ static struct sas_domain_function_template pm8001_transport_ops = {
|
||||
|
||||
.lldd_abort_task = pm8001_abort_task,
|
||||
.lldd_abort_task_set = pm8001_abort_task_set,
|
||||
.lldd_clear_aca = pm8001_clear_aca,
|
||||
.lldd_clear_task_set = pm8001_clear_task_set,
|
||||
.lldd_I_T_nexus_reset = pm8001_I_T_nexus_reset,
|
||||
.lldd_lu_reset = pm8001_lu_reset,
|
||||
|
@ -1358,14 +1358,6 @@ int pm8001_abort_task_set(struct domain_device *dev, u8 *lun)
|
||||
return pm8001_issue_ssp_tmf(dev, lun, &tmf_task);
|
||||
}
|
||||
|
||||
int pm8001_clear_aca(struct domain_device *dev, u8 *lun)
|
||||
{
|
||||
struct pm8001_tmf_task tmf_task;
|
||||
|
||||
tmf_task.tmf = TMF_CLEAR_ACA;
|
||||
return pm8001_issue_ssp_tmf(dev, lun, &tmf_task);
|
||||
}
|
||||
|
||||
int pm8001_clear_task_set(struct domain_device *dev, u8 *lun)
|
||||
{
|
||||
struct pm8001_tmf_task tmf_task;
|
||||
|
@ -649,7 +649,6 @@ int pm8001_scan_finished(struct Scsi_Host *shost, unsigned long time);
|
||||
int pm8001_queue_command(struct sas_task *task, gfp_t gfp_flags);
|
||||
int pm8001_abort_task(struct sas_task *task);
|
||||
int pm8001_abort_task_set(struct domain_device *dev, u8 *lun);
|
||||
int pm8001_clear_aca(struct domain_device *dev, u8 *lun);
|
||||
int pm8001_clear_task_set(struct domain_device *dev, u8 *lun);
|
||||
int pm8001_dev_found(struct domain_device *dev);
|
||||
void pm8001_dev_gone(struct domain_device *dev);
|
||||
|
@ -636,7 +636,6 @@ struct sas_domain_function_template {
|
||||
/* Task Management Functions. Must be called from process context. */
|
||||
int (*lldd_abort_task)(struct sas_task *);
|
||||
int (*lldd_abort_task_set)(struct domain_device *, u8 *lun);
|
||||
int (*lldd_clear_aca)(struct domain_device *, u8 *lun);
|
||||
int (*lldd_clear_task_set)(struct domain_device *, u8 *lun);
|
||||
int (*lldd_I_T_nexus_reset)(struct domain_device *);
|
||||
int (*lldd_ata_check_ready)(struct domain_device *);
|
||||
|
Loading…
Reference in New Issue
Block a user