RE: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-05 Thread Bean Huo (beanhuo)
vger.kernel.org >Subject: Re: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device > >On Tue 04 Jun 01:13 PDT 2019, Bean Huo (beanhuo) wrote: >> >@@ -6159,6 +6179,9 @@ static int ufshcd_reset_and_restore(struct >> >ufs_hba >> >*hba) >> &

Re: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread Bjorn Andersson
On Tue 04 Jun 01:13 PDT 2019, Bean Huo (beanhuo) wrote: > >@@ -6159,6 +6179,9 @@ static int ufshcd_reset_and_restore(struct ufs_hba > >*hba) > > int retries = MAX_HOST_RESET_RETRIES; > > > > do { > >+/* Reset the attached device */ > >+ufshcd_device_reset(hba); > >+

Re: [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread Bjorn Andersson
On Tue 04 Jun 08:25 PDT 2019, Stephen Boyd wrote: > Quoting Bjorn Andersson (2019-06-04 00:20:00) > > @@ -6104,6 +6105,25 @@ static int ufshcd_abort(struct scsi_cmnd *cmd) > > return err; > > } > > > > +/** > > + ufshcd_device_reset() - toggle the (optional) device reset line > > + * @h

Re: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread John Stultz
On Tue, Jun 4, 2019 at 1:14 AM Bean Huo (beanhuo) wrote: > > Hi, Bjorn > > >Acquire the device-reset GPIO and toggle this to reset the UFS device during > >initialization and host reset. > > > >+/** > >+ ufshcd_device_reset() - toggle the (optional) device reset line > >+ * @hba: per-adapter insta

Re: [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread Stephen Boyd
Quoting Bjorn Andersson (2019-06-04 00:20:00) > @@ -6104,6 +6105,25 @@ static int ufshcd_abort(struct scsi_cmnd *cmd) > return err; > } > > +/** > + ufshcd_device_reset() - toggle the (optional) device reset line > + * @hba: per-adapter instance > + * > + * Toggles the (optional) reset l

RE: [EXT] [PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread Bean Huo (beanhuo)
Hi, Bjorn >Acquire the device-reset GPIO and toggle this to reset the UFS device during >initialization and host reset. > >+/** >+ ufshcd_device_reset() - toggle the (optional) device reset line >+ * @hba: per-adapter instance >+ * >+ * Toggles the (optional) reset line to reset the attached devic

[PATCH 2/3] scsi: ufs: Allow resetting the UFS device

2019-06-04 Thread Bjorn Andersson
Acquire the device-reset GPIO and toggle this to reset the UFS device during initialization and host reset. Signed-off-by: Bjorn Andersson --- drivers/scsi/ufs/ufshcd.c | 44 +++ drivers/scsi/ufs/ufshcd.h | 4 2 files changed, 48 insertions(+) diff --gi