Skip to contentSkip to conversation

mmc: disable UHS modes if Vcc cannot be switched on and off

U-Boot Eugeniy Paltsev 2 participants 5 messages Jan 22, 2018 – Jan 24, 2018

lore
Share & tools
lore
#0 lore raw

Hi Jean-Jacques,

after commit "mmc: disable UHS modes if Vcc cannot be switched on and off" (04a2ea248f) we got MMC broken on several (at least two) platforms with DesignWare MMC controller.

The error log (with debug enabled in drivers/mmc/mmc.c and drivers/mmc/dw_mmc.c) is next:
--------------->8-------------
MMC:   Synopsys Mobile storage: 0
Buswidth = 0, clock: 400000
selecting mode MMC legacy (freq : 0 MHz)
Buswidth = 1, clock: 400000
Buswidth = 1, clock: 400000
Sending CMD0
dwmci_send_cmd: Timeout.
mmc_init: -110, time 19
** Bad device mmc 0 **
--------------->8-------------

Any ideas how to fix this?

Thanks.

Signature · 1 line
 Eugeniy Paltsev
#1 lore raw
Quoted 18 lines · Eugeniy Paltsev

Hi Jean-Jacques,

after commit "mmc: disable UHS modes if Vcc cannot be switched on and off" (04a2ea248f) we got MMC broken on several (at least two) platforms with DesignWare MMC controller.

The error log (with debug enabled in drivers/mmc/mmc.c and drivers/mmc/dw_mmc.c) is next:
--------------->8-------------
MMC:   Synopsys Mobile storage: 0
Buswidth = 0, clock: 400000
selecting mode MMC legacy (freq : 0 MHz)
Buswidth = 1, clock: 400000
Buswidth = 1, clock: 400000
Sending CMD0
dwmci_send_cmd: Timeout.
mmc_init: -110, time 19
** Bad device mmc 0 **
--------------->8-------------

Quoted 1 line

Any ideas how to fix this?

Could you share which git repository you use?

Best Regards,
Jaehoon Chung

Quoted 3 lines

Thanks.

#2 lore raw
Quoted 19 lines · Jaehoon Chung
Quoted 18 lines · Eugeniy Paltsev

Hi Jean-Jacques,

after commit "mmc: disable UHS modes if Vcc cannot be switched on and off" (04a2ea248f) we got MMC broken on several (at least two) platforms with DesignWare MMC controller.

The error log (with debug enabled in drivers/mmc/mmc.c and drivers/mmc/dw_mmc.c) is next:
--------------->8-------------
MMC:   Synopsys Mobile storage: 0
Buswidth = 0, clock: 400000
selecting mode MMC legacy (freq : 0 MHz)
Buswidth = 1, clock: 400000
Buswidth = 1, clock: 400000
Sending CMD0
dwmci_send_cmd: Timeout.
mmc_init: -110, time 19
** Bad device mmc 0 **
--------------->8-------------

Quoted 3 lines
Quoted 1 line

Any ideas how to fix this?

Could you share which git repository you use?

I use u-boot master branch from git://git.denx.de/u-boot.git

last commits:
--------------->8-------------
485c13c Merge git://git.denx.de/u-boot-dm
b79221a lib: fdtdec: Fix some style violations 2e38662 lib: fdtdec: Fix whitespace style violations 29d11b8 core: Make device_is_compatible live-tree compatible 147c607 core: Add {ofnode, dev}_translate_address functions --------------->8-------------

Quoted 8 lines

Best Regards,
Jaehoon Chung

Quoted 3 lines

Thanks.

Signature · 1 line
 Eugeniy Paltsev
#3 lore raw
Quoted 26 lines · Eugeniy Paltsev
Quoted 19 lines · Jaehoon Chung
Quoted 18 lines · Eugeniy Paltsev

Hi Jean-Jacques,

after commit "mmc: disable UHS modes if Vcc cannot be switched on and off" (04a2ea248f) we got MMC broken on several (at least two) platforms with DesignWare MMC controller.

The error log (with debug enabled in drivers/mmc/mmc.c and drivers/mmc/dw_mmc.c) is next:
--------------->8-------------
MMC:   Synopsys Mobile storage: 0
Buswidth = 0, clock: 400000
selecting mode MMC legacy (freq : 0 MHz)
Buswidth = 1, clock: 400000
Buswidth = 1, clock: 400000
Sending CMD0
dwmci_send_cmd: Timeout.
mmc_init: -110, time 19
** Bad device mmc 0 **
--------------->8-------------

Quoted 3 lines
Quoted 1 line

Any ideas how to fix this?

Could you share which git repository you use?

I use u-boot master branch from git://git.denx.de/u-boot.git

Quoted 9 lines

last commits:
--------------->8-------------
485c13c Merge git://git.denx.de/u-boot-dm
b79221a lib: fdtdec: Fix some style violations 2e38662 lib: fdtdec: Fix whitespace style violations 29d11b8 core: Make device_is_compatible live-tree compatible 147c607 core: Add {ofnode, dev}_translate_address functions --------------->8-------------

I guess that this issue has already been fixed.

http://patchwork.ozlabs.org/patch/862160/
http://patchwork.ozlabs.org/patch/864607/

Best Regards,
Jaehoon Chung

Quoted 8 lines
Quoted 8 lines

Best Regards,
Jaehoon Chung

Quoted 3 lines

Thanks.

author Tested-by
#4 lore raw
Quoted 37 lines · Jaehoon Chung
Quoted 26 lines · Eugeniy Paltsev
Quoted 19 lines · Jaehoon Chung
Quoted 18 lines · Eugeniy Paltsev

Hi Jean-Jacques,

after commit "mmc: disable UHS modes if Vcc cannot be switched on and off" (04a2ea248f) we got MMC broken on several (at least two) platforms with DesignWare MMC controller.

The error log (with debug enabled in drivers/mmc/mmc.c and drivers/mmc/dw_mmc.c) is next:
--------------->8-------------
MMC:   Synopsys Mobile storage: 0
Buswidth = 0, clock: 400000
selecting mode MMC legacy (freq : 0 MHz)
Buswidth = 1, clock: 400000
Buswidth = 1, clock: 400000
Sending CMD0
dwmci_send_cmd: Timeout.
mmc_init: -110, time 19
** Bad device mmc 0 **
--------------->8-------------

Quoted 3 lines
Quoted 1 line

Any ideas how to fix this?

Could you share which git repository you use?

I use u-boot master branch from git://git.denx.de/u-boot.git

Quoted 9 lines

last commits:
--------------->8-------------
485c13c Merge git://git.denx.de/u-boot-dm
b79221a lib: fdtdec: Fix some style violations 2e38662 lib: fdtdec: Fix whitespace style violations 29d11b8 core: Make device_is_compatible live-tree compatible 147c607 core: Add {ofnode, dev}_translate_address functions --------------->8-------------

Quoted 4 lines

I guess that this issue has already been fixed.

http://patchwork.ozlabs.org/patch/862160/

Yep, this patch solves the problem.

Thanks.

Quoted 13 lines

Best Regards,
Jaehoon Chung

Quoted 8 lines
Quoted 8 lines

Best Regards,
Jaehoon Chung

Quoted 3 lines

Thanks.

Signature · 1 line
 Eugeniy Paltsev