@@ -3900,20 +3900,15 @@ static int sd_resume(struct device *dev, bool runtime)
if (!sdkp) /* E.g.: runtime resume at the start of sd_probe() */
return 0;
- if (!sd_do_start_stop(sdkp->device, runtime)) {
- sdkp->suspended = false;
- return 0;
- }
-
- if (!sdkp->device->no_start_on_resume) {
+ if (sd_do_start_stop(sdkp->device, runtime)) {
sd_printk(KERN_NOTICE, sdkp, "Starting disk\n");
ret = sd_start_stop_device(sdkp, 1);
+ if (!ret)
+ opal_unlock_from_suspend(sdkp->opal_dev);
}
- if (!ret) {
- opal_unlock_from_suspend(sdkp->opal_dev);
+ if (!ret)
sdkp->suspended = false;
- }
return ret;
}
@@ -195,7 +195,6 @@ struct scsi_device {
unsigned allow_restart:1; /* issue START_UNIT in error handler */
unsigned manage_system_start_stop:1; /* Let HLD (sd) manage system start/stop */
unsigned manage_runtime_start_stop:1; /* Let HLD (sd) manage runtime start/stop */
- unsigned no_start_on_resume:1; /* Do not issue START_STOP_UNIT on resume */
unsigned start_stop_pwr_cond:1; /* Set power cond. in START_STOP_UNIT */
unsigned no_uld_attach:1; /* disable connecting to upper level drivers */
unsigned select_no_atn:1;