[PATCH 1/2] ufs: core: Add get_hba_nortt callback for vendor-specific RTT capability

Peter Wang (王信友) peter.wang at mediatek.com
Tue Jun 9 22:33:29 PDT 2026


On Tue, 2026-06-09 at 18:38 +0800, ed.tsai at mediatek.com wrote:
> From: Ed Tsai <ed.tsai at mediatek.com>
> 
> The number of outstanding RTTs read from host controller capability
> register is problematic on some platforms. Add a new vendor callback
> get_hba_nortt() to allow platform vendors to override the default RTT
> capability value with platform-specific handling.
> 
> For platforms without the callback, continue to use the value from
> the
> host controller capability register.
> 
> Also remove the max_num_rtt field from ufs_hba_variant_ops as it is
> replaced by the new get_hba_nortt callback.
> 
> Signed-off-by: Ed Tsai <ed.tsai at mediatek.com>
> ---

Reviewed-by: Peter Wang <peter.wang at mediatek.com>


More information about the linux-arm-kernel mailing list