]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ti: Use devtype=mmc instead of setenv devtype mmc
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Mon, 24 Aug 2020 18:00:32 +0000 (21:00 +0300)
committerLokesh Vutla <lokeshvutla@ti.com>
Tue, 15 Sep 2020 13:21:53 +0000 (18:51 +0530)
If devtype variable is setted via setenv, then the following devtype=X style is
ignored. Currently, many u-boot commands use devtype variable in the latter
manner:

    mmc_boot=if mmc dev ${devnum}; then devtype=mmc; run scan_dev_for_boot_part; fi

Use devtype=mmc instead of setenv devtype mmc to avoid bugs with booting from
another devtype.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
include/environment/ti/mmc.h

index 1c8e49a8b3da0242673be05bfbe269cc90e8cad3..b86c8dc7a4f329f5b9666b80c4375f317e3080aa 100644 (file)
@@ -57,7 +57,7 @@
                "fi;\0" \
        "mmcboot=mmc dev ${mmcdev}; " \
                "devnum=${mmcdev}; " \
-               "setenv devtype mmc; " \
+               "devtype=mmc; " \
                "if mmc rescan; then " \
                        "echo SD/MMC found on device ${mmcdev};" \
                        "if run loadimage; then " \