From patchwork Thu Aug 18 07:37:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yunhui Cui X-Patchwork-Id: 9286967 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8755460574 for ; Thu, 18 Aug 2016 07:52:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7A37528FFC for ; Thu, 18 Aug 2016 07:52:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E73A28FFF; Thu, 18 Aug 2016 07:52:02 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id EF4AD28FFC for ; Thu, 18 Aug 2016 07:52:01 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1baI5w-0005L0-LX; Thu, 18 Aug 2016 07:50:32 +0000 Received: from merlin.infradead.org ([2001:4978:20e::2]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baI5W-0004IA-5g; Thu, 18 Aug 2016 07:50:06 +0000 Received: from mail-bn3nam01on0132.outbound.protection.outlook.com ([104.47.33.132] helo=NAM01-BN3-obe.outbound.protection.outlook.com) by merlin.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1baI5V-00087A-0C; Thu, 18 Aug 2016 07:50:05 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freescale.onmicrosoft.com; s=selector1-freescale-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=e6LJbX3IQbDQxKmJiSORDQ/fpKSBdSuYno6bTGSpALs=; b=d4JeMwJQthw/eyGRIa0FilC5e/7XKUOcm87/aWOOXgTEHgE4NFMaNGVxTm/W/XrKlGVwfumR9PZpRC//Ygq5qlC0i0SHLVk+Wrv5yZuDt03nvXBImY2mbA+BtHH+6gH+7zsE5GG9HZT72eKlR+Kx1dJCJF5co4zcNc6UKfWWVbg= Received: from BN3PR0301CA0015.namprd03.prod.outlook.com (10.160.180.153) by SN1PR0301MB1984.namprd03.prod.outlook.com (10.163.225.25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.9; Thu, 18 Aug 2016 07:49:39 +0000 Received: from BY2FFO11FD038.protection.gbl (2a01:111:f400:7c0c::182) by BN3PR0301CA0015.outlook.office365.com (2a01:111:e400:4000::25) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.587.9 via Frontend Transport; Thu, 18 Aug 2016 07:49:39 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=freescale.com;nxp.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD038.mail.protection.outlook.com (10.1.14.223) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.577.8 via Frontend Transport; Thu, 18 Aug 2016 07:49:39 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u7I7nW4X012341; Thu, 18 Aug 2016 00:49:36 -0700 From: Yunhui Cui To: , , , Subject: [PATCH v3 2/9] mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ Date: Thu, 18 Aug 2016 15:37:57 +0800 Message-ID: <1471505884-33996-2-git-send-email-B56489@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1471505884-33996-1-git-send-email-B56489@freescale.com> References: <1471505884-33996-1-git-send-email-B56489@freescale.com> X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(76176999)(189998001)(50986999)(50466002)(97736004)(68736007)(5001770100001)(356003)(8676002)(81156014)(48376002)(50226002)(8936002)(4326007)(81166006)(586003)(19580395003)(77096005)(85426001)(87936001)(2201001)(47776003)(106466001)(19580405001)(2950100001)(104016004)(229853001)(36756003)(5003940100001)(626004)(92566002)(305945005)(2906002)(7846002)(105606002)(8666005)(11100500001)(7059030); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0301MB1984; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD038; 1:Ca/nB0CMcWLFF94xh0Rv5G4iP15mCgvwhrt6N+YBtJRr0MLBXCocps60X1VA6xgC4DAIc8zW5D4i6uxxDheu6TbhOatuPrmmg+2dKNnNGrMlXHKyv6vQBSHjLvpGITKl40wajD7MWPBvfBGUgm5XNO06WsqDfBCmtgMhakShEN//56rEgpsCdGq3JhCYfCMeqb1cGHFKKioE5TN+Pr3KqcW45gZxnWH8GbaAjezIOQJA1T3DQK5ud58plPfW+X5Rok3l5DIhVhuH2ooWVsUCWqXeo3NKyFOAhmcWhGkdH3sryYcURCxOPkts1Ifijy2WmjEgA4xkrQlgy6+NSXC4mhu6zDsWWaQUK8F58AsolTR3G5zTO6/AaYLcc7jTmXK3TpeZP934J+RXIkW0K5IYbgWTkfKdPb6lFVK0LWd/XrpWqrTrBXsXh01+lyaYxj583iyZK6825ak25Z+q4IUbh9B4DnwEs0vLDvpwUYKYUHXOicUJMAGDm3JuFqdFlpQQw2rLL+Hsyc8G36mIbIKrWKvvpapBRGHqWjz7OpaExI4dBtiUnGEIgbebiOMAqKJr MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 82a2a227-217e-48c5-cc72-08d3c73c357c X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1984; 2:yZ2NwyJ3+JMKcDSGrfq/sQyWOz5psdUKanynYub3GbR2I1oFxc/nlitNzW4uSXCJbMOKlNVKvarwIGeCbkarQCs6IrN18vGHfvwQ9EkYfFVykZQMMYS3BvlVwxkJFoq6CYobtwMsJlWh1xXs3dJbSJwIvva+fQagjabuEHTD8zjhx7iSPIC3TLSK3pCffK6a; 3:EoiH0jXJ9avUNnzaY0QgJEZy6et3WgjN/biAv+yyhTR5JernDcBI95ZK0tuFscorf7n3LIxoaJ8ry5ETuVbS5IKx1HZaW5F51TughopmuMCVtMlEpeTJUec24tZSjosP810MLPqAIbxnNV6vNk/I/HhkEN9xzYe9TvyJqeTtQEjrofnNcDU4aRNZADPYA9yIWSOwylrTuNrgs0ueOFxNmUmU2SoP+eOBDF+n/a6vdik=; 25:dQDUc058Z7aLxHvTdYsgLyCeqC0cw/sB7I4awhaqwuDiywJNiYs1ncNfQff8TmG4PfstfvCIMiJlVHYzaO62UklAFvyU++Uv+IxilK6hjfk3OwWGLEqxkWX40CzQmOof1xN1BE0Alt47C6UuU3/JeIMyUFKNDbbNmM/l4z1SVs29AnzprHxP0SGN/O+8XTIT0VIcpiXc0Ud0ocQoCfhVE7TzYbjXOpG1ssxaQRDblLdMDOzZQXH6JDHo1NunmYjMCMiKu/yWAW22IoAo4hkQv0X73zxxkQZNiZNgf4W9M23yMt52HnPPRZ6JRS69Di58528uZiEAsPipf9fMmD4MAp7dQNuAWMcH3+y3cxm1sQVG+vqneN025tezzaWEG1xNkLS2zb0ib/5IUrpsdIr/57uCoEHEd388Wt3XvNbrmxw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:SN1PR0301MB1984; X-LD-Processed: 710a03f5-10f6-4d38-9ff4-a80b81da590d,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1984; 31:XkYEEcuaa6bu1fQQE6HBSCX8do25I4/TkLeVuaHWQBy0NHfFjJB5PkBUXWPKz4zkv/Wh6liBAcUFEngei47+AHFl1olWnQvG2lLSy/iKoZZap9eEaIcADDPr9AOvOTPZrVOsk6AnJkIy8vbS+9UaLCAou8R3tAzgOavYIe0noyAmKQCl3qyhZOswp9T3VH5MOT18AWsRuWheIipl2RkrrMvcDTCkD9/DRMezWyhOfZ8=; 20:uHVuT8NrJcr2mveFddejsWBhMygy8AObTI9h1jaDfc4UBEPeTJkc8o/k5V5isodb8ehAsf6xVLaUwtXw5yltuPaJLoWRjXSG4wCusCv5hnm82nzwxlVeIF3YckFmEyyKs+JI6vHz2zS/PYzU2iDGWYfuff3HMYicQTdBG5f67Ls7+Yh9F0bjz7FmmxhUZYFWw0+4Ey18WZormY7ZavdZmQTsIhpkBTKVrd7XHGe8kpQUHflA/b3x+09+O5oRnJSE5am+6F6pDWEXBtv7fomqBEBPhivTf5aaB6aZRIicRtk/yZQn3q2r5EsJA41DlqAVu8A3Y8UQfVCTAAOi+WHDXiSCI+bHepHhkkNbbvJ34+7yv+nCkGvDUDHke5Op/RDAhSg1qEqipQZ8UhTH0ClExO70JguJ9uVFQL/O0yObinpfljXma7KHefoux/9gjBxEB00ARSshcNUnf3S6Nmv7Bv4iRyYd/t2syAjc28qjcjqtywrvv2lM5XkNB4phojX99Z67D+V4Sa/JXavg53Fe7pC3huyPxeDUWIvxmYJaq5RK9n5DWYew4QusW/uZeHiiD4DrSrY1fGlWEMlnCgbVNBJmeIQbLEf9O+z2w0aXfwo= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(101931422205132); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(13018025)(13015025)(13023025)(13017025)(13024025)(3002001)(10201501046)(6055026); SRVR:SN1PR0301MB1984; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB1984; X-Microsoft-Exchange-Diagnostics: 1; SN1PR0301MB1984; 4:bCn5oWozytGV/I8c0y2HvwrL60OIASgqQ7p82DxkbqK8HRc2QBFudDQPo4L+EPImFg6rJGhTaomyW+AbXkRc2BAZk6sldPfCIKk3/+wIr6uNaOekLvV8NXdiMW/LasxbKJoUeSAK+sDQiYfhZvJvZDFsg77iM/lMPqUsxkaBQLtxhM4xuzStibEsQWuY+tW9uQtCzXwGZ5sPMjWQGSFinPbPaFNK3Ulqy4f/JRfu3DlLgNb3xXDB4XVWmQjsvHkcEWoR0Nogg9pVO7QVtwEMk4OI6foxyoMhki3HzfKZ2BnaA0KqRDrbdVFH9TarFQSB8tm/Iwhxtqswq0GenqiJzOThqQkf+Z5t/mA/BcaWG6Z8XBDWKuKZUY6DH/h30pGT4lwC3W4INdT3rn0tLpHbR3HLTo9yVTHnk6hdLvy3YBEGqUDojME4q0yk/ToUFJxh3ujISxWttVtH9HIlLPVuw6qdwVW+CbOtnnbA2mlZScDsLZcXeJallCr8xGr04f+kzy3ZpM3Lrx5Mxb7qzk+WrApfCfHd6ni3TYfpV4+R9OrYRjT6xeG68AX05r231Yc+VcNnJXaDjLNPj+MJ/CIzPw== X-Forefront-PRVS: 0038DE95A2 X-Microsoft-Exch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UE1GHqRYF9HnKxU8U0PCvaJ9TRN9QYM5iop2omKKqFlOtT+ovNRBd66MnsKpYOugfEK26Gxc7JmLloun7B3+gDLxwW78W8Yys9D1+xQOfW6+tPYYHnAHl6RPspI2emUC7r97rsJ8Yhdl4YiH9DKARLDxEYVSYlKMqPshhilcwlHESUaGKas9O3/qp9iG9VyMTlXyfgd8kkM6FVrW+dAna6M SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Aug 2016 07:49:39.6524 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB1984 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160818_035005_148953_ACCC17BB X-CRM114-Status: GOOD ( 20.65 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yunhui Cui , linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, yao.yuan@nxp.com Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP There are some read modes for flash, such as NORMAL, FAST, QUAD, DDR QUAD. These modes will use the identical lut table base So rename SEQID_QUAD_READ to SEQID_READ. Signed-off-by: Yunhui Cui Signed-off-by: Yunhui Cui Acked-by: Han xu --- 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 5ad6402..21c77e8 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_QUAD_READ 0 +#define SEQID_READ 0 #define SEQID_WREN 1 #define SEQID_WRDI 2 #define SEQID_RDSR 3 @@ -386,8 +386,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); - /* Quad Read */ - lut_base = SEQID_QUAD_READ * 4; + /* Read */ + lut_base = SEQID_READ * 4; qspi_writel(q, LUT0(CMD, PAD1, read_op) | LUT1(ADDR, PAD1, addrlen), base + QUADSPI_LUT(lut_base)); @@ -468,7 +468,7 @@ static int fsl_qspi_get_seqid(struct fsl_qspi *q, u8 cmd) { switch (cmd) { case SPINOR_OP_READ_1_1_4: - return SEQID_QUAD_READ; + return SEQID_READ; case SPINOR_OP_WREN: return SEQID_WREN; case SPINOR_OP_WRDI: