|
@@ -326,6 +326,9 @@ static int sas_ata_hard_reset(struct ata_link *link, unsigned int *class,
|
|
struct domain_device *dev = ap->private_data;
|
|
struct domain_device *dev = ap->private_data;
|
|
struct sas_internal *i = dev_to_sas_internal(dev);
|
|
struct sas_internal *i = dev_to_sas_internal(dev);
|
|
|
|
|
|
|
|
+ if (test_bit(SAS_DEV_GONE, &dev->state))
|
|
|
|
+ return -ENODEV;
|
|
|
|
+
|
|
res = i->dft->lldd_I_T_nexus_reset(dev);
|
|
res = i->dft->lldd_I_T_nexus_reset(dev);
|
|
|
|
|
|
if (res != TMF_RESP_FUNC_COMPLETE)
|
|
if (res != TMF_RESP_FUNC_COMPLETE)
|