From patchwork Fri Feb 5 09:36:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhengxun Li X-Patchwork-Id: 1436550 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=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=merlin.20170209 header.b=qcAjvpkO; dkim-atps=neutral Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (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 4DX9Qv5zrmz9sVb for ; Fri, 5 Feb 2021 20:41:11 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject: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=GI3c/77Cwwp0xqFDQfMWfQrYosEhlOBJI9r3vJm1PHU=; b=qcAjvpkO9iXdymYCvvp2StZGEt tUn45RIxWckigAhlGLV3x0RrUvf/7cmRNJL04slQM91TMkyLQs/oNIIW2BwC16L/2Pq/DVsBs1Skp cysB7FZjTYHxBP/szvK+He2oqIHBGYIaM+IrKxlI1FAVNefSMWDzTQuXzU0r1SBwbgxB0TOlmFxqI qOQLHP5xTbndygRKROg0fMAPm2XuumCJK4MKqWZ2CLDGpMp0u/dfeff7oXzeJmrQ8F2SHdSFwV0sM g7RYapV5lr6S61PiBVT5NlrhPCDTQJZNhsXWpBRCfD/NPtNa7XzF5yDcnqUplMmcd+IcqRjpZikQr R2YR7NYw==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7xb4-0003It-J9; Fri, 05 Feb 2021 09:40:14 +0000 Received: from twhmllg3.macronix.com ([122.147.135.201]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l7xax-0003Hj-Hl for linux-mtd@lists.infradead.org; Fri, 05 Feb 2021 09:40:08 +0000 Received: from localhost.localdomain ([172.17.195.94]) by TWHMLLG3.macronix.com with ESMTP id 1159cf8E014367; Fri, 5 Feb 2021 17:38:41 +0800 (GMT-8) (envelope-from zhengxunli@mxic.com.tw) From: zhengxunli To: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, miquel.raynal@bootlin.com, broonie@kernel.org, vigneshr@ti.com Subject: [PATCH v2 0/2] Add octal DTR support for Macronix flash Date: Fri, 5 Feb 2021 17:36:46 +0800 Message-Id: <1612517808-10010-1-git-send-email-zhengxunli@mxic.com.tw> X-Mailer: git-send-email 1.9.1 X-MAIL: TWHMLLG3.macronix.com 1159cf8E014367 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210205_044008_035276_D1D0D996 X-CRM114-Status: UNSURE ( 8.53 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.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 [122.147.135.201 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 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: juliensu@mxic.com.tw, ycllin@mxic.com.tw, zhengxunli MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Hi, This series adds support for Octal DTR for Macronix flashes. The first set of patches is add Macronix octaflash series octal dtr mode support. The second set of patches add the Octal DTR mode support for host driver. Changes in v2: - Define with a generic name to describe the maximum dummy cycles. - Compare the ID directly in the loop, no longer copy and execute memcmp(). - Add spi_mem_dtr_supports_op() to support dtr operation. zhengxunli (2): mtd: spi-nor: macronix: add support for Macronix octaflash spi: mxic: patch for octal DTR mode support drivers/mtd/spi-nor/macronix.c | 121 +++++++++++++++++++++++++++++++++++++++++ drivers/spi/spi-mxic.c | 41 ++++++++++---- 2 files changed, 151 insertions(+), 11 deletions(-)