mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-08-09 08:46:59 +02:00
mmc: stm32_sdmmc2: reload watchdog
This patch solves a watchdog reset issue during mmc erase command. Signed-off-by: Christophe Kerello <christophe.kerello@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
d1a597fcb7
commit
48ac723a6f
@ -14,6 +14,7 @@
|
|||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/gpio.h>
|
#include <asm/gpio.h>
|
||||||
#include <linux/iopoll.h>
|
#include <linux/iopoll.h>
|
||||||
|
#include <watchdog.h>
|
||||||
|
|
||||||
struct stm32_sdmmc2_plat {
|
struct stm32_sdmmc2_plat {
|
||||||
struct mmc_config cfg;
|
struct mmc_config cfg;
|
||||||
@ -432,6 +433,8 @@ static int stm32_sdmmc2_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
|
|||||||
u32 cmdat = data ? SDMMC_CMD_CMDTRANS : 0;
|
u32 cmdat = data ? SDMMC_CMD_CMDTRANS : 0;
|
||||||
int ret, retry = 3;
|
int ret, retry = 3;
|
||||||
|
|
||||||
|
WATCHDOG_RESET();
|
||||||
|
|
||||||
retry_cmd:
|
retry_cmd:
|
||||||
ctx.data_length = 0;
|
ctx.data_length = 0;
|
||||||
ctx.dpsm_abort = false;
|
ctx.dpsm_abort = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user