diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2020-11-03 15:14:03 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-05 05:03:58 +0100 |
commit | 151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98 (patch) | |
tree | 92a9fba67cebedfff21cd9b58f71fbdd8591c950 /drivers/scsi/arcmsr | |
parent | scsi: ufs: Add DeepSleep feature (diff) | |
download | linux-151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98.tar.xz linux-151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98.zip |
scsi: ufs: Allow an error return value from ->device_reset()
It is simpler for drivers to provide a ->device_reset() callback
irrespective of whether the GPIO, or firmware interface necessary to do the
reset, is discovered during probe.
Change ->device_reset() to return an error code. Drivers that provide the
callback, but do not do the reset operation should return -EOPNOTSUPP.
Link: https://lore.kernel.org/r/20201103141403.2142-3-adrian.hunter@intel.com
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Reviewed-by: Stanley Chu <stanley.chu@mediatek.com>
Reviewed-by: Bean huo <beanhuo@micron.com>
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/arcmsr')
0 files changed, 0 insertions, 0 deletions