@@ -1118,6 +1118,12 @@ int ata_scsi_dev_config(struct scsi_device *sdev, struct ata_device *dev)
return 0;
}
+int ata_init_cmd_priv(struct Scsi_Host *shost, struct scsi_cmnd *cmd)
+{
+ return 0;
+}
+EXPORT_SYMBOL_GPL(ata_init_cmd_priv);
+
int ata_internal_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *scmd)
{
struct ata_port *ap;
@@ -63,6 +63,8 @@ static struct scsi_host_template aic94xx_sht = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
static int asd_map_memio(struct asd_ha_struct *asd_ha)
@@ -1763,6 +1763,8 @@ static struct scsi_host_template sht_v1_hw = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
static const struct hisi_sas_hw hisi_sas_v1_hw = {
@@ -3581,6 +3581,8 @@ static struct scsi_host_template sht_v2_hw = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
static const struct hisi_sas_hw hisi_sas_v2_hw = {
@@ -3248,6 +3248,8 @@ static struct scsi_host_template sht_v3_hw = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
static const struct hisi_sas_hw hisi_sas_v3_hw = {
@@ -180,6 +180,8 @@ static struct scsi_host_template isci_sht = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
static struct sas_domain_function_template isci_transport_ops = {
@@ -57,6 +57,8 @@ static struct scsi_host_template mvs_sht = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
static struct sas_domain_function_template mvs_transport_ops = {
@@ -126,6 +126,8 @@ static struct scsi_host_template pm8001_sht = {
.reserved_queuecommand = sas_queuecommand_internal,
.reserved_timedout = sas_internal_timeout,
.nr_reserved_cmds = 2,
+ .init_cmd_priv = ata_init_cmd_priv,
+ .cmd_size = sizeof(struct ata_queued_cmd),
};
/*
@@ -1143,6 +1143,7 @@ extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev);
extern int ata_scsi_slave_config(struct scsi_device *sdev);
extern int ata_internal_queuecommand(struct Scsi_Host *shost,
struct scsi_cmnd *scmd);
+extern int ata_init_cmd_priv(struct Scsi_Host *shost, struct scsi_cmnd *cmd);
extern void ata_scsi_slave_destroy(struct scsi_device *sdev);
extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,
int queue_depth);
@@ -1394,7 +1395,9 @@ extern const struct attribute_group *ata_common_sdev_groups[];
.bios_param = ata_std_bios_param, \
.unlock_native_capacity = ata_scsi_unlock_native_capacity,\
.max_sectors = ATA_MAX_SECTORS_LBA48,\
- .reserved_queuecommand = ata_internal_queuecommand
+ .reserved_queuecommand = ata_internal_queuecommand,\
+ .cmd_size = sizeof(struct ata_queued_cmd),\
+ .init_cmd_priv = ata_init_cmd_priv
#define ATA_SUBBASE_SHT(drv_name) \
__ATA_BASE_SHT(drv_name), \