[PATCH v2 0/3] scsi: ufs: core: support WB buffer resize function

Lu Hongfei
2023-09-08T10:23:30Z

Hello,

This v2 series implements the function of controlling the wb buffer resize
via sysfs that will be supported in UFS4.1.

The patch 1 add WB buffer resize related attr_idns.
The patch 2 Add ufshcd_wb_buf_resize function to enable WB buffer resize.
The patch 3 Add sysfs attributes to control WB buffer resize function.

version 2 changes
-Using sysfs to control WB buffer resize instead of exception event handler
-Removed content related to exception event
-Solved several issues that caused compilation errors

Of course, there may be better ways to implement this feature.
If necessary, please point it out and I will optimize it as soon as
possible.

As of now, there have been no UFS device releases that support this
feature, so I have not tested the code on real hardware.

------------------------------------------------------------------------

Lu Hongfei (3):
scsi: ufs: core: add wb buffer resize related attr_idn
scsi: ufs: core: Add ufshcd_wb_buf_resize function to enable WB buffer
resize
scsi: ufs: core: Add sysfs attributes to control WB buffer resize
function

Documentation/ABI/testing/sysfs-driver-ufs | 52 ++++++++++++++++
drivers/ufs/core/ufs-sysfs.c | 71 ++++++++++++++++++++++
drivers/ufs/core/ufshcd-priv.h | 1 +
drivers/ufs/core/ufshcd.c | 21 +++++++
include/ufs/ufs.h | 5 +-
include/ufs/ufshcd.h | 1 +
6 files changed, 150 insertions(+), 1 deletion(-)

--
2.39.0