Message ID | 162062838237.501222.11456115358325982186.stgit@localhost |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:c901:0:0:0:0:0 with SMTP id t1csp2565795jao; Sun, 9 May 2021 23:33:39 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQlMgHl0EbLmm3b+WVMIpjwMDthT+e0p8/y/z9Y1q+q6iIxI/yyDEJug4rDEMNXvz3JPAW X-Received: by 2002:a05:6402:36e:: with SMTP id s14mr27205405edw.338.1620628419007; Sun, 09 May 2021 23:33:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620628419; cv=none; d=google.com; s=arc-20160816; b=iekopuG7XhNvFsQV2sbRKbp8GBZWBWN8F+LwhpON+9DTe1dxHT/j08gS0l9H6bx1Kp fbJkozi68s2UcF1oGPUtlT9bnYd3q9FhKdE/21HUrySk+NY56+oXRrtOgHxjGPi1CtXg U6a2RPHPKvLQ1EdKlvWfvkZ9XyGEYkMR2HDp7riGuWXnY9df6QE9T7vxgO6pv5MyO08F fhiZRsbIiULy+aAq/pD9tiDz97pblOI7fU1MUvfXcxmIZIaSNtb7j7MiytV7RdCyZjr7 akMAoKO74PorNaTTA6UFbqQQ8FP+FjPvO+/3klErNLjGGO8IsN9nrs7ni/3zqJg/Q/Wp mtMA== 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:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=hi6WjBXzska5K8FmtBouIggwiytU0GYq4xvkaSVfBaU=; b=kysaUNJePW/E2s4kotWSm/hVI37drePROid0SlunC16A0pdqKk/AMJrQ/etwoQxFYq z5QAhRuGEp7WVxsXhVCk79J6pTGqyKBzoRftOpUX6nRmtMgEIilRGA0cfyTes/9b0lzh OIERBRmYUzw1yJlx9BVu+5GLEAO97pMwiGOm0XczVkx6vU3pafUYlv0wbukaGGmvM+yl WSw/HXkjTYXh2cG66XLVtfNOQ/jtXjmL4OLpqsArguTHLAzxuFLsqvnBwRlSIZnsb454 SrJcM1ER0EL/BZTX1aKDulsugSWneefu4ls5gMwKaCEop4jWpB1rLVhZzHbRKq2i5rdn Ljgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r6ZP7guF; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id r14si10869417edb.259.2021.05.09.23.33.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=r6ZP7guF; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D5DDC82EE9; Mon, 10 May 2021 08:33:13 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org 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=linaro.org header.i=@linaro.org header.b="r6ZP7guF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4553382EED; Mon, 10 May 2021 08:33:12 +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,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) (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 6058C82EEC for <u-boot@lists.denx.de>; Mon, 10 May 2021 08:33:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=masami.hiramatsu@linaro.org Received: by mail-pg1-x52d.google.com with SMTP id i5so7822837pgm.0 for <u-boot@lists.denx.de>; Sun, 09 May 2021 23:33:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :user-agent:mime-version:content-transfer-encoding; bh=hi6WjBXzska5K8FmtBouIggwiytU0GYq4xvkaSVfBaU=; b=r6ZP7guFs0oaB4lb6bbveAOwnhNQsRmWTenl+/LhbimL6QY67Wikaq+n+3Xw29xYGU nfcdQGHtb1BYqb5LGKSzv1Dyda2f2GP48BYVuWxmjUMtEOi0K+s5nv2UhbIofpKIKCkj rozbndVJD4waTuufN3a7n8d17IUyAHn1RbFH6WS7qtCRQhJ8jO1JRIO0FSd7eLCBqKWE DgZo52KWTIudiuACH1xz9vFbj+KQB27Yrtp0qDNCrttBwE0HzODHaSYve6i3zaXI485e bMgLrOrZ/pRPjzX4/XeeBj8C+wyG578mCUqx0SIWdllt1ZXWqny5zzPI6Vw+OYpPbFRM hwGw== 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:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=hi6WjBXzska5K8FmtBouIggwiytU0GYq4xvkaSVfBaU=; b=IREhiddnJc/VRX3fccxvHd+J8I/4ZfpGkUuEpvw85vBqlMbQ0HrWJ4wFvF/Qgbhuon 5KVYei7bydAhukC4Cdh8YKKqhApF9CstvtWZHYeYZ/RWykGUtpee++BP4uH6+DWO+dZg 6y2SdcdxJP/nwd1G2vYZXBTTVeZKcVqdi48z1vgLogXIJiaSVkqKCdtHWxtHyEgx3nU+ Lcl5VO225MRlB3thCZIkAfqXVVOQG4EBCtoX33vqDjcbs8mFVqmSQhgN6hPIrh9ZDatl ygmCSraPnCV6+v/uayHlEBUYva3FelKf88a7XgxSxqSUpuoCmQXB1eoOORoxStHsElWa Dnmg== X-Gm-Message-State: AOAM533o9LVT5O+su9IsAbVYWw026Ccf939meyM33cv20IhtfXP7bXdz 4ray/DvEAusQay8JyoGf55xIgg== X-Received: by 2002:a63:7c0e:: with SMTP id x14mr1859807pgc.219.1620628387826; Sun, 09 May 2021 23:33:07 -0700 (PDT) Received: from localhost.localdomain (NE2965lan1.rev.em-net.ne.jp. [210.141.244.193]) by smtp.gmail.com with ESMTPSA id b7sm9980189pjq.36.2021.05.09.23.33.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 May 2021 23:33:07 -0700 (PDT) From: Masami Hiramatsu <masami.hiramatsu@linaro.org> To: Peng Fan <peng.fan@nxp.com>, Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Alexander Graf <agraf@csgraf.de>, Jagan Teki <jagan@amarulasolutions.com>, Vignesh R <vigneshr@ti.com>, Joe Hershberger <joe.hershberger@ni.com>, Ramon Fried <rfried.dev@gmail.com>, Sughosh Ganu <sughosh.ganu@linaro.org> Cc: Masami Hiramatsu <masami.hiramatsu@linaro.org>, Jassi Brar <jaswinder.singh@linaro.org>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Masahisa Kojima <masahisa.kojima@linaro.org>, Takahiro Akashi <takahiro.akashi@linaro.org>, Tim Harvey <tharvey@gateworks.com>, Bin Meng <bmeng.cn@gmail.com>, u-boot@lists.denx.de Subject: [PATCH v3 12/14] dfu_mtd: Ignore non-implemented lock device failure Date: Mon, 10 May 2021 15:33:02 +0900 Message-Id: <162062838237.501222.11456115358325982186.stgit@localhost> X-Mailer: git-send-email 2.25.1 In-Reply-To: <162062825393.501222.13616174511857694530.stgit@localhost> References: <162062825393.501222.13616174511857694530.stgit@localhost> User-Agent: StGit/0.19 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.4 at phobos.denx.de X-Virus-Status: Clean |
Series |
arm64: synquacer: Add SynQuacer/DeveloperBox support
|
expand
|
diff --git a/drivers/dfu/dfu_mtd.c b/drivers/dfu/dfu_mtd.c index ca67585a7e..e58302c32d 100644 --- a/drivers/dfu/dfu_mtd.c +++ b/drivers/dfu/dfu_mtd.c @@ -152,6 +152,8 @@ static int mtd_block_op(enum dfu_op op, struct dfu_entity *dfu, ret = mtd_lock(mtd, lock_ofs, lock_len); if (ret && ret != -EOPNOTSUPP) printf("MTD device lock failed\n"); + if (ret == -EOPNOTSUPP) + ret = 0; } return ret; }
Ignore the non-implemented lock device failure on writing mtd via DFU. Without this fix, DFU write shows an error on such device even if it succeeded, because dfu->write_medium returns -EOPNOTSUPP. Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org> Cc: Lukasz Majewski <lukma@denx.de> --- drivers/dfu/dfu_mtd.c | 2 ++ 1 file changed, 2 insertions(+)