]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - drivers/scsi/ufs/ufshcd.c
scsi: ufs: Customize flush threshold for WriteBooster
authorStanley Chu <stanley.chu@mediatek.com>
Sat, 9 May 2020 09:37:15 +0000 (17:37 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 May 2020 01:02:22 +0000 (21:02 -0400)
commitd14734ae3ae79d3b0286a2431782054e5066da8f
treea0b0a89a5af06bce8259ebf7b7524284ad3a53f8
parent90b8491c0033915ec1b290bc1c0de27935cb132d
scsi: ufs: Customize flush threshold for WriteBooster

Allow flush threshold for WriteBooster to be customizable by vendors. To
achieve this, make the value a variable in struct ufs_hba_variant_params.

Also introduce UFS_WB_BUF_REMAIN_PERCENT() macro to provide a more flexible
way to specify WriteBooster available buffer values.

Link: https://lore.kernel.org/r/20200509093716.21010-4-stanley.chu@mediatek.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.h
drivers/scsi/ufs/ufshcd.c
drivers/scsi/ufs/ufshcd.h