Skip to content

ufs: Remove the clock gating code

Bart Van Assche linux-scsi llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7ufs: core: Change the type of an ufshcd_clkgate_delay_set() argumentdrivers/ufs/core/ufshcd.c include/ufs/ufshcd.h+4 -50 replies
2/7ufs: host: mediatek: Use ufshcd_clkgate_delay_set()drivers/ufs/host/ufs-mediatek.c+1 -40 replies
3/7ufs: core: Redirect clock gating to RPMdrivers/ufs/core/ufshcd.c include/ufs/ufshcd.h+32 -190 replies
4/7ufs: core: Switch from clock gating to RPMdrivers/ufs/core/ufshcd.c+8 -950 replies
5/7ufs: core: Remove unused code and data structuresdrivers/ufs/core/ufs_trace.h drivers/ufs/core/ufshcd.c include/ufs/ufshcd.h+4 -2080 replies
6/7ufs: core: Remove superfluous ufshcd_{hold,release}() callsdrivers/ufs/core/ufs-sysfs.c drivers/ufs/core/ufshcd.c+0 -60 replies
7/7ufs: core: Remove ufshcd_{hold,release}() calls from the I/O pathdrivers/ufs/core/ufshcd.c+1 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/7] ufs: Remove the clock gating code

Hi Martin,

There is some duplicate code in the UFS driver: both the runtime power management (RPM) code and the clock gating code switch between the same low-power and fully-powered state. Since the RPM code is more efficient, this patch series remove the clock gating code. This change has been realized without modifying the driver behavior and without breaking the UFS driver sysfs interface.

Please consider this patch series for the next merge window.

Thanks,

Bart.

Bart Van Assche (7):
ufs: core: Change the type of an ufshcd_clkgate_delay_set() argument
ufs: host: mediatek: Use ufshcd_clkgate_delay_set()
ufs: core: Redirect clock gating to RPM
ufs: core: Switch from clock gating to RPM
ufs: core: Remove unused code and data structures
ufs: core: Remove superfluous ufshcd_{hold,release}() calls
ufs: core: Remove ufshcd_{hold,release}() calls from the I/O path

 drivers/ufs/core/ufs-sysfs.c    |   2 -
 drivers/ufs/core/ufs_trace.h    |  27 ---
 drivers/ufs/core/ufshcd.c       | 319 +++++---------------------------
 drivers/ufs/host/ufs-mediatek.c |   5 +-
 include/ufs/ufshcd.h            |  37 +---
 5 files changed, 48 insertions(+), 342 deletions(-)