lkml.org 
[lkml]   [2020]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH V4 2/2] scsi: ufs: Allow an error return value from ->device_reset()
From
Date
On Tue, 2020-11-03 at 16:14 +0200, Adrian Hunter wrote:
> 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.
>
> Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Reviewed-by: Bean huo <beanhuo@micron.com>


\
 
 \ /
  Last update: 2020-11-04 09:45    [W:0.134 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site