Skip to content

ufs: Add callback for vendor-specific RTT capability

[email protected] linux-arm-kernel linux-mediatek linux-scsi lkml 3 versions – Applied

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

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 7 repliesApplied
  2. v23 patches 2 repliesSuperseded
  3. v12 patches 4 repliesSuperseded

Changes in v3 from the cover letter

- Fix incomplete v2 that was sent prematurely - now properly removes max_num_rtt field in patch 3

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3ufs: core: Add get_hba_nortt callback for vendor-specific RTT capabilitydrivers/ufs/core/ufshcd.c include/ufs/ufshcd.h+7 -12 replies
2/3ufs: mediatek: Implement get_hba_nortt callback for RTT capabilitydrivers/ufs/host/ufs-mediatek.c drivers/ufs/host/ufs-mediatek.h+13 -30 replies
3/3ufs: core: Remove max_num_rtt field from ufs_hba_variant_opsdrivers/ufs/core/ufshcd.c include/ufs/ufshcd.h+1 -52 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchPeter WangBart Van Assche
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/3] ufs: Add callback for vendor-specific RTT capability

From: Ed Tsai <[email protected]>

The first patch adds the get_hba_nortt() callback to the UFS core layer, allowing vendor drivers to provide dynamic, platform-specific RTT capability handling.

The second patch implements this callback in the MediaTek UFS driver, distinguishing between legacy platforms (which require the RTT to be limited to 2) and newer MT6995 B0+ platforms (which can use the value from the capability register directly).

The third patch removes the max_num_rtt field from ufs_hba_variant_ops as it is now replaced by the get_hba_nortt() callback.

Changes in v3:
- Fix incomplete v2 that was sent prematurely - now properly removes max_num_rtt field in patch 3

Changes in v2:
- Keep max_num_rtt field in patch 1 to maintain bisectability
- Split removal of max_num_rtt into a separate patch (patch 3)

Ed Tsai (3):
ufs: core: Add get_hba_nortt callback for vendor-specific RTT
capability
ufs: mediatek: Implement get_hba_nortt callback for RTT capability
ufs: core: Remove max_num_rtt field from ufs_hba_variant_ops

 drivers/ufs/core/ufshcd.c       |  9 +++++----
 drivers/ufs/host/ufs-mediatek.c | 12 +++++++++++-
 drivers/ufs/host/ufs-mediatek.h |  4 ++--
 include/ufs/ufshcd.h            |  5 +++--
 4 files changed, 21 insertions(+), 9 deletions(-)
Signature · 1 line
2.45.2