Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1286172imm; Wed, 26 Sep 2018 15:10:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV63hYA3bIhWOvzSTultqgf99da40C16rVrIUD0jjGuFOfVHyJocz9sx3u4Gi+pWgUowSmna+ X-Received: by 2002:a63:1064:: with SMTP id 36-v6mr7355187pgq.254.1537999801176; Wed, 26 Sep 2018 15:10:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537999801; cv=none; d=google.com; s=arc-20160816; b=WCll1xHhbTUb9TJrMWRusToAJRnB8FcTAzJkLVcOb4q0Z2gkBlbCQFxBUNOujLglO7 bzwWRNI85rLrZmyxPB2uqNjSWintQETjcKq4fy1U+IYUVbD7VnuC477beTvrt7kecGkl zNISb92zkHq2dQeMKUgEfuwPnzlHYmBuH/49qJu81WZk/XIvsTUeUw24u1S7aRk46KOZ YHhEBQFjwRc9fkCnHrXXTUaAaJfDytPQJllNQZByYSS2Ep6x7urDRVuRddP/OdM4QX0F LUPKVT1sP0n9FfPpD/sf5JiRXWDOA4KJYHakdLung9xdv3/vG0jNnv8EFZwt91WSXYG6 B4fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=UVCJOAgzPiQsLF2pfGSm/WFPIqETc5HUSb/qSLgUpUc=; b=ngGQvX0dMhU7jm7zlY7Cm0yHVzJXIvmwyvMBBC5H0IXMGeDJ9uBjPfvawxHgioCZcU SR6WYDZY3U8c3SF2tyaGgX6dVNv7T1lIpuBvkzR8iG56VEOW8ddDupuLnVAQHTNCBsYT KDryv1zFsi2SQyc4i6hOxmYAzw0onC8LnDKdGFmF7XFLdOtjCjyWqRkAsj9TnSGugCHI G7Vp3kE0mU+oEVbEZ5Wj7nxKv46xgIy2kmcLne8MEeBmOrlnWYENnnwRZEuJo4iHvYCG LC0dHVpcY82WKcvopTv5f0DL4YqS8hqaL1XOgz2PxsVSA/NctGnJVEnBKUdURhSnliOP eyNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 13-v6si167531pgp.563.2018.09.26.15.09.46; Wed, 26 Sep 2018 15:10:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726635AbeI0EXI (ORCPT + 99 others); Thu, 27 Sep 2018 00:23:08 -0400 Received: from mail-out.m-online.net ([212.18.0.10]:33918 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726041AbeI0EXG (ORCPT ); Thu, 27 Sep 2018 00:23:06 -0400 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 42LBrx3TJGz1qwfC; Thu, 27 Sep 2018 00:08:01 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 42LBrx1P0Vz1qqkx; Thu, 27 Sep 2018 00:08:01 +0200 (CEST) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id fFBveWxGRQwl; Thu, 27 Sep 2018 00:07:59 +0200 (CEST) X-Auth-Info: 4fuGYoV94tzqyna2Ua0QR59XuKTyhqaAwGevCIYuzi8= Received: from localhost.localdomain (85-222-111-42.dynamic.chello.pl [85.222.111.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Thu, 27 Sep 2018 00:07:59 +0200 (CEST) From: Lukasz Majewski To: Frieder Schrempf , boris.brezillon@bootlin.com, Mark Rutland Cc: linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, linux-kernel@vger.kernel.org, yogeshnarayan.gaur@nxp.com, richard@nod.at, Stefan Agner , Fabio Estevam , Fabio Estevam , prabhakar.kushwaha@nxp.com, han.xu@nxp.com, broonie@kernel.org, david.wolfe@nxp.com, computersforpeace@gmail.com, dwmw2@infradead.org, albert.aribaud@3adev.fr, Lukasz Majewski Subject: [RFC/RFT PATCH v1 1/9] Revert "mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ" Date: Thu, 27 Sep 2018 00:07:31 +0200 Message-Id: <20180926220739.620-2-lukma@denx.de> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180926220739.620-1-lukma@denx.de> References: <20180926220739.620-1-lukma@denx.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This reverts commit 9b2a34906c917e6dacfa08f2eafa5beb8baff5e1, as it is misleading to have READ_QSPI only when we do plan to use READ_DUAL_QSPI. Lets bring back the old naming (explicitly showing the QUAD operation). Signed-off-by: Lukasz Majewski --- drivers/mtd/spi-nor/fsl-quadspi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c b/drivers/mtd/spi-nor/fsl-quadspi.c index 7d9620c7ff6c..f67f3fa5b9c9 100644 --- a/drivers/mtd/spi-nor/fsl-quadspi.c +++ b/drivers/mtd/spi-nor/fsl-quadspi.c @@ -193,7 +193,7 @@ #define QUADSPI_LUT_NUM 64 /* SEQID -- we can have 16 seqids at most. */ -#define SEQID_READ 0 +#define SEQID_QUAD_READ 0 #define SEQID_WREN 1 #define SEQID_WRDI 2 #define SEQID_RDSR 3 @@ -396,8 +396,8 @@ static void fsl_qspi_init_lut(struct fsl_qspi *q) for (i = 0; i < QUADSPI_LUT_NUM; i++) qspi_writel(q, 0, base + QUADSPI_LUT_BASE + i * 4); - /* Read */ - lut_base = SEQID_READ * 4; + /* Quad Read */ + lut_base = SEQID_QUAD_READ * 4; qspi_writel(q, LUT0(CMD, PAD1, read_op) | LUT1(ADDR, PAD1, addrlen), base + QUADSPI_LUT(lut_base)); @@ -478,7 +478,7 @@ static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd) { switch (cmd) { case SPINOR_OP_READ_1_1_4: - return SEQID_READ; + return SEQID_QUAD_READ; case SPINOR_OP_WREN: return SEQID_WREN; case SPINOR_OP_WRDI: -- 2.11.0