RE: [PATCH v4 2/3] scsi: ufs: core: Cleanup ufshcd_slave_alloc()

From: Arthur Simchaev
Date: Sun Oct 23 2022 - 05:47:31 EST


> -----Original Message-----
> From: Bean Huo <beanhuo@xxxxxxxx>
> Sent: Sunday, October 23, 2022 12:37 AM
> To: alim.akhtar@xxxxxxxxxxx; Avri Altman <Avri.Altman@xxxxxxx>;
> asutoshd@xxxxxxxxxxxxxx; jejb@xxxxxxxxxxxxx;
> martin.petersen@xxxxxxxxxx; stanley.chu@xxxxxxxxxxxx;
> beanhuo@xxxxxxxxxx; bvanassche@xxxxxxx; tomas.winkler@xxxxxxxxx;
> cang@xxxxxxxxxxxxxx; daejun7.park@xxxxxxxxxxx
> Cc: linux-scsi@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
> Subject: [PATCH v4 2/3] scsi: ufs: core: Cleanup ufshcd_slave_alloc()
>
> CAUTION: This email originated from outside of Western Digital. Do not click
> on links or open attachments unless you recognize the sender and know that
> the content is safe.
>
>
> From: Bean Huo <beanhuo@xxxxxxxxxx>
>
> Combine ufshcd_get_lu_power_on_wp_status() and
> ufshcd_set_queue_depth()
> into one single ufshcd_lu_init(), so that we only need to read the LUN
> descriptor once.
>
> Signed-off-by: Bean Huo <beanhuo@xxxxxxxxxx>

Reviewed-by: Arthur Simchaev <arthur.simchaev@xxxxxxx>