UPSTREAM: scsi: ufs: ufs-mediatek: Configure individual LU queue flags

Previously, ufs vops config_scsi_dev was removed because there were no
users. ufs-mediatek needs it to configure the queue flags for each LU
individually. Therefore, bring it back and customize the queue flag as
required.

[mkp: fixed typo]

Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
Link: https://lore.kernel.org/r/20241008065950.23431-1-ed.tsai@mediatek.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

Bug: 386851591
Change-Id: I14e5611ac777daab66c358d800fed57805785ff9
(cherry picked from commit 	7670e74ff31939acd792ff59fa83bc73d040dd8e)
Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
This commit is contained in:
Ed Tsai
2024-10-08 14:59:42 +08:00
parent 9a6eafb713
commit a86e496d3a
3 changed files with 14 additions and 0 deletions
+1
View File
@@ -388,6 +388,7 @@ struct ufs_hba_variant_ops {
int (*get_outstanding_cqs)(struct ufs_hba *hba,
unsigned long *ocqs);
int (*config_esi)(struct ufs_hba *hba);
void (*config_scsi_dev)(struct scsi_device *sdev);
};
/* clock gating state */