]> git.dujemihanovic.xyz Git - u-boot.git/commit
mmc: mtk-sd: add WATCHDOG_RESET() to prevent watchdog timeout
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 19 Jul 2019 03:04:47 +0000 (11:04 +0800)
committerPeng Fan <peng.fan@nxp.com>
Wed, 31 Jul 2019 07:31:36 +0000 (15:31 +0800)
commitcaa332336d6b2b2109894ac12e839bdc79a678b1
tree85128d94db937919995fea576fa682090673416e
parent58d65d5082b6adb97f6420125aefa876d45b8870
mmc: mtk-sd: add WATCHDOG_RESET() to prevent watchdog timeout

When reading large data in once (reading 512MiB is tested on MT7623), a
watchdog timeout is triggered due to watchdog not being fed.

This patch adds WATCHDOG_RESET() to msdc_start_data() so the watchdog will
be fed every 1024 blocks are read/written.

Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
drivers/mmc/mtk-sd.c