Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755885AbcCCHDO (ORCPT ); Thu, 3 Mar 2016 02:03:14 -0500 Received: from mail-bn1bon0137.outbound.protection.outlook.com ([157.56.111.137]:61024 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1755365AbcCCHDJ (ORCPT ); Thu, 3 Mar 2016 02:03:09 -0500 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; From: Yunhui Cui To: , , CC: , , , , Yunhui Cui Subject: [PATCH v3 2/4] mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ Date: Thu, 3 Mar 2016 14:54:02 +0800 Message-ID: <1456988044-37061-2-git-send-email-B56489@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1456988044-37061-1-git-send-email-B56489@freescale.com> References: <1456988044-37061-1-git-send-email-B56489@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(47776003)(2950100001)(2201001)(50466002)(85426001)(5001960100004)(87936001)(86362001)(36756003)(76176999)(77096005)(50986999)(48376002)(5001770100001)(11100500001)(1096002)(106466001)(2906002)(1220700001)(104016004)(105606002)(6806005)(4326007)(92566002)(19580395003)(229853001)(586003)(5008740100001)(5003940100001)(189998001)(4001450100002)(50226001)(19580405001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB076;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD033;1:3TyjMRwEpeC9WuadUHSkrMCG3KyMC7yJptetfh6CxoXTdX1BbC7jBVHTeYhNmVz2pz1YNDo2mPno86n8PxdF1UUnnjlnvsqNmq/AH81G2apwgzZKtwajmDeRzyIpG2cfT6pw5BahiEHVdfcNssxzDpbg0Ia/Yb0Q8sBr3xJ9PiqV3dwDZXEgbmMZ7QaYWyfLmDS9WUhFf3nwjRAK3jtqPeah3A/8zyOagONPQIEFNUthS3ea7zwO6kg2u3lj8OsYI+18PPQ9o1OsuMPaZClLjOKP6wfuLYubMd5K94euTMiIR+q3sCaGLKyHEHqXOh8wWN8paaZCn1/k+ueQDAtgSY6/pZb98QkF7fnvuNa08xgtv8XVoNf9+xbK82ZyWgWFIEixqEl0n0dAS0fwkL0VafOIaUkM298I4u78YyX98Na4srKPmNj4I1zxdnTHt8tUw+xtRBdTfw6pPwtJ/siBwFS6XzbrAPsLRcXbcaTmVANuOB9hXWlpuQEYUYur+Ul4 MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 374070aa-336b-42ef-7e6c-08d34331dc8a X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB076;2:U/YQmD5ahEuVbyWi5OJO49rsTgeHM1spBCcLtN4yMSL1+mMhLosc+H2MT829XUem47YBkduWjeC7XBjc+gyjqVo8rrY0KfkqqfLZklMMrn34XjXM+BcFbsOv4Ibs5iP2xXsFVd7ijsDjRkjdqbY1fv1GQh3yWA9inrY0N0knXHDD16xnn4ZWRp6JKkeQiaWt;3:d2yc64mPTsDvyq8deMe/mmDk1DvsD4eBJbMzksVm6iPIpAQc/PTX7ngORehgsDhBmdqPgXQKWPn1OXb5jtzLHKNXr6e7xbxxgxVNzg+lBYmM8KIGdXaJMcU3y02zmEGuyg+lubvdDW83ZiDkAHCtFCNfwZy9ZdngDxE52FE26hNbQZThOSSUN1FZHstFHpdwglarspwOuS5VzCwjTxJF8+EpK7i+WVSIl6ruGQBIei0=;25:bm5QcmttaeFIFwy3b1gw8NuDrm6s3rvG8EY98wncElEYbAzPehjIRQUgoy0A1Enqk0i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8qdiXiTDoUV5z3CFv59ikH9d/KF1pj51ikVllgA1I1neXj2+BUpISPcAreAdpijQ5SalDCSyubsqPyFIBhmwpwulESlkiLFjch7Nvh2l5g7FGnWHqgxaD+tRtB952qbXZ99JoTSHZ/vicnleRqZo9jVnfOthJxPTtdTI+ncESkzyNsWyHdYKbQLfaskhT+d4NBm5RjCAH+cWSwpSi0lIg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(13015025)(13017025)(13023025)(13024025)(5005006)(8121501046)(13018025)(3002001)(10201501046);SRVR:BY2PR03MB076;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB076; X-Forefront-PRVS: 0870212862 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB076;23:gxpmf0+YhDhTnBaEBxcXlYhJGPDcXlkwP5Lpg72nf5?= =?us-ascii?Q?/4yCpt4Q7XBwEy7kPWrSDpUXS5Gc5jTVV+5vjioWAvDLkhe9Xv964t7xMmFu?= =?us-ascii?Q?CasTozRTtctB62Esaid47RyKS2Xd4aQPTIrIGxjlslgmaHWwgvZfJgP6up+v?= =?us-ascii?Q?qCTwVuQ5UxCaEL+qwLO9XFwZGIXivHTMDHhmjSW9kWZLkfpur2dc3c2hGsNb?= =?us-ascii?Q?GXoNSWS0AuDWA53DOqMrOl0e1YQt6ERlh85rSMKD7Z+kJ5guR0pgQd8vHdMa?= =?us-ascii?Q?srxwYp/vX1Fg1rKM1StFXHLHvUUxgrDbZQ+xcDnpDUvXEhggS00omHiiFvku?= =?us-ascii?Q?UY4BJntd038/r/av+G1LFDrPm6uGv8rCw1v1oc6bOufKf0PR/wIYRCNwxL3L?= =?us-ascii?Q?Y+7xVto0KMG7WzKiD9EOjLJ+z/uVHcY+wpOVFVSt6Lt0z8aSaW5OZ4wO4M/c?= =?us-ascii?Q?O4ZAqA+MuqagrX30qgejBCWgdM3yl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riginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2016 07:03:02.0178 (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: BY2PR03MB076 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1411 Lines: 45 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 --- 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 517ffe2..9861290 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: -- 2.1.0.27.g96db324