]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: ufs: host: mediatek: Fix auto-hibern8 timer configuration
authorPeter Wang <peter.wang@mediatek.com>
Mon, 11 Aug 2025 13:11:18 +0000 (21:11 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Aug 2025 02:49:12 +0000 (22:49 -0400)
commitaa86602a483ba48f51044fbaefa1ebbf6da194a4
treeedd18aca296d93dc9f87475ab0750510397ab75c
parent6c00c493a344b65fb0a356cb3f328a647085687b
scsi: ufs: host: mediatek: Fix auto-hibern8 timer configuration

Move the configuration of the Auto-Hibern8 (AHIT) timer from the
post-link stage to the 'fixup_dev_quirks' function. This change allows
setting the AHIT based on the vendor requirements:

   (a) Samsung: 3.5 ms
   (b) Micron: 2 ms
   (c) Others: 1 ms

Additionally, the clock gating timer is adjusted based on the AHIT
scale, with a maximum setting of 10 ms. This ensures that the clock
gating delay is appropriately configured to match the AHIT settings.

Signed-off-by: Peter Wang <peter.wang@mediatek.com>
Link: https://lore.kernel.org/r/20250811131423.3444014-3-peter.wang@mediatek.com
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/ufs/host/ufs-mediatek.c