diff options
| author | Stanley Jhu <stanleyjhu@google.com> | 2026-09-11 10:43:19 +0800 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-09-25 22:22:15 -0400 |
| commit | 00eec343c7306be7f1103f5002abd77496937ff9 (patch) | |
| tree | 6b60df4dfe66d8c087ab0db14fe60abf0d3ec33b /scripts/Makefile.thinlto | |
| parent | d1fa5cea5dcd72a9ec21b835c572a28c0c3f4fbf (diff) | |
| download | linux-next-00eec343c7306be7f1103f5002abd77496937ff9.tar.gz linux-next-00eec343c7306be7f1103f5002abd77496937ff9.zip | |
scsi: ufs: core: Dynamically disable timestamp on unsupported devices
JEDEC JESD220F specifies that the Timestamp attribute (qTimestamp) is an
optional feature for UFS devices. Some compliant UFS 4.0 devices do not
implement it and return QUERY_RESULT_INVALID_IDN (0xFD).
ufshcd_set_timestamp_attr() gates the write on wspecversion >= 0x400 and
the absence of UFS_DEVICE_QUIRK_NO_TIMESTAMP_SUPPORT. Neither covers a
device that advertises UFS 4.0 but declines the attribute, so the write is
reissued on every boot and every resume.
Record the capability in struct ufs_dev_info and clear it when the device
answers -EOPNOTSUPP, so the write is not retried. -ETIMEDOUT and -EIO still
reach dev_err(); they are transient and must not disable the attribute.
Signed-off-by: Stanley Jhu <stanleyjhu@google.com>
Tested-by: Xilin Wu <sophon@radxa.com>
Link: https://patch.msgid.link/20260911024319.1346706-3-stanleyjhu@google.com
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
