Re: [PATCH v4 18/23] scsi: ufs: core: Add reinit_notify() callback

From: Manivannan Sadhasivam
Date: Fri Dec 02 2022 - 02:32:48 EST


On Thu, Dec 01, 2022 at 10:05:57AM -0800, Bart Van Assche wrote:
> On 12/1/22 09:43, Manivannan Sadhasivam wrote:
> > reinit_notify() callback can be used by the UFS controllers to perform
> > changes required for UFS core reinit.
>
> What does "UFS core" refer to in this context? Should "UFS core" perhaps be
> changed into "UFS controller phy"?
>

By "UFS core" I meant the UFSHCD driver. Will change it.

> > diff --git a/include/ufs/ufshcd.h b/include/ufs/ufshcd.h
> > index 5cf81dff60aa..af8c95077d96 100644
> > --- a/include/ufs/ufshcd.h
> > +++ b/include/ufs/ufshcd.h
> > @@ -297,6 +297,7 @@ struct ufs_pwr_mode_info {
> > * @config_scaling_param: called to configure clock scaling parameters
> > * @program_key: program or evict an inline encryption key
> > * @event_notify: called to notify important events
> > + * @reinit_notify: called to notify UFS core reinit
>
> Please make this comment more clear. Nobody knows what "UFS core" means.
>

Will change it to "called to notify reinit of UFSHCD during max gear switch"

Thanks,
Mani

> Thanks,
>
> Bart.
>

--
மணிவண்ணன் சதாசிவம்