From patchwork Wed Mar 23 17:04:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tokunori Ikegami X-Patchwork-Id: 1608736 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=00iZ5/wa; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=dw5UoxYp; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4KNvsh1jJgz9s1l for ; Thu, 24 Mar 2022 04:07:04 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=ZBzE1qeH0G4d+jzHbBwd/914LjQZOIa/FTG6r8jAVmA=; b=00iZ5/waM8ciVz +3SDtoGNZq7/tD1r/+4kgzgpOtosvpiWJ2kuYYIEZTBcXwigcd0DX8ySmEcPROxTPWEEWggbLAUIG w9gKeuGPuD0bzmNNK/sanSprD4sHfoqPVPqkeWFK+m2Ljek4dd3PAfh3eEkh4WRaiHi1A40sEP0hH +P6QpKAI7JaSFnWd2uIv3lTiZ0SC1YZ3u8m++nNxbqtyumAaVGVf+YPVZ4G+MLdHxMEnJHky1uqw3 1SqarcNWPfl6DY4vllJJeOYUtHEzsyB2GNoIuOpWfb+mCRrSSL9KZcDVAiqgziMCrMnWI6e9Rf6Uc xkqWX/mKe7rapQsg+Z+A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nX4RH-00EMCv-6W; Wed, 23 Mar 2022 17:06:27 +0000 Received: from mail-pj1-x1033.google.com ([2607:f8b0:4864:20::1033]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nX4Qn-00EM2Z-3W for linux-mtd@lists.infradead.org; Wed, 23 Mar 2022 17:05:58 +0000 Received: by mail-pj1-x1033.google.com with SMTP id o6-20020a17090a9f8600b001c6562049d9so2432915pjp.3 for ; Wed, 23 Mar 2022 10:05:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=ssq5dDChvV3SEH+iBZz7RZMY9wDHZR/XhgXvcgOGwCI=; b=dw5UoxYpnGE2oTvda4PTtPcXkQuuVcU7JUOgPKpwUTHh85/sPmb+lsnCCQK/dt+DUH /eeYqFy73mb0EwRTqmY2TY6t282AokEoP9hdeu72qJ1ZARUz5fm+mUQigogiiB8zZcNm 0Aifmvqopy8697S+6rcbV+WgMC14E9NrrRg82jesK/eub2U5CecSUNd69RFow1ZgPSxo gGKKxXIJ4tgUTj8DVYvy2H+z/QzmiNqa3+XFZe9cpO6vSzYU2w/rYthnXSkPmBZFFr1g 9H3yR6cV/WExdgcaTM6YDtGf+Jeo1qlZHDazZyan1JDdo7pemW0hQ6y8d7zKp2f7h7LX +ccg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ssq5dDChvV3SEH+iBZz7RZMY9wDHZR/XhgXvcgOGwCI=; b=ZctzpMsG4RLxd7ZmYMeCcK+WX84HnAqJxzMIOzFmLc6HJdA4s4Zrk/i/yG5r4RyFL1 x0DMqjqMr6uWEw9yflkBoinyPb2MZUV0rDGSeMEABIV+Q5iS4CjqIt9GCKI/XWGbSQJ2 YlujARPulJrzdO6/HcyyjFftGAxB1sgtxy9B229XlCWLtSF93J00MUs5sy+RU1YKb6SW 5evigDtZTZmAAakk954YKVe/mOFbQCuyZsFgzna9M7bcMqne5kYXrL+M/8ksrefhUB14 tBHQkeKjslGuW/K704Ecgctg0tps5+J4G0F/nUfg3psHfPe7Zh9HBpB8l13EKtvQhimg eBJQ== X-Gm-Message-State: AOAM530t0XBp77DQ1Q6MLCFpVkl89llr3e3M9bnWgTRd2GVfi5baARMf teNcYKBY/vpBsPsnoEF5aYQ= X-Google-Smtp-Source: ABdhPJw/hgA3okEEQfgNg6N5D2emMAbCexK+0bcYNKulX09vLm+XJ00+HU8ebFP7WDoT9JmqFAfBqg== X-Received: by 2002:a17:903:244d:b0:154:3772:6b32 with SMTP id l13-20020a170903244d00b0015437726b32mr984977pls.70.1648055155802; Wed, 23 Mar 2022 10:05:55 -0700 (PDT) Received: from tokunori-desktop.flets-east.jp ([240b:10:2720:5500:98c:eff5:b721:5f7b]) by smtp.gmail.com with ESMTPSA id u12-20020a17090a890c00b001b8efcf8e48sm6649709pjn.14.2022.03.23.10.05.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Mar 2022 10:05:55 -0700 (PDT) From: Tokunori Ikegami To: miquel.raynal@bootlin.com Cc: richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, Tokunori Ikegami Subject: [PATCH v7 4/4] mtd: cfi_cmdset_0002: Rename chip_ready variables Date: Thu, 24 Mar 2022 02:04:58 +0900 Message-Id: <20220323170458.5608-5-ikegami.t@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220323170458.5608-1-ikegami.t@gmail.com> References: <20220323170458.5608-1-ikegami.t@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220323_100557_229030_18568D29 X-CRM114-Status: UNSURE ( 9.14 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Signed-off-by: Tokunori Ikegami --- drivers/mtd/chips/cfi_cmdset_0002.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index b31439e44435..67453f59c69c 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmd [...] Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:1033 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [ikegami.t[at]gmail.com] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Signed-off-by: Tokunori Ikegami --- drivers/mtd/chips/cfi_cmdset_0002.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/mtd/chips/cfi_cmdset_0002.c b/drivers/mtd/chips/cfi_cmdset_0002.c index b31439e44435..67453f59c69c 100644 --- a/drivers/mtd/chips/cfi_cmdset_0002.c +++ b/drivers/mtd/chips/cfi_cmdset_0002.c @@ -834,7 +834,7 @@ static int __xipram chip_ready(struct map_info *map, struct flchip *chip, unsigned long addr, map_word *expected) { struct cfi_private *cfi = map->fldrv_priv; - map_word d, t; + map_word oldd, curd; int ret; if (cfi_use_status_reg(cfi)) { @@ -845,20 +845,20 @@ static int __xipram chip_ready(struct map_info *map, struct flchip *chip, */ cfi_send_gen_cmd(0x70, cfi->addr_unlock1, chip->start, map, cfi, cfi->device_type, NULL); - t = map_read(map, addr); + curd = map_read(map, addr); - return map_word_andequal(map, t, ready, ready); + return map_word_andequal(map, curd, ready, ready); } - d = map_read(map, addr); - t = map_read(map, addr); + oldd = map_read(map, addr); + curd = map_read(map, addr); - ret = map_word_equal(map, d, t); + ret = map_word_equal(map, oldd, curd); if (!ret || !expected) return ret; - return map_word_equal(map, t, *expected); + return map_word_equal(map, curd, *expected); } static int __xipram chip_good(struct map_info *map, struct flchip *chip,