From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932645AbcALEJL (ORCPT ); Mon, 11 Jan 2016 23:09:11 -0500 Received: from mail-db3on0054.outbound.protection.outlook.com ([157.55.234.54]:35376 "EHLO emea01-db3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1761184AbcALEJJ convert rfc822-to-8bit (ORCPT ); Mon, 11 Jan 2016 23:09:09 -0500 From: Yao Yuan To: Han Xu , Yuan Yao CC: "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" Subject: RE: [PATCH v2 4/4] mtd: spi-nor: fsl-quadspi: extend support for some special requerment. Thread-Topic: [PATCH v2 4/4] mtd: spi-nor: fsl-quadspi: extend support for some special requerment. Thread-Index: AQHRPjtiOiH2NEqtF0SUMePRFi32157r6fQAgAtp8ZA= Date: Tue, 12 Jan 2016 04:09:04 +0000 Message-ID: References: <1450954821-7483-1-git-send-email-yao.yuan@freescale.com> <1450954821-7483-4-git-send-email-yao.yuan@freescale.com> <20160104210223.GB27554@chopperman.am.freescale.net> In-Reply-To: <20160104210223.GB27554@chopperman.am.freescale.net> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yao.yuan@nxp.com; x-originating-ip: [123.151.195.52] x-microsoft-exchange-diagnostics: 1;AM2PR04MB0721;5:ACijoIv8TtfWJzVKAGzlzdGzPNbcxcM3u9S14x329R5HTMY8j/4nXmeinCwVgH9qPxg/ikbj3N4BDWme2+7qBIIBa1eAYv/RZXsQlB3BTbvJ+AUX65mm7Y7WM3kcTt1IKXiw7Q3eAUoOb83FyGZQZA==;24:/7bFrNLut4l/A/JhnNerOrVK6O1t7poqhNyVz+5zTFpe3oyHrACidjlAr+bFkjXtFeOdSdnwv5w/p1tOTj418/pSWf6mCDFgmBkctpUjuHs= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB0721; x-ms-office365-filtering-correlation-id: 685dd8fc-8d15-4356-a365-08d31b061cba x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(185117386973197); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(520078)(8121501046)(5005006)(3002001)(10201501046);SRVR:AM2PR04MB0721;BCL:0;PCL:0;RULEID:;SRVR:AM2PR04MB0721; x-forefront-prvs: 081904387B x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(199003)(189002)(52034003)(24454002)(40100003)(33656002)(74316001)(66066001)(54356999)(5001960100002)(76176999)(5002640100001)(19580405001)(2950100001)(106116001)(106356001)(122556002)(76576001)(97736004)(101416001)(10400500002)(5001770100001)(81156007)(5004730100002)(92566002)(19580395003)(77096005)(189998001)(2900100001)(2906002)(5008740100001)(105586002)(586003)(3846002)(87936001)(5003600100002)(6116002)(102836003)(1096002)(1220700001)(4326007)(50986999)(86362001)(7059030);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR04MB0721;H:AM2PR04MB0722.eurprd04.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; spamdiagnosticoutput: 1:23 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2016 04:09:05.0431 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0721 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 05, 2016 at 05:02:34AM +0800, Han Xu wrote: > On Thu, Dec 24, 2015 at 07:00:21PM +0800, Yuan Yao wrote: > > Add extra info in LUT table to support some special requerments. > > Spansion S25FS-S family flash need some special operations. > > What's the special requirement, detail it. Ok, we will detail it in next version. > > > > > Signed-off-by: Yuan Yao > > --- > > Changed in v2: > > Update my email to > > --- > > drivers/mtd/spi-nor/fsl-quadspi.c | 41 > +++++++++++++++++++++++++++++++++++++-- > > include/linux/mtd/spi-nor.h | 4 ++++ > > 2 files changed, 43 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c > > b/drivers/mtd/spi-nor/fsl-quadspi.c > > index 9ab2b51..081ae85 100644 > > --- a/drivers/mtd/spi-nor/fsl-quadspi.c > > +++ b/drivers/mtd/spi-nor/fsl-quadspi.c > > @@ -205,6 +205,8 @@ > > @@ -848,9 +881,13 @@ static int fsl_qspi_write_reg(struct spi_nor > > *nor, u8 opcode, u8 *buf, int len) { > > struct fsl_qspi *q = nor->priv; > > int ret; > > + u32 to = 0; > > + > > + if (opcode == SPINOR_OP_SPANSION_RDAR) > > + memcpy(&to, nor->cmd_buf, 4); > > RADR or WRAR? This is hacking code, why need these two commands? Sorry, it's should be WRAR. The command RADR is necessary for Spansion S25FS-S family flash. But the WRAR we didn't use this command now. But it seems we should use it in the future. So we add this command. Hi Xu Han, David Woodhouse, Brian Norris By the way, there are some patches depend on this patch for QSPI Spansion S25FS-S family flash support on ARMv8 platform. in order to the completeness of the patch sets. I want to just send the patch set for QSPI LS1021A and LS1043A SOC support. Include: mtd-spi-nor-fsl-quadspi-add-big-endian-support.patch mtd-spi-nor-fsl-quadspi-add-support-for-ls1021a.patch Those patches add the QSPI support on LS1021A and LS1043A SOC. And another patch set will send to support Spansion S25FS-S family flash. Include: mtd-spi-nor-fsl-quadspi-add-support-for-layerscape.patch mtd-spi-nor-fsl-quadspi-extend-support-for-some-spec.patch And some other patches. Those patches will add the QSPI Spansion S25FS-S family flash support. This is used for NXP LS2080A SOC. Is that OK? Thanks. Best Regards, Yuan Yao