From patchwork Mon Aug 24 18:00:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Matwey V. Kornilov" X-Patchwork-Id: 248235 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:522:0:0:0:0 with SMTP id h2csp2755744ils; Mon, 24 Aug 2020 11:01:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzswJfbTPKR7VkvyejvFhNeBP3YJ1tlrtSqSCKMif4Pj4nkF/xzITacAEcjIGzMpctQjb7c X-Received: by 2002:a17:906:a206:: with SMTP id r6mr6524472ejy.70.1598292062738; Mon, 24 Aug 2020 11:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598292062; cv=none; d=google.com; s=arc-20160816; b=KwriOcAOjfKrCAskLzU94JTGipCxUfpmArnMmUZ0Rl2cYPCOYVCf2VUYh/jGwtgb4W DnnCRhcVKR18rgjgRwzDEa33P8wAAmWtA9Kx7SjdFyppsOhz20Zrbl4/jrKahjdIp56X gsa/Kijq2LfH5gKLI+bNLO5NdqT7X9e9JQC9tU+i1W96ntHnI4t8UJKToYOOgUYZ+45r i3x+w4u2ZFq49+HrBmCktUwZrWuN79YtfyAFRY16Svht7YXAWshi0NExaPT0Gng/RcVu JPn43yBi0OLU9t0HRrjPwQ37KE6RDbhRLol6rd5Fijmx2VqOmILc6H0SvIr7DW/H7TxP rXqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=j05mfYA/LNeLe7NUjG8Gv1cgMq9gdb7rL8aVdfjmNmE=; b=YR31KMHfx6pPT2T668RUU/VS3As9zVGuQvUO8uJX0awnMi0mhyu0foU1az+FRabqiz m6/etINI2bspzC28ExHwqvFIllGuJQXj9B1DPdladHXJ0W8wOs/FSRMF8JfECR7AN1Qg jejJ3Bmwz/NYMu9cEJ5nPzOJPlzguwwdLQroOiUUzIUvlo2lrTNmCkKEb6nHL6Hcrngi FyHJPnFFKvOjNrIVv2d5Lo5RVQ80fe+EqRcUbzw0x0y2PFxUVqYe1fMxSWvtsq1BWeiB 0FuWR4Vor5ALcOMUBehOSw1vaf7Ae8SVG52vThm4Cqw5Njf2nnCNgH6+XN0Rm0mbA9/Q QG6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vbt3tOob; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from phobos.denx.de (phobos.denx.de. [2a01:238:438b:c500:173d:9f52:ddab:ee01]) by mx.google.com with ESMTPS id z12si6922750edp.120.2020.08.24.11.01.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:01:02 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=vbt3tOob; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 2a01:238:438b:c500:173d:9f52:ddab:ee01 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id BA075808B2; Mon, 24 Aug 2020 20:00:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="vbt3tOob"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8F9AB80404; Mon, 24 Aug 2020 20:00:58 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-lj1-x242.google.com (mail-lj1-x242.google.com [IPv6:2a00:1450:4864:20::242]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 169D980404 for ; Mon, 24 Aug 2020 20:00:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=matwey.kornilov@gmail.com Received: by mail-lj1-x242.google.com with SMTP id i10so10715868ljn.2 for ; Mon, 24 Aug 2020 11:00:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j05mfYA/LNeLe7NUjG8Gv1cgMq9gdb7rL8aVdfjmNmE=; b=vbt3tOobKHqWMuulrV5Z6Nyd0pKbFtiRMYN16C2ZnSXGomfJmNHnCvqJ5e2BIMxy2L noz/qPdjoBXCD0hY5oWp+N3vN1nDvIl2HE+mikwerVdAhChiWcOvy1Y1Eq79QQOn+MBJ RgJR9uSQz9sqNOwFU0DPzoSX1JmLDVw0RauKcOFtvpCGYUdSVHqcQ6mjWo07wPi6SEs1 ER/u4Ie+1eobPEm9IQyw0Q3zHUIlX9E3Ei1u+IGzRsElYt+8jfljWmxSZ+bzV7woPPi4 n7gnwq4qfzhPpgiWNc4Jyhj02/vGTP6XFAf5Hg4fg2cACDkGt+9vqpcNtFrgX00/8h0e Xrog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=j05mfYA/LNeLe7NUjG8Gv1cgMq9gdb7rL8aVdfjmNmE=; b=l6PGlmGRXzdQvcmUJKromnGpvxO5fo2uyiNagyZ4oVxEkEtZTnYSuLaZtGXtld+oEJ zpsmtmjDH9KOulGFKcszJiQysRGEOrGJDbbALSmx+GfX5X+STmoz40MrnB4AXL/elC+y 4TpU3MbwTJwcG4rYDvJ6FLuJOkhTFyREdGvLBNStVvz6dzlnkt3KmuQcq7fD8YfufY3i xWMtrflaOAQtMGmwp1Khu0rhwbdzA/e2lUmvM9Rbo84FID7kND94yMioB5iY6WYhiruH G9K43C21mz8H7YSY/GoRl73jVLs17djxxeI5TfnihrjUWSc9WOW1X+OO9yowby966mq5 +LAA== X-Gm-Message-State: AOAM530U0lbe8sRLzYFej1lc0wt+cdL5ViggUy0mmEG91kyekvIcSvcM qZmkymxgoiMqChacMxAeDd8= X-Received: by 2002:a2e:b04e:: with SMTP id d14mr3367829ljl.16.1598292055223; Mon, 24 Aug 2020 11:00:55 -0700 (PDT) Received: from oak.local ([188.123.231.180]) by smtp.gmail.com with ESMTPSA id l13sm2456731lfk.18.2020.08.24.11.00.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Aug 2020 11:00:54 -0700 (PDT) From: "Matwey V. Kornilov" To: trini@konsulko.com Cc: u-boot@lists.denx.de, "Matwey V. Kornilov" Subject: [PATCH 1/2] ti: Use devtype=mmc instead of setenv devtype mmc Date: Mon, 24 Aug 2020 21:00:32 +0300 Message-Id: <20200824180033.13681-1-matwey.kornilov@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean 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 --- include/environment/ti/mmc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.26.2 diff --git a/include/environment/ti/mmc.h b/include/environment/ti/mmc.h index 1c8e49a8b3..b86c8dc7a4 100644 --- a/include/environment/ti/mmc.h +++ b/include/environment/ti/mmc.h @@ -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 " \