projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1a597f
)
mmc: stm32_sdmmc2: reload watchdog
author
Christophe Kerello
<christophe.kerello@st.com>
Tue, 30 Jul 2019 17:16:45 +0000
(19:16 +0200)
committer
Patrice Chotard
<patrice.chotard@st.com>
Tue, 27 Aug 2019 09:19:23 +0000
(11:19 +0200)
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>
drivers/mmc/stm32_sdmmc2.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/stm32_sdmmc2.c
b/drivers/mmc/stm32_sdmmc2.c
index 0ade1b160e57357d3801d1033defb27a271dc217..32434a4762f7d532e9a3853b6ddcbd0a358b6507 100644
(file)
--- a/
drivers/mmc/stm32_sdmmc2.c
+++ b/
drivers/mmc/stm32_sdmmc2.c
@@
-14,6
+14,7
@@
#include <asm/io.h>
#include <asm/gpio.h>
#include <linux/iopoll.h>
+#include <watchdog.h>
struct stm32_sdmmc2_plat {
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;
int ret, retry = 3;
+ WATCHDOG_RESET();
+
retry_cmd:
ctx.data_length = 0;
ctx.dpsm_abort = false;