Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752025AbcDNEPb (ORCPT ); Thu, 14 Apr 2016 00:15:31 -0400 Received: from mail-bl2on0122.outbound.protection.outlook.com ([65.55.169.122]:22638 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751476AbcDNEP3 (ORCPT ); Thu, 14 Apr 2016 00:15:29 -0400 Authentication-Results: spf=neutral (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 2/9] mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ Date: Thu, 14 Apr 2016 11:50:48 +0800 Message-ID: <1460605855-6689-3-git-send-email-B56489@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1460605855-6689-1-git-send-email-B56489@freescale.com> References: <1460605855-6689-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)(199003)(189002)(229853001)(4326007)(1220700001)(586003)(76176999)(105586002)(1096002)(5008740100001)(2906002)(6806005)(92566002)(104016004)(2201001)(189998001)(47776003)(5003940100001)(5001770100001)(36756003)(86362001)(50986999)(106466001)(4001450100002)(48376002)(50466002)(81166005)(19580405001)(50226001)(11100500001)(19580395003)(77096005)(87936001)(2950100001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:BY2PR03MB076;H:tx30smr01.am.freescale.net;FPR:;SPF:Neutral;MLV:sfv;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BY2FFO11OLC010;1:fV/mEwiKMTJtsK7MbnuSzrXNg1wQdm8RbatdFkgG6C9oSHrQOLl09/iO10B7jrui6RLXkhdiHfJuYcUIk7lITmsuZV//L3TVi/sRbUzfTEJWua7GbiXF8UxZMxE/UeRGK1m2m5Gs/bUHGNO6xMNfiAsskendlvF7oOoEeUz2M+AG7PXDYfgAtKJaYJ+gAZZktv4q7QwZTpVsP4ThTyRIa+469f+7VLKdZ7DziLSlrTquxBO5LiuJZ3rNCvWlHkS0gQ98T72I/fXSAEyloWu9RvLrhFfJErrPQDPUrIIswey2Vlcrv2IhFs/L7snCwS+3a2SoZUtZJQ5Btm9qJch10yvSk079SS+nq2TepWSBfltVRwFmB5rQgepWyFJF2uqfpkxLVfyyuYRQsdcexQikZMQuqpz3cYtziYaYQS/DCNqWw7PKyJ/jRSZ/iC4mACM8cM7o2ulJmmzexi/f0wfUAtVytWs6uFEyTlDup/SeKEkRY7K0zpW37mS6fyY5V7S+O+BYZN1930hezRALx962TtDhzoebBDUkrUb/IYWA50hnlSGIRSYVfGoWhT0Pr5n/CcIzr9YB4+0PlxtqvNVbNQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c17d2d33-d3e6-44ab-ae6f-08d3641949dc X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB076;2:So2TRcfusQFTK33719ob2qFSfWeylW3AG78Noke3KVjrMySSi0NX5hqCJUJFHtDmUocWLL7xU7cXoSrQ8S48VhveF7NHhe5AfZdjGumC7HtWIfEZNbfEC0OqY6zTh9KDu53RHdzn1S40d9ruHdiz/G4RIR3XcxDK+wTwOywdBESiok/lMEbNhvtfXEdkpjg9;3:XGQbXWmXfS8sr0iCt+Tjfxcq2dGP+kdL7lP2Au+gTOCaVgLUfccNPJnIvjXqrgG537AZPS3kCJoJeLnYAds/m76qbB8s9/JibwaaL2DWf6JLttj34Z+QcLymYCT1M9cWgCTnnruxih77l5xWvDX6dMDBJiLA//bOMd4ELKDUitR0nIQUm4xCZP50Vr6b1D86lZPAQrxVaGwHu98v61XpXEMNHLjwJ8JBRn6TJQx5fww=;25:oqeO0KNLoQFa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CHYedzxhiNm3NrrSFUe45UNWSUYiDv/JEco01qKiHj4tlnBkBvDR5krofRy62HKTaj1IX9JSk9WOGFerpEDDxHIHoO3Dk9mlF/5/E+RP25yg73LX8kbySqcDQlGR5DhMEaxm1Er9FS7B+bgrexyrSPSAVi5BUgOEZUtUFcoiLvXGbyS7VcGLeWt10fh6Ea3byqaLMQH0NBvzSsaDleYvwcOoYGsBpbXwo7MR/63H2cHnYWY874QqSBMnOX6/c3aGshO2CBfM2okuY+NoVBiekV8M= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(13023025)(8121501046)(13024025)(13018025)(13017025)(13015025)(10201501046)(3002001)(6055026);SRVR:BY2PR03MB076;BCL:0;PCL:0;RULEID:;SRVR:BY2PR03MB076; X-Forefront-PRVS: 0912297777 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BY2PR03MB076;23:N5VcvGtl8+xFc6diMaAE+rMTXRyA9RExqgl5x6OY/Q?= =?us-ascii?Q?eKrGv8h3gkgqCgnWbXWmpr53pl/u1wg0eQe0Cg9fV8Q3/EdwxPEVuJ+s1pmr?= =?us-ascii?Q?MAvR5K7Kfi9x8277K6IulFwZPPXKyCKO2oH8WJf8J7Uc7OYz37q9E8JyvAU+?= =?us-ascii?Q?yyyYk325iXUI1a27nuv6fqEjxn6DyyupeHsh2II2Eb+xGCpMG68FCyFsjDn/?= =?us-ascii?Q?4x7z9Sm60KPouaBXr766m0vJGMqep0yK2xYJ8eCwL0H1LvREUEWbeUGrxVkc?= =?us-ascii?Q?RSBQWw9jyYY2hPDIp8VyFSpdpwy0SdaE2BDLIbbi+Yb8sj4o+Hh4M9ka2EHV?= =?us-ascii?Q?f6OErvaJ8LGDTiam0Rf5Js/UnZhacuHolecuZXHybru9S7DuxwPGpGoWxjFf?= =?us-ascii?Q?v4zlPzCGXZAggady2Pmte6TaFLq0M+BLeSyaPT7XVkwhgEcxTPFqV7eSd4yG?= =?us-ascii?Q?Xty2G7RVym8OGkND7J7YvijfP03Ly56bSqe81mkCP+BtdUI92t4ov4Hmo6cQ?= =?us-ascii?Q?a7zcvb1kT62NME0o4+pJUN72Uj4Qog+2iQokDOHSXZqgVDR/WY3iYxGpPxWt?= =?us-ascii?Q?RS/yfwCHY2nktoL8NufA0TA1P+HmYTQFGqLw7nHVk+V+CsMqc/9egcBx2raZ?= =?us-ascii?Q?3fgfgrYDq1fyXEt+e3JFFwNiKr+UwCu2sP8ay8ykAALsH+CLOFyy4RMiIVGd?= =?us-ascii?Q?Okl03MkKUVDuoA6fbhT3wDSY8D1LC6cMkJ2hKsVGVVfMkgP7PwGh1w8G9ZGk?= =?us-ascii?Q?7PN5Et7d8J8Psx9hbSgDMKxyuSMg7bBjG7Q3kIS6uLqxDuTNh71SUAshdYGy?= =?us-ascii?Q?QW/i+mSv+iCG5KMbH1htkOCRsKLs04+I2G7T3T+pznr5+yA/GlsE5WsfmcwX?= =?us-ascii?Q?RULZivPoSK1n2Oz3rsZbY1oYTUIrWgQ30d7Xrs47vaF33ih0IwyxRkrpfJix?= =?us-ascii?Q?NW2VnWdWTtbkBEjg+rhcKA4ndXorCUJrI2JpvKhs9KxJyh1C+s4OQRVB7VQr?= =?us-ascii?Q?3PoI1Uz8Z34a4c7/mTNHgW?= X-Microsoft-Exchange-Diagnostics: 1;BY2PR03MB076;5:A7StBAdKtzeCFL2iT+71QJKkxjXFu2owdhweJbBtGNxt5sMY63Xf7k+pz4NTnHCvHBfWQQNPiKvvghFy8lzzi9k0B8EXMnu1mY2Te/zA0dZNjgVG4sC9ESlCjmFohuZpjEOjgmq/dv012YbbQ4NDsw==;24:eOacKE/f2TlcdXbuvj01s5cOo9GSBhpLVtawnHGefoWuKA98sevnlgC2HOFSTTinS6rvBUIG+U6uYBF0CckxsjtmGQOb4wpimhWOA9XBypY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Apr 2016 04:00:16.3659 (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