summaryrefslogtreecommitdiff
path: root/init/calibrate.c
diff options
context:
space:
mode:
authorBean Huo <beanhuo@micron.com>2020-06-03 11:19:58 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2020-06-15 23:17:48 -0400
commit7a0bf85b5e1859bfd40a07279d20edd847265702 (patch)
tree6db0554782b1cb18b9f18efe69e9a9afba7f4bf3 /init/calibrate.c
parentcbe193f6f093b79fd1ab998dd95f73f874fb4733 (diff)
scsi: ufs: Clean up ufs initialization path
At UFS initialization stage, to get the length of the descriptor, ufshcd_read_desc_length() was being called 6 times. Instead, we will capture the descriptor size the first time we'll read it. Delete unnecessary redundant code, remove ufshcd_read_desc_length(), ufshcd_init_desc_sizes(), and boost UFS initialization. Link: https://lore.kernel.org/r/20200603091959.27618-5-huobean@gmail.com Acked-by: Avri Altman <avri.altman@wdc.com> Reviewed-by: Bart van Assche <bvanassche@acm.org> Reviewed-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Bean Huo <beanhuo@micron.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions