From patchwork Tue Apr 7 20:39:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 1267632 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=LbBpuxJW; 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=HiO9K4BF; 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 48xfQf6npNz9sPF for ; Wed, 8 Apr 2020 06:39:22 +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:Subject: From:To: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=Lxqu3a1p2d3LW3w8/VPAuRT5Mln1mH1s3W/omeJXFSo=; b=LbBpuxJWXkuU6o 6bblgWGyZkhFI/1FE48OVAMgzSsDXYMTvfs72r8cx/coa/GRaxtkdwQt2liqE3spc8ONS/IQhYuD+ hBIhl+sijdHAxKgPY3vsZTJV285vPRcgpQI5kxvwM5QsAxAEtQhFj66FrRvmYIehQUGecudOSEW/f 3S0GcX5NxmMVViVAmejlVV0W7/TuELhVErhkSx58Dpk/1qkEF3wzggYOY7kj/4hQVXhBs840PYHai +HE8F8qMQOm0tGPaQ33SSgBGlCAtpo55/y0X0/3d54Bi6FfymFKrNSkDC0lv24AJeNazfs0XZm3lg U7UuvKHn4w5lxutmWNeQ==; 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 1jLv0B-0004BN-FZ; Tue, 07 Apr 2020 20:39:19 +0000 Received: from mail-lj1-x244.google.com ([2a00:1450:4864:20::244]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jLv08-0004Ax-MP for linux-mtd@lists.infradead.org; Tue, 07 Apr 2020 20:39:18 +0000 Received: by mail-lj1-x244.google.com with SMTP id g27so5214805ljn.10 for ; Tue, 07 Apr 2020 13:39:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=to:cc:from:subject:organization:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=VPY5v6ZzgWualN0qMBfGuP3SYLv3vPSOU4crA73tm3w=; b=HiO9K4BFLHWwvLnRHg9zS5FwhSPhKSZ6M2E2G/0O/PU2d3zl90DcMJGNGd8h5FogZE iMpeYt7pqRemXwGpxiKB859l+PLj1w5yW5oFQNzwKrOsJ0mb7pin3So3rlFYIhjN0J0h WZ+SmNl3LwZQU7StJePmCN7Z9XnY0Aow1A1MPjouT+otT+tqT6RY8s3aqE8b+Wa67nVs k3okDueoBQU72nzS+gv/wz4U1xDkm0a6THZ/8HNfsWmaQuBa1ozEOEhMjtMTy2hJ9OYl UlOb+OB4JavZDPQgtaLLcyDADbzFoLLRBri1DuTcQZ3jnpzVk6GXjkUar0S4v3Fp8Vk+ mVZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:cc:from:subject:organization:message-id:date :user-agent:mime-version:content-language:content-transfer-encoding; bh=VPY5v6ZzgWualN0qMBfGuP3SYLv3vPSOU4crA73tm3w=; b=pxvOMgBBFqI8/K7o2jmY+hI6HvIjDyqs1m2bwis4L9sxtvuRWa36V7Kj+eOGENbYdz UxzEbBsTOiiRf0RBkg6fvSAMwrVkLw0dvXtRSgh6/KbMaiV/QhykmM5lb14WhKPqP/QI DSetBkObYqAxtxEyI6IdPrKd4aaqQB6h3Ui13XFB+FGCpnLaAhu5nzrvByKFtMG68NWc X9skcUT0QI810v2mlKSczP68v7B4iVvm+xY+dPHz1j7y6AO1MKVA3tDks2tNMMt7mjNp sGxHzWRjJMfyMTsgRRZo/47hMiiE9AVk9AiH4uZEvBkQfUl9JpEByhR91dEb0pEExRmw riCg== X-Gm-Message-State: AGi0PubrE5Cdcgp5dofn/3BYxGR6wUtPa67jmgYoXy28i+MihBiC+9oh FJ4X4i//fN/btVY7XdVPP/V5qg== X-Google-Smtp-Source: APiQypKDcGAJSrXRObbu/sFG2pa2RuDQnxfFeWqSuvZIMLtKm7au96/enK6YUxqLpFnQEGqFiBuKTw== X-Received: by 2002:a2e:b0eb:: with SMTP id h11mr2877180ljl.85.1586291954440; Tue, 07 Apr 2020 13:39:14 -0700 (PDT) Received: from wasted.cogentembedded.com ([2a00:1fa0:44c8:4ead:6627:2c4b:d1ac:b6e2]) by smtp.gmail.com with ESMTPSA id y29sm12345765ljd.26.2020.04.07.13.39.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2020 13:39:13 -0700 (PDT) To: Tudor Ambarus , linux-mtd@lists.infradead.org From: Sergei Shtylyov Subject: [PATCH] mtd: spi-nor: move #define SPINOR_OP_WRDI Organization: Cogent Embedded Message-ID: Date: Tue, 7 Apr 2020 23:39:12 +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_133916_884960_DEB4CAD6 X-CRM114-Status: GOOD ( 14.52 ) 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:244 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 after 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... 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 */