diff options
Diffstat (limited to 'drivers/ata/libata-scsi.c')
-rw-r--r-- | drivers/ata/libata-scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c index 15795394b0a8..1f036a7b14f3 100644 --- a/drivers/ata/libata-scsi.c +++ b/drivers/ata/libata-scsi.c | |||
@@ -3508,7 +3508,7 @@ static int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel, | |||
3508 | ata_port_for_each_link(link, ap) { | 3508 | ata_port_for_each_link(link, ap) { |
3509 | struct ata_eh_info *ehi = &link->eh_info; | 3509 | struct ata_eh_info *ehi = &link->eh_info; |
3510 | ehi->probe_mask |= (1 << ata_link_max_devices(link)) - 1; | 3510 | ehi->probe_mask |= (1 << ata_link_max_devices(link)) - 1; |
3511 | ehi->action |= ATA_EH_SOFTRESET; | 3511 | ehi->action |= ATA_EH_RESET; |
3512 | } | 3512 | } |
3513 | } else { | 3513 | } else { |
3514 | struct ata_device *dev = ata_find_dev(ap, devno); | 3514 | struct ata_device *dev = ata_find_dev(ap, devno); |
@@ -3516,7 +3516,7 @@ static int ata_scsi_user_scan(struct Scsi_Host *shost, unsigned int channel, | |||
3516 | if (dev) { | 3516 | if (dev) { |
3517 | struct ata_eh_info *ehi = &dev->link->eh_info; | 3517 | struct ata_eh_info *ehi = &dev->link->eh_info; |
3518 | ehi->probe_mask |= 1 << dev->devno; | 3518 | ehi->probe_mask |= 1 << dev->devno; |
3519 | ehi->action |= ATA_EH_SOFTRESET; | 3519 | ehi->action |= ATA_EH_RESET; |
3520 | ehi->flags |= ATA_EHI_RESUME_LINK; | 3520 | ehi->flags |= ATA_EHI_RESUME_LINK; |
3521 | } else | 3521 | } else |
3522 | rc = -EINVAL; | 3522 | rc = -EINVAL; |