diff options
| author | Adrian Hunter <[email protected]> | 2020-11-03 16:14:03 +0200 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2020-11-04 23:03:58 -0500 |
| commit | 151f1b664ffbb847c7fbbce5a5b8580f1b9b1d98 (patch) | |
| tree | 92a9fba67cebedfff21cd9b58f71fbdd8591c950 /tools/perf/scripts/python | |
| parent | fe1d4c2ebcae994dffe8673cc3cba10102d15d11 (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/[email protected]
Reviewed-by: Asutosh Das <[email protected]>
Reviewed-by: Stanley Chu <[email protected]>
Reviewed-by: Bean huo <[email protected]>
Reviewed-by: Can Guo <[email protected]>
Signed-off-by: Adrian Hunter <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions