diff options
| author | 2020-11-03 16:14:03 +0200 | |
|---|---|---|
| committer | 2020-11-04 23:03:58 -0500 | |
| commit | 151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98 (patch) | |
| tree | 92a9fba67cebedfff21cd9b58f71fbdd8591c950 /scripts | |
| parent | scsi: ufs: Add DeepSleep feature (diff) | |
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 'scripts')
0 files changed, 0 insertions, 0 deletions
