scsi: ufs: Fix index of attributes query for WriteBooster feature
authorStanley Chu <stanley.chu@mediatek.com>
Fri, 22 May 2020 08:32:11 +0000 (16:32 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 27 May 2020 01:14:07 +0000 (21:14 -0400)
commite31011ab370989022abf216c606f947a3b02a53a
treeadd414f5b64c5811dd57038e43c949f1dc166c4f
parentc7cee3e746a5b5a79d415112f7b7af90e8259fa1
scsi: ufs: Fix index of attributes query for WriteBooster feature

For WriteBooster feature related attributes, the index used by query shall
be LUN ID if LU Dedicated buffer mode is enabled.

Link: https://lore.kernel.org/r/20200522083212.4008-4-stanley.chu@mediatek.com
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Asutosh Das <asutoshd@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufs-sysfs.c
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h