mbox series

[v4,0/6] Several changes for UFS WriteBooster

Message ID 20201211140035.20016-1-huobean@gmail.com
Headers show
Series Several changes for UFS WriteBooster | expand

Message

Bean Huo Dec. 11, 2020, 2 p.m. UTC
From: Bean Huo <beanhuo@micron.com>

Changelog:
v3--v4:
  1. Rebase patch on 5.11/scsi-staging
  2. Add WB cleanup patches 3/6, 4/6 adn 5/6

v2--v3:
  1. Change multi-line comments style in patch 1/3 (Can Guo)

v1--v2:
  1. Take is_hibern8_wb_flush checkup out from function
     ufshcd_wb_need_flush() in patch 2/3
  2. Add UFSHCD_CAP_CLK_SCALING checkup in patch 1/3. that means
     only for the platform, which doesn't support UFSHCD_CAP_CLK_SCALING,
     can control WB through "wb_on".

Bean Huo (6):
  scsi: ufs: Add "wb_on" sysfs node to control WB on/off
  scsi: ufs: Changes comment in the function ufshcd_wb_probe()
  scsi: ufs: Group UFS WB related flags to struct ufs_dev_info
  scsi: ufs: Remove d_wb_alloc_units from struct ufs_dev_info
  scsi: ufs: Cleanup WB buffer flush toggle implementation
  scsi: ufs: Keep device active mode only
    fWriteBoosterBufferFlushDuringHibernate == 1

 drivers/scsi/ufs/ufs-sysfs.c |  41 +++++++++++++
 drivers/scsi/ufs/ufs.h       |  33 +++++-----
 drivers/scsi/ufs/ufshcd.c    | 114 +++++++++++++++--------------------
 drivers/scsi/ufs/ufshcd.h    |   4 +-
 4 files changed, 112 insertions(+), 80 deletions(-)