]> git.ipfire.org Git - thirdparty/openwrt.git/commit
ramips: mtk-mmc: fix data timeout value
authorShiji Yang <yangshiji66@outlook.com>
Sat, 24 May 2025 08:31:07 +0000 (16:31 +0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Mon, 16 Jun 2025 17:31:51 +0000 (19:31 +0200)
commite69c867cdf62623613c9026b577b290edae780a1
tree2e767d9ce655d6fb4732a2730136713b965fb951
parentca866328d555692e91e870bdeb368a830b39ceba
ramips: mtk-mmc: fix data timeout value

The MT7628 programing guide shows that the correct DTOC unit is
1048576 clocks instead of 65536 clocks. This value is also used
by linux upstream mtk-sd driver. Correct the DTOC register and
also round up its value.

Signed-off-by: Shiji Yang <yangshiji66@outlook.com>
Link: https://github.com/openwrt/openwrt/pull/18896
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/ramips/files/drivers/mmc/host/mtk-mmc/sd.c