Re: [PATCH] UFS: Make TM command timeout configurable from host side
From: Peter Wang (王信友)
Date: Mon Nov 10 2025 - 21:46:51 EST
On Thu, 2025-11-06 at 10:26 +0900, Seunghui Lee wrote:
> Currently, UFS driver uses hardcoded TM_CMD_TIMEOUT (100ms) for all
> Task Management commands, which may not be optimal for different UFS
> devices and use cases.
>
> This patch adds a configurable tm_cmd_timeout field to ufs_hba
> structure
> and uses it instead of the hardcoded constant. The default value
> remains
> TM_CMD_TIMEOUT to maintain backward compatibility.
Hi Seunghui,
There should be another patch to add a device quirk that
modifies the value of tm_cmd_timeout?
Otherwise, this patch doesn’t actually change anything.
Thanks.
Peter