Message ID | 162062838237.501222.11456115358325982186.stgit@localhost |
---|---|
State | Superseded |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=r6ZP7guF; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Fdrq91cvrz9vFm for <incoming@patchwork.ozlabs.org>; Mon, 10 May 2021 16:33:41 +1000 (AEST) 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-Google-Smtp-Source: ABdhPJwh/n/wF+bJmh1xDvtGOXi6LedjSpB+/4gzjlmqXBtXsMJQXT4NC31anEf6DlwbCaDrCZEWxg== 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(+)