Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934919AbbLRJPJ (ORCPT ); Fri, 18 Dec 2015 04:15:09 -0500 Received: from mail-bl2on0138.outbound.protection.outlook.com ([65.55.169.138]:33407 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753321AbbLRJMS convert rfc822-to-8bit (ORCPT ); Fri, 18 Dec 2015 04:12:18 -0500 From: Yao Yuan To: "dwmw2@infradead.org" , "computersforpeace@gmail.com" CC: Xu Han , "linux-kernel@vger.kernel.org" , "linux-mtd@lists.infradead.org" Subject: RE: [PATCH v2] mtd: spi-nor: fsl-quadspi: add big-endian support Thread-Topic: [PATCH v2] mtd: spi-nor: fsl-quadspi: add big-endian support Thread-Index: AQHRIeLm3dWGL1L1FUCMS1yObFYjSp6tJbaAgCN9HkA= Date: Fri, 18 Dec 2015 09:12:13 +0000 Message-ID: References: <1447838008-3744-1-git-send-email-yao.yuan@freescale.com> <20151125190900.GA2959@chopperman.am.freescale.net> In-Reply-To: <20151125190900.GA2959@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@freescale.com; x-originating-ip: [123.151.195.1] x-microsoft-exchange-diagnostics: 1;BLUPR03MB068;5:YapPRuMaR2acmyD7tgk5BgF4meHWPSPQ3hfQLXKe8/l0QVM4Fd3urG0nji/HxIThJnHOxbqCg0zQHyaD0FteErUEZkPKQqqlKm9a6bxwS3HDeFtYZitXn2C0XchejQBcBGcnCsfjFhk9fwj7MYbA7g==;24:tfwM8XQb25GU4o4KOSR/1hByh58PSCH0S5eLNocK7BydFGAhSiK/7oHddsSWDCvRGoy5s8YQaYfup2gzzsV2xYxdwnPSE7Mrqvt3CQ6J9tU= x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB068; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(101931422205132); x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(2401047)(8121501046)(5005006)(520078)(10201501046)(3002001);SRVR:BLUPR03MB068;BCL:0;PCL:0;RULEID:;SRVR:BLUPR03MB068; x-forefront-prvs: 07943272E1 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(6009001)(377454003)(199003)(189002)(24454002)(13464003)(33656002)(2900100001)(92566002)(85806002)(81156007)(6116002)(10400500002)(5004730100002)(76176999)(99286002)(54356999)(87936001)(2950100001)(101416001)(97736004)(5001770100001)(106356001)(2501003)(66066001)(106116001)(5001960100002)(40100003)(5003600100002)(76576001)(189998001)(50986999)(5002640100001)(122556002)(86362001)(11100500001)(1096002)(5008740100001)(105586002)(586003)(102836003)(3846002)(1220700001)(19580395003)(19580405001)(74316001);DIR:OUT;SFP:1102;SCL:1;SRVR:BLUPR03MB068;H:BLUPR03MB134.namprd03.prod.outlook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Dec 2015 09:12:13.0378 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 710a03f5-10f6-4d38-9ff4-a80b81da590d 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: 1968 Lines: 66 Hi Woodhouse, Norris, Do you have any comments for this patch? Thanks for your review. Best Regards, Yuan Yao > -----Original Message----- > From: Han Xu [mailto:han.xu@freescale.com] > Sent: Thursday, November 26, 2015 3:09 AM > To: Yuan Yao-B46683 > Cc: dwmw2@infradead.org; computersforpeace@gmail.com; linux- > kernel@vger.kernel.org; linux-mtd@lists.infradead.org > Subject: Re: [PATCH v2] mtd: spi-nor: fsl-quadspi: add big-endian support On Thu, Nov 26, 2015 at > On Wed, Nov 18, 2015 at 05:13:28PM +0800, Yuan Yao wrote: > > Add R/W functions for big- or little-endian registers: > > The qSPI controller's endian is independent of the CPU core's endian. > > So far, the qSPI have two versions for big-endian and little-endian. > > > > Signed-off-by: Yuan Yao > > --- > > Changed in v2: > > Rebase to the lastest code. > > --- > > drivers/mtd/spi-nor/fsl-quadspi.c | 157 > > +++++++++++++++++++++++--------------- > > 1 file changed, 97 insertions(+), 60 deletions(-) > > > > diff --git a/drivers/mtd/spi-nor/fsl-quadspi.c > > b/drivers/mtd/spi-nor/fsl-quadspi.c > > index 9e7f657..0ce7768 100644 ... > > @@ -954,6 +990,7 @@ static int fsl_qspi_probe(struct platform_device > *pdev) > > if (IS_ERR(q->iobase)) > > return PTR_ERR(q->iobase); > > > > + q->big_endian = of_property_read_bool(np, "big-endian"); > > I am fine with this patch, but need document the new property with another > patch > > > res = platform_get_resource_byname(pdev, IORESOURCE_MEM, > > "QuadSPI-memory"); > > if (!devm_request_mem_region(dev, res->start, resource_size(res), > @@ ... > > > > Acked-by: Han xu > -- Best Regards, Yuan Yao -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/