Re: [PATCH] UFS: Make TM command timeout configurable from host side

From: Bart Van Assche

Date: Tue Nov 11 2025 - 11:37:57 EST


On 11/11/25 1:03 AM, Peter Wang (王信友) wrote:
It seems that there is no node in the DTS to describe the
UFS device. The UFS host node is not suitable, because the
timeout value depends on the UFS device itself.

Since you found that some devices may have TM command
times exceeding 100ms, why not add a device quirk and change
the timeout value only for those devices?

Alternatively, you could consider using a module parameter,
similar to uic_cmd_timeout and dev_cmd_timeout.

Why a quirk? A quirk will select a single specific timeout. The approach
of this patch lets the host driver set the timeout. This seems more
flexible to me than introducing a new quirk. Additionally, I think this
is a better solution than a new kernel module parameter.

Thanks,

Bart.