Skip to content

Enhance UFS Mediatek Driver

[email protected] linux-mediatek linux-scsi 2 versions – Applied

Status from this message: Applied to 6.19/scsi-staging, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 6 repliesApplied
  2. v110 patches 26 repliesSuperseded

Changes in v2 from the cover letter

1. Remove two patches that will be fixed in UFS core.
ufs: host: mediatek: Fix runtime suspend error deadlock
ufs: host: mediatek: Enable interrupts for MCQ mode
2. Use hba->shutting_down instead of ufshcd_is_user_access_allowed

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/8ufs: host: mediatek: Correct clock scaling with PM QoS flowdrivers/ufs/core/ufshcd.c drivers/ufs/host/ufs-mediatek.c include/ufs/ufshcd.h+13 -11 reply
2/8ufs: host: mediatek: Adjust clock scaling for PM flowdrivers/ufs/host/ufs-mediatek.c+8 -40 replies
3/8ufs: host: mediatek: Handle clock scaling for high gear in PM flowdrivers/ufs/host/ufs-mediatek.c+6 -00 replies
4/8ufs: host: mediatek: Adjust sync length for FASTAUTO modedrivers/ufs/host/ufs-mediatek.c include/ufs/unipro.h+38 -11 reply
5/8ufs: host: mediatek: Fix shutdown/suspend race conditiondrivers/ufs/host/ufs-mediatek.c+5 -00 replies
6/8ufs: host: mediatek: Remove duplicate functiondrivers/ufs/core/ufs-sysfs.c drivers/ufs/host/ufs-mediatek.c include/ufs/ufshcd.h+4 -140 replies
7/8ufs: host: mediatek: Add support for new platform with MMIO_OTSD_CTRdrivers/ufs/host/ufs-mediatek.c drivers/ufs/host/ufs-mediatek.h+36 -70 replies
8/8ufs: host: mediatek: Support new feature for MT6991drivers/ufs/host/ufs-mediatek.c drivers/ufs/host/ufs-mediatek.h+9 -00 replies

Reviews trailers per patch

4 of 8 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchBart Van AsschePeter WangChun-Hung Wu
SeriesA-b
1/8R-b
2/8
3/8
4/8R-b
5/8
6/8R-b
7/8
8/8R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/8] Enhance UFS Mediatek Driver

From: Peter Wang <[email protected]>

Improves the UFS Mediatek driver by correcting clock scaling with PM QoS, and adjusting power management flows. It addresses shutdown/suspend race conditions, and removes redundant functions. Support for new platforms is added with the MMIO_OTSD_CTRL register, and MT6991 performance is optimized with MRTT and random improvements. These changes collectively enhance driver performance, stability, and compatibility.

Changes since v1:
1. Remove two patches that will be fixed in UFS core.
ufs: host: mediatek: Fix runtime suspend error deadlock
ufs: host: mediatek: Enable interrupts for MCQ mode
2. Use hba->shutting_down instead of ufshcd_is_user_access_allowed

Peter Wang (7):
ufs: host: mediatek: Correct clock scaling with PM QoS flow
ufs: host: mediatek: Adjust clock scaling for PM flow
ufs: host: mediatek: Handle clock scaling for high gear in PM flow
ufs: host: mediatek: Adjust sync length for FASTAUTO mode
ufs: host: mediatek: Fix shutdown/suspend race condition
ufs: host: mediatek: Remove duplicate function
ufs: host: mediatek: Add support for new platform with MMIO_OTSD_CTR

Naomi Chu (1):
ufs: host: mediatek: Support new feature for MT6991

 drivers/ufs/core/ufs-sysfs.c    |   3 +-
 drivers/ufs/core/ufshcd.c       |   3 +-
 drivers/ufs/host/ufs-mediatek.c | 119 ++++++++++++++++++++++++++------
 drivers/ufs/host/ufs-mediatek.h |   4 ++
 include/ufs/ufshcd.h            |   2 +
 include/ufs/unipro.h            |   7 +-
 6 files changed, 115 insertions(+), 23 deletions(-)
Signature · 1 line
2.45.2