]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ufs: Remove two WB related fields from struct ufs_dev_info
authorBean Huo <beanhuo@micron.com>
Tue, 19 Jan 2021 16:38:45 +0000 (17:38 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Jan 2021 03:12:30 +0000 (22:12 -0500)
commit0d74ddc4f219ea69443548556c549602e0a5d547
tree5cfe59fc325c1f5ff77a06022fbaf40714c6f9d0
parenteb47a4e2a31f359ced1517ee3b4b7c6e75e68de1
scsi: ufs: Remove two WB related fields from struct ufs_dev_info

d_wb_alloc_units and d_ext_ufs_feature_sup are only used during WB probe.
They are used to confirm the condition that "if bWriteBoosterBufferType
is set to 01h but dNumSharedWriteBoosterBufferAllocUnits is set to zero,
the WriteBooster feature is disabled", and if UFS device supports WB.

No need to keep them after probing is complete.

Link: https://lore.kernel.org/r/20210119163847.20165-5-huobean@gmail.com
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>
drivers/scsi/ufs/ufs.h
drivers/scsi/ufs/ufshcd.c