From patchwork Tue Apr 7 20:56:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 1267635 X-Patchwork-Delegate: tudor.ambarus@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=cogentembedded.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20170209 header.b=gFi5598n; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=cogentembedded-com.20150623.gappssmtp.com header.i=@cogentembedded-com.20150623.gappssmtp.com header.a=rsa-sha256 header.s=20150623 header.b=mIDQq153; dkim-atps=neutral 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 ozlabs.org (Postfix) with ESMTPS id 48xfq02nxVz9sQx for ; Wed, 8 Apr 2020 06:56:59 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Date:Message-ID:To:Subject :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=w4033Lo90Ay1JeCMGx8q/b2hPMRnhMgCf6PN1mBgPDk=; b=gFi5598nOesclC p2I/XGmTWkCJ22SwsMKgzCQockI3jKKFc0O2i4Er/keL+sWhmo4U7X0afV/g/NFMKMUTbz3FKdVtv oe53EuwRm6ibrLcVnDY5UrrKU99RzAFTNj/+W3HbXPLTa9fSiyz+pPsz+lPvfTkt1uwSv1tK5+bpj W2L1+zfHt6YTozfp/Ud9QZGZf9VfdiESkXFPFhBSQOkmRbybijl01wVGxAq288pnKY6bk8DFKnW4H xDxsFgFHG2sqv4V4Eo06kvKxJ8A84QMh7Yfr4BgTbMeQA2mL1G5isnTV1+tMr9efyxdkORzHUxVVV S6meyziPqfUo59Dl0EQw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLvHC-0000mM-D9; Tue, 07 Apr 2020 20:56:54 +0000 Received: from mail-lj1-x22a.google.com ([2a00:1450:4864:20::22a]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLvH9-0000lb-7w for linux-mtd@lists.infradead.org; Tue, 07 Apr 2020 20:56:52 +0000 Received: by mail-lj1-x22a.google.com with SMTP id k21so5350776ljh.2 for ; Tue, 07 Apr 2020 13:56:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=8E93RqiJT1IY400var7NpMxIbsOq13mEa5fUe2tKz8Q=; b=mIDQq153Gmp6hMrzCiAqGZH4sh0kuCClO4pM6pdKeq6bCxpLLXK9tJ/vw9Ua2TZGgH v0TSkbyRzPsvv4eN3Dy+7Wo0/pAsItVsJ09TuksydQBiMspJDFVDKKAQWt2/aw6+YBjh 032uzwKzQmxgodRrLijDrRU/R/ywQv2/DUACKc80m6Wqnxv7xiiFYw8pCvlV/JZDbL8+ qGhRBqeP6soe64iWJ6fkdfoOEPLXGY30WGkakc+JjO+u/umEPlrRB4WYLz16t7M5r2N9 QRh8wlIl036eiPbK1CWWYlLw+yudVVnL3Separ+7uZS1TpN4AQAcF51URhG0SSt6FeMB IiMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=8E93RqiJT1IY400var7NpMxIbsOq13mEa5fUe2tKz8Q=; b=pKbYNNl2EQPJsSlUvT7sU/hQmGRwNpZt87fTYOe00/Qzlu+usoXP3zHJEhJ0ctkldQ 0LTh4JqcdbGR+DJ98XNyoA90r5aBuqYlgAedaHMy5PCDOZpYQL6VSdenn1kXyVsWsmcj VP8+RCIGBXEXv5dglhHu/LfwJEqQdH9jLH6hYff2UQM7kRBL4RJVQUHUvl8tPdK83ul7 LVKw3kNlGm27CFTxDtpTIh/ZJFY+0PvhugaXta1TDWR3TrqxDDHo580qcmwVBhN9bHi6 odB4vhfxDOfZjp9Ub0n79gKb8L738jdmHVvSC0OT3dUVS/uFjubTdxK9DS+44ExypX0m SUEg== X-Gm-Message-State: AGi0PuY+2QhDI8k0AZEg+PRHgOxDPU1CBYlSufrpfa9IPJ0erALddqTB MXyp+xN1Cn3BvjKpYbNrzJAnNw== X-Google-Smtp-Source: APiQypIY7Icxm7M6C768LEBnjwJ6UhkoKdnoF2cESvl03F/BD7+QPJnSCGmRzQEMDQREgguEdTMQLg== X-Received: by 2002:a05:651c:200c:: with SMTP id s12mr2666235ljo.30.1586293004846; Tue, 07 Apr 2020 13:56:44 -0700 (PDT) Received: from wasted.cogentembedded.com ([2a00:1fa0:44c8:4ead:6627:2c4b:d1ac:b6e2]) by smtp.gmail.com with ESMTPSA id u4sm12152339ljj.44.2020.04.07.13.56.43 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2020 13:56:44 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH v2] mtd: spi-nor: move #define SPINOR_OP_WRDI To: Tudor Ambarus , linux-mtd@lists.infradead.org Organization: Cogent Embedded Message-ID: <9f654612-54a5-41d1-01dc-8196f334bffd@cogentembedded.com> Date: Tue, 7 Apr 2020 23:56:43 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Language: en-MW X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200407_135651_282160_3BBDD641 X-CRM114-Status: GOOD ( 15.03 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on bombadil.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:22a listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Richard Weinberger , Vignesh Raghavendra , Miquel Raynal Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org The write disable (WRDI) opcode is not really specific to the SST flashes (anymore?) -- move the #define to the main opcode group, just before WREN. Signed-off-by: Sergei Shtylyov --- This patch is atop of the 'spi-nor/next' branch of the MTD 'linux.git' repo plus 5 kernel-doc fixes posted last week... Changes in version 2: - Fixed up the patch description to match the code. include/linux/mtd/spi-nor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/include/linux/mtd/spi-nor.h =================================================================== --- linux.orig/include/linux/mtd/spi-nor.h +++ linux/include/linux/mtd/spi-nor.h @@ -20,6 +20,7 @@ */ /* Flash opcodes. */ +#define SPINOR_OP_WRDI 0x04 /* Write disable */ #define SPINOR_OP_WREN 0x06 /* Write enable */ #define SPINOR_OP_RDSR 0x05 /* Read status register */ #define SPINOR_OP_WRSR 0x01 /* Write status register 1 byte */ @@ -80,7 +81,6 @@ /* Used for SST flashes only. */ #define SPINOR_OP_BP 0x02 /* Byte program */ -#define SPINOR_OP_WRDI 0x04 /* Write disable */ #define SPINOR_OP_AAI_WP 0xad /* Auto address increment word program */ /* Used for S3AN flashes only */