Message ID | 20231130083854.55221-1-jaimeliao.tw@gmail.com |
---|---|
Headers | show
Return-Path: <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=A1ALIoZd; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hvlqnUhi; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SgqPs0xxlz24DM for <incoming@patchwork.ozlabs.org>; Thu, 30 Nov 2023 19:39:58 +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: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:In-Reply-To:References: List-Owner; bh=y/D1UCKhHMV8vT2V92LCMCnrEdxIdiJAjIPaGD28ULo=; b=A1ALIoZdHUeuCY SCKj3HfyyiFSC60zLURvecma+kwhHSvC+gK0NfUgSvzA7kEs0YVvJ/6xoX+MquabaNr3Zovzgc38n ee9EgrjCtQvPMUjyk5QwwU5JAfaeCsKor7E+ZV5iwgNuxaLlxdWWDG4JuhN70c7PK3jBo4/fgPFf2 b9Wrs6SuPvPPxK5Q0ouEUzpayezDnlKwzMx4hS4jHM2LVP7rSrG3xuH+a9SCNzTB9oaLaPq8wMVke DgL3r+FkdMB3KqMEkCEZuV+Q5EYuYCJjrK+gPYkMcqnbyOVbioyVxw5bZhSspA2q8Kp2BvPl/82K7 A5AuXUMwNBcfhwTJ6DSg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1r8cZm-00AEUe-0H; Thu, 30 Nov 2023 08:39:14 +0000 Received: from mail-il1-x135.google.com ([2607:f8b0:4864:20::135]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1r8cZi-00AES2-2Z for linux-mtd@lists.infradead.org; Thu, 30 Nov 2023 08:39:12 +0000 Received: by mail-il1-x135.google.com with SMTP id e9e14a558f8ab-35d2d0cb3b5so1807975ab.0 for <linux-mtd@lists.infradead.org>; Thu, 30 Nov 2023 00:39:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701333546; x=1701938346; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=7Sm9KZh59tyGwqhrcmzsLypVdhzt9q93Px0g44U3nNo=; b=hvlqnUhise86NtnbYKW4krBx+dUtVFcsSA0uuCPfgY2WnW2AF6/5SVgoq975O+s+hc 9TxqSFAXoPhL6pz0JV9TSK/dhUl9xjySlCyeiJ+92ok+xUtJealGVe2PylkuR2x0RLRh 2PLqG4E6X3kgk3g4GpewpKkMOUDFZQ816v6R4bSKYsD4fjuJ4jP3pXrSMzFCbnjbkrdD ljkh7KEJqNVmv8JozfP/PlYX7/Xxo+BZlEJeSbE1NEGDqWCk3GYBOFEj4yvyMZT1b5b7 k/6y0nkoomyZEzzq7xcgP+zX37Z9VYT6iVYmlpWnAJlkB2Cma2hyX/IaAAPoCNFHdsns rt8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701333546; x=1701938346; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7Sm9KZh59tyGwqhrcmzsLypVdhzt9q93Px0g44U3nNo=; b=phtRozuik8P3zbs/uTJ4z0oSiMnYHZSz/lkQixBdUUDThfgowIYwzf5ptMaQ8MnmW5 JE09Cy0YyeHgU0Rv+s8mg+kDdhZoxutcSgp/mvV4/6hvTlff2TaHUZrIxMV9RbZJosus 9ctRzmyThfGdg/kmcSs5RCCf9CJTvIFOHMyX+SkPffSc6gRsrVzDQ3Y3S+e8phC0Dqqc Uw6MEnv2cG3yKlJxpv6W5+3vome18iMIOYbnQCJN38FtatMe7soSGsVoB0ICIO0GTVBw 34ThL4JaKIYMXQD4nL99/JF5wfOFBaGHLrEo6YNBl37ydui4oT0I/WTilrwpEEeqC/Uw a40w== X-Gm-Message-State: AOJu0Ywp5Kgp6fQXYpjr24RKGBcTiZ++BiiaiyMpuz2pBjmYGIy3mhox c+mjRtsjHY3d+sT5W+9OgGA= X-Google-Smtp-Source: AGHT+IFKCKSXt3Var5gwf4wYlmvdT404Pl/3tlCwHm9SHp0ErtFYkpbhaXbnLwdBiO+wZu+dvNGiHw== X-Received: by 2002:a92:d8c3:0:b0:35d:3bd8:7ba2 with SMTP id l3-20020a92d8c3000000b0035d3bd87ba2mr1111884ilo.4.1701333546519; Thu, 30 Nov 2023 00:39:06 -0800 (PST) Received: from twhmp6px (mxsmtp211.mxic.com.tw. [211.75.127.162]) by smtp.gmail.com with ESMTPSA id l29-20020a63571d000000b005c2185be2basm709022pgb.54.2023.11.30.00.39.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 00:39:06 -0800 (PST) Received: from hqs-appsw-appswa2.mp600.macronix.com (linux-patcher [172.17.236.35]) by twhmp6px (Postfix) with ESMTPS id 5B0468050C; Thu, 30 Nov 2023 16:38:44 +0800 (CST) From: Jaime Liao <jaimeliao.tw@gmail.com> To: linux-mtd@lists.infradead.org, tudor.ambarus@linaro.org, pratyush@kernel.org, michael@walle.cc, miquel.raynal@bootlin.com Cc: leoyu@mxic.com.tw, jaimeliao@mxic.com.tw Subject: [PATCH v6 0/7] Add octal DTR support for Macronix flash Date: Thu, 30 Nov 2023 16:38:47 +0800 Message-Id: <20231130083854.55221-1-jaimeliao.tw@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231130_003910_832592_E616971B X-CRM114-Status: UNSURE ( 8.27 ) 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: From: JaimeLiao Add method for Macronix Octal DTR Eable/Disable. Merge Tudor's patch "Allow specifying the byte order in DTR mode" Add support for Macronix flash v6: Add byte swap support for spi-mxic.c Remove flash name in ID table. 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:135 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 [jaimeliao.tw[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 <linux-mtd.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-mtd/> List-Post: <mailto:linux-mtd@lists.infradead.org> List-Help: <mailto:linux-mtd-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-mtd>, <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-mtd" <linux-mtd-bounces@lists.infradead.org> Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
Add octal DTR support for Macronix flash
|
expand
|
From: JaimeLiao <jaimeliao@mxic.com.tw> Add method for Macronix Octal DTR Eable/Disable. Merge Tudor's patch "Allow specifying the byte order in DTR mode" Add support for Macronix flash v6: Add byte swap support for spi-mxic.c Remove flash name in ID table. v5: Remove manufacturer read id function. For increased readability, seperate Flash IDs based on whether it supports RWW feature. v4: Add patch for adding manufacturer read id function. remove patch "hook manufacturer by checking first byte id" v3: Add patch for hook manufacturer by comparing ID 1st byte. Add patches for specifying the byte order in DTR mode by merging Tudor's patch. v2: Following exsting rules to re-create Macronix specify Octal DTR method. change signature to jaimeliao@mxic.com.tw Clear sector size information in flash INFO. JaimeLiao (7): mtd: spi-nor: add Octal DTR support for Macronix flash spi: spi-mem: Allow specifying the byte order in DTR mode mtd: spi-nor: core: Allow specifying the byte order in DTR mode mtd: spi-nor: sfdp: Get the 8D-8D-8D byte order from BFPT spi: mxic: Add support for swapping byte mtd: spi-nor: add support for Macronix Octal flash with RWW feature mtd: spi-nor: add support for Macronix Octal flash drivers/mtd/spi-nor/core.c | 8 ++ drivers/mtd/spi-nor/core.h | 1 + drivers/mtd/spi-nor/macronix.c | 166 +++++++++++++++++++++++++++++++++ drivers/mtd/spi-nor/sfdp.c | 4 + drivers/mtd/spi-nor/sfdp.h | 1 + drivers/spi/spi-mem.c | 4 + drivers/spi/spi-mxic.c | 1 + include/linux/spi/spi-mem.h | 6 ++ 8 files changed, 191 insertions(+)