Commit a0de7900 authored by Bean Huo's avatar Bean Huo Committed by Treehugger Robot
Browse files

FROMGIT: scsi: ufs: core: Clean up ufshcd_slave_alloc()



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.

Change-Id: I16a12cb5986bd32450586befe01fddc186fffd8c
Signed-off-by: default avatarBean Huo <beanhuo@micron.com>
Link: https://lore.kernel.org/r/20221025222430.277768-3-beanhuo@iokpp.de


Reviewed-by: default avatarArthur Simchaev <arthur.simchaev@wdc.com>
Reviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
(cherry picked from commit dca899bc git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git

 for-next)
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 12cfa179
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment