}
static int isci_reset_device(struct isci_host *ihost,
- struct isci_remote_device *idev, int hard_reset)
+ struct isci_remote_device *idev)
{
struct sas_phy *phy = sas_find_local_phy(idev->domain_dev);
struct isci_port *iport = idev->isci_port;
if (!scsi_is_sas_phy_local(phy))
set_bit(IPORT_BCN_BLOCKED, &iport->flags);
- rc = sas_phy_reset(phy, hard_reset);
+ rc = sas_phy_reset(phy, true);
/* Terminate in-progress I/O now. */
isci_remote_device_nuke_requests(ihost, idev);
{
struct isci_host *ihost = dev_to_ihost(dev);
struct isci_remote_device *idev;
- int ret, hard_reset = 1;
unsigned long flags;
+ int ret;
spin_lock_irqsave(&ihost->scic_lock, flags);
idev = isci_lookup_device(dev);
goto out;
}
- if (dev->dev_type == SATA_DEV || (dev->tproto & SAS_PROTOCOL_STP))
- hard_reset = 0;
-
- ret = isci_reset_device(ihost, idev, hard_reset);
+ ret = isci_reset_device(ihost, idev);
out:
isci_put_device(idev);
return ret;
struct domain_device *dev = sdev_to_domain_dev(cmd->device);
struct isci_host *ihost = dev_to_ihost(dev);
struct isci_remote_device *idev;
- int ret, hard_reset = 1;
unsigned long flags;
-
- if (dev->dev_type == SATA_DEV || (dev->tproto & SAS_PROTOCOL_STP))
- hard_reset = 0;
+ int ret;
spin_lock_irqsave(&ihost->scic_lock, flags);
idev = isci_lookup_device(dev);
goto out;
}
- ret = isci_reset_device(ihost, idev, hard_reset);
+ ret = isci_reset_device(ihost, idev);
out:
isci_put_device(idev);
return ret;