diff options
author | Adrian Hunter <adrian.hunter@intel.com> | 2020-11-03 16:14:03 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-11-04 23:03:58 -0500 |
commit | 151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98 (patch) | |
tree | 92a9fba67cebedfff21cd9b58f71fbdd8591c950 /drivers/scsi/arcmsr | |
parent | fe1d4c2ebcae994dffe8673cc3cba10102d15d11 (diff) | |
download | lwn-151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98.tar.gz lwn-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