Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752583AbcDVGtV (ORCPT ); Fri, 22 Apr 2016 02:49:21 -0400 Received: from mail-bn1bon0114.outbound.protection.outlook.com ([157.56.111.114]:23328 "EHLO na01-bn1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751697AbcDVGtS (ORCPT ); Fri, 22 Apr 2016 02:49:18 -0400 Authentication-Results: spf=neutral (sender IP is 192.88.158.2) 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 v2 2/9] mtd: fsl-quadspi: Rename SEQID_QUAD_READ to SEQID_READ Date: Fri, 22 Apr 2016 14:39:45 +0800 Message-ID: <1461307192-866-2-git-send-email-B56489@freescale.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1461307192-866-1-git-send-email-B56489@freescale.com> References: <1461307192-866-1-git-send-email-B56489@freescale.com> X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:192.88.158.2;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10019020)(6009001)(2980300002)(189002)(199003)(4001450100002)(2906002)(229853001)(36756003)(586003)(86362001)(105586002)(106466001)(2201001)(92566002)(6806005)(11100500001)(5008740100001)(87936001)(4326007)(76176999)(50226001)(189998001)(50986999)(19580405001)(77096005)(19580395003)(48376002)(5003940100001)(104016004)(2950100001)(81166005)(50466002)(47776003)(1220700001)(1096002)(5001770100001)(7059030);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB068;H:az84smr01.freescale.net;FPR:;SPF:Neutral;MLV:sfv;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BN1BFFO11FD009;1:wBKGJZgShLeyo5SUzXE01SBNjqrOvqoHtcCNIjhpNBYNcBYVGUF2dJENGjyGpaDm5Mjf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FXLQzXzS58RMfFw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB068; X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB068;25:vz0+zrgSsOw3XKtLvBu+8tqOiLwSnlvSEarFZEcjipDANKLNMOdffzB45EQ5oNsx5d5WM12NhAv271gvHcSnk+qU4iA8EOAJAJEVaQRgxDaiYdDtFSn16W0tx0T/wHV8XIeOidWNShsMddv5fteg6iKiKd0IPdHOG9MzbI9oyiqCeOU6bhgceyG2854VJDjhPwsgXbWOR1Q/bazzNO20ffbrxAT0e5Qf2O5MZejDJbkUPT9q6RdwQCkub+Pqfnzh7ZK8S8ur39WQM2EwCZp4VJtSUiPmgY9EYSrdgHN7088mLklvivjMVJAlrP3NJF9Hd4QGSyCdtIoivuesmPg2ujV/DDz9IXDtVc4txy1AlznenYWKk1wACh081PND11MqupNO6V0VQrZ8s99YIh2QZR+2iqsI8keiVR55eYhi914YXrJhmZjDSJ2oa37NRgDURLG54aiMb/iPZbukIpYq9EQgr0IIzSnHfP3C+S3vj8q+OqjB6UO8aSYREbDTby5zEde5jUB3gQp6dALyudI+s88Gl8Qwfi9/HitEPcLOP9qwsxrnQxvpARFSdXAZevb4Wp6BMDbRa8C9ybuXKDDth2/kMGDCZyk6EBVrTwsOrCAy0bCDVvMKl4ZnODQTjX/aYs6CSmqIXqZaHtcSuPKofAFiNdG56xEU3hD/0GDdU3I= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB068;20:A863j9a46KtNxrdmL/ThRLdd5albAfdKoulYbNxGALyd1qSWDMgGYsi9a+ibuMcAbp0/Se2ym3CWTbUVVzmegUN+KrGQJwF7ogxYin+awKNgF5kMvWyH0t/g3291YHa0chxQsWWKnYgxx+8TpO8GU4z4RwjX8Nt2efmtkHgk84o/sXnh/uJpHBMTwGLpMONoWg+7ay9lqLb5ohUVsfnnlYZc2mIYpr5Q+dpSBlS1rgt6ST4ELvp+i7Vu04BG4wmjjCkwZsgZh0OV6KC771INOg06a5vkeJMCWXwwPmYrY3RDwjNShSPy2W162zd8VfCm+YI6SjJdzc7iNX8iWLg1X3SGZvyHHCXy+8CCFDU9qCOoM7XfYRfk18RF+/0f8vwjtJPQ/oEQkbJds+cUdf87F/4G8Y5MUszx276Fh6691PYTJSva0REUNYEnZ3RTn257;4:PBN+BQ8+uhfF/1tGyZPfnKFrb9cJHiCi9jVWW3JjnD2Je/pl+YEjI+BA0+FCTXnDpygMChznPkCEK4gCiDPx/TtuynBOjpvdpppQIJDLlHvE+QD/w+0+oGNu1OSXcKXb9oUjntqeeE5jpcHwB9BehFCTz55cvwrXpH6KehMGpUGf2hVWAkLzdrjSXNs2Bl2E1XV33az54d1QfOjjF2B8GxtR3kUCKS8dCXU25u3pOLed7P5dESSWN2FAkH3MJVEgOS32C8BAHKhPfra501BITWHA/GnlDATa0m2TkgDZncBwFEtSSOXXmedlzfreftaEW9mLmYulhxRS06iM1R9nCQkH7/MS7r7eSM8jXCr8p55IKv/nobG14SWewwhZ7esmznj3vqxH25WglJwb9l4SdXZui7AFbRuppMYJpdfPl0EXJxiw/17dXwgvuNrp/NRAvXJ1Ygn+THHCuem8oR56jv3TlflNxT8FAKhMnzXQkY2XG50Ar0+5mvjp6o7n9TT5 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(9101521026)(601004)(2401047)(13017025)(13015025)(13023025)(13024025)(5005006)(13018025)(8121501046)(10201501046)(3002001)(6055026);SRVR:BLUPR03MB068;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB068; X-Forefront-PRVS: 0920602B08 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BLUPR03MB068;23:XaDsiqV0V4xFKjSYeWkrO5U5DWfztAiAx9XhNKqYVw?= =?us-ascii?Q?XuxhFMVX/+kcBgH4op9Yl86u+fcVL9TkrTsU/4fE6oY7E/X+FCiSxFjjph4G?= =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bJW6rmvhgOtlZjcoVyIV8knm29HZBd?= =?us-ascii?Q?H98ZK4rweW60Cr5TX85Lfa?= X-Microsoft-Exchange-Diagnostics: 1;BLUPR03MB068;5:JYKep0I2busazJRRwTUuYYWSfhLdVQ3bINrlLDHIHwfRl9KlTSC8x6fqCfK9nHamDbr5OExv3IDkAg0S339UwD9xQosxYm/bvJFnl3M2E/rzw2HYErCkyHwmiUrZSeNDcdyv+7y0khOSgxWPHzqxOnBtq3ozV2B6YdLl/EkpO4CScs1luXYLb9lsfVWVVwGP;24:aEhcjPUoepDchtYCBxiGZUox0C3j7DXIgjh8AcMwrwLC1dP+bFT09bV/LBVmfleO/w36eGsmd0x+HOdemzkixcxM+XPz30OarDTdqVFN7bI=;7:8rd1W01caL5Ztbld9h92yHYdkbNEbrkTybA4v1JvRdhu3LLdZ2QMGFfFMoPssQDz+jjM8yQsXHCbppBrOAFarbg+EpdvIEDLfWUM0Q3Af4vzxGR0mpWIhUQ0ZMRh3kGkjOzYK4ysHFxAByVwxMK0ThmIg36DhIJmdxr82BnZv4Vm7FbAn3Lb62my2CxobN7/wwVVwH2y5pnelWthWBlqig== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Apr 2016 06:49:13.6115 (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.158.2];Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR03MB068 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