Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp44541imu; Thu, 15 Nov 2018 21:45:34 -0800 (PST) X-Google-Smtp-Source: AJdET5fXG57LdoJhU1FvLC3C3XMNwAfQJOXG0vtSL9hD1bxuz6JqH9XdSRIuTpxELfOS/cr0F4tu X-Received: by 2002:a63:6506:: with SMTP id z6-v6mr7142962pgb.219.1542347134297; Thu, 15 Nov 2018 21:45:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542347134; cv=none; d=google.com; s=arc-20160816; b=FacOMXqODJjHIOjd9vmY89wgNZ4PhGiLF81o4pzFMeNOpDHcdHnPAkzQnllL2sLqeN U1iGu57mUeM8HaniG6kUlx6XBX0g1utH+jGmLHOm3MnUCZGp8ovnjb2UbWqTppTp9AYf nHa9E+GcN4Z855j/WkE1HfWWdCT/fBS+8QVfLKHr75kq/DlgSFNcXk+CIsQ+rAb0xE25 03cScTLq97zfBXaMv2s5+BCVvHF+mpxXor/slOLES/TaE2LH4TbW7C7WlVhT7qhKDhs1 gr4c/RK2EELONTH0iPzcsi6oAsDItqJ619DCETiDwJl4NHXEZu2nS2G8cVvNImleo4dm 2yVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :spamdiagnosticmetadata:spamdiagnosticoutput:content-language :accept-language:in-reply-to:references:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=0ZHca1OZ5kTAi+oJgZzZ8g5gm+LwoxISsZ2zqkQ6m9k=; b=fXCHroNoUpMowQ2QOPfrVjvFaYhfcRiQF09l6nGCtiGOvoaY0KwxTJLUo/FmHEAkPA 5Wdp/I0aTgEC++3n9YVWqke/YhJVC0pxK86iXkQ9p1QrK8BF6p6dN77NVKeP2wQEn1hm sgrQ76tPcraUiXTKfLCkxYfch+28PHDA6Jab6LWcfQWIDLK6awMz0UPmTaUz71WZQO85 gL0nHQCGqNCE6JCSMutm9GhO0pwsF5pOE931VyljwSDOVMHxBtzRAygeLgHwsUfBVjk+ DLw1T92Yvn0vJz/fPoLidrKWJRwemqbkhgAKwhXVKhq9UcLucWqXrrnmvxuUzhACvJgu Kf1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=b0FiI98f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a6si1615736pfo.90.2018.11.15.21.45.19; Thu, 15 Nov 2018 21:45:34 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=b0FiI98f; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389222AbeKPPxA (ORCPT + 99 others); Fri, 16 Nov 2018 10:53:00 -0500 Received: from mail-eopbgr10042.outbound.protection.outlook.com ([40.107.1.42]:38638 "EHLO EUR02-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727273AbeKPPw7 (ORCPT ); Fri, 16 Nov 2018 10:52:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=0ZHca1OZ5kTAi+oJgZzZ8g5gm+LwoxISsZ2zqkQ6m9k=; b=b0FiI98fEEUo9d9UJR1qiQDTrQlW+MAdScqH8gnGDDbR0Vib9+5nkb+ZFT2KWRkmvFXQwqCBWQ76DvAfExJTlZ67Gz7N2xeZ+HM9TzYXgkpPKe20x0VSerZXU+/FroCc+vL1SIYR+UB1ExQVkASIFW9u/NQ+YlWA22KhcvhFVGc= Received: from VI1PR04MB5726.eurprd04.prod.outlook.com (20.178.127.24) by VI1PR04MB4367.eurprd04.prod.outlook.com (52.134.123.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.28; Fri, 16 Nov 2018 05:41:56 +0000 Received: from VI1PR04MB5726.eurprd04.prod.outlook.com ([fe80::297b:bb50:9b83:48e1]) by VI1PR04MB5726.eurprd04.prod.outlook.com ([fe80::297b:bb50:9b83:48e1%4]) with mapi id 15.20.1294.045; Fri, 16 Nov 2018 05:41:56 +0000 From: Yogesh Narayan Gaur To: Schrempf Frieder CC: Boris Brezillon , "linux-mtd@lists.infradead.org" , "linux-spi@vger.kernel.org" , Marek Vasut , Mark Brown , Han Xu , "dwmw2@infradead.org" , "computersforpeace@gmail.com" , "richard@nod.at" , "miquel.raynal@bootlin.com" , David Wolfe , Fabio Estevam , Prabhakar Kushwaha , "shawnguo@kernel.org" , "linux-kernel@vger.kernel.org" Subject: RE: [PATCH v5 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller Thread-Topic: [PATCH v5 3/9] spi: Add a driver for the Freescale/NXP QuadSPI controller Thread-Index: AQHUe1duroFEkzCsFkCoS8/TUWpV/KVO8aOggAAF6ACAAAOAgIAAGyKggAAHfQCAATWVMIAAZtCAgAAZFgCAAA2kAIABBZBw Date: Fri, 16 Nov 2018 05:41:56 +0000 Message-ID: References: <1542116782-13118-1-git-send-email-frieder.schrempf@kontron.de> <1542116782-13118-4-git-send-email-frieder.schrempf@kontron.de> <65577d13-b17d-8f69-313c-01d23240d1d9@kontron.de> <3e9aa917-cf3a-cf0e-8516-4e73d30eb2a1@kontron.de> <20181115141252.52a5b32d@bbrezillon> <11f45245-efc4-f1cf-3ead-578a5ca4bf29@kontron.de> In-Reply-To: <11f45245-efc4-f1cf-3ead-578a5ca4bf29@kontron.de> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=yogeshnarayan.gaur@nxp.com; x-originating-ip: [92.121.36.197] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;VI1PR04MB4367;6:lPs2vjgGkM3gmcCWsdqKJXdiKvKR8bbsrh13X6b9fhX13U8JMGQnImrIjNCgMyUjiCWvsOHR/S7TYZwIxAyOrBMXb+/HZ9gRmo42xwc8Q6Eh1MtSWjZzbDV/8+llqVuTv1D6F5G5yZpwb20NKPg8qBwbCtAGy2rS1bjH5ap8IVxOI1NvrQwgZBgGAqYATPjjy+zgf5Icn1ApJOMkM2XvAXTXSuxrqR1kQnoqu2Syyetj3xhLA7SXYpLs9nxzhG3xr/e3AJRNAoS6EFvxeCqhI0ssOElI0S04bLw/D4qFsTgUElEoG3lJzwUZ87WROUjlc0yfQ9qGQXh2CTgmISIRnRHatj4fPR/34m1Yh1U9AeBr3lhCVzahyUBJQg70Nk4dWeh1TwvrWpf3GK3g201C8TcnOi7e97B4qRktNLBzPb/WybryM8ayHnjGqAz8hHG+SsuHII6rEh55d/pnNfuTkg==;5:BavEbF5CNPWFZW8VkJ7Or/Z8F6cVArwEdHjAlGBCVHTQE/OwqNul7uE3ioV/Vsiz7DRWgWrGPQz5ra+8HgCAgF1O5B6X+wzjTZ4t1FKl8v7d3OcldABemkr/5WjK42Ohi7vC677TLeznD5sw7wACVRNlSF8q4AGwHsaJzU4TXGs=;7:twDQkEaQKj9waEAKqKec5JFROAvAdludnRUhFw4K8q4L0BEJHVezfatq8grCEsJoeqQkl8QtJhbOX5dSKQvNhQqgF/FWHqLWu/8hyvIcqLx7tfi1lIvuvjN82solHd+FZ7TiLy5b7eHylS88oCGKTA== x-ms-exchange-antispam-srfa-diagnostics: SOS; x-ms-office365-filtering-correlation-id: b3b7e6cd-b2b7-4e9f-4a0c-08d64b86389a x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0;PCL:0;RULEID:(2390098)(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020);SRVR:VI1PR04MB4367; x-ms-traffictypediagnostic: VI1PR04MB4367: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(258649278758335)(9452136761055)(85827821059158)(185117386973197); x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93001095)(3231415)(944501410)(52105112)(6055026)(148016)(149066)(150057)(6041310)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(201708071742011)(7699051)(76991095);SRVR:VI1PR04MB4367;BCL:0;PCL:0;RULEID:;SRVR:VI1PR04MB4367; x-forefront-prvs: 0858FF8026 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(346002)(39860400002)(366004)(136003)(396003)(376002)(13464003)(189003)(199004)(55016002)(6246003)(2906002)(14454004)(81156014)(476003)(486006)(446003)(11346002)(71200400001)(53546011)(25786009)(102836004)(6506007)(53936002)(6436002)(71190400001)(9686003)(8676002)(4326008)(81166006)(305945005)(7696005)(7416002)(86362001)(68736007)(7736002)(99286004)(5660300001)(26005)(76176011)(74316002)(8936002)(54906003)(6916009)(229853002)(3846002)(39060400002)(33656002)(316002)(186003)(14444005)(105586002)(256004)(2900100001)(66066001)(97736004)(106356001)(478600001)(93886005)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR04MB4367;H:VI1PR04MB5726.eurprd04.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: rmOOgWd/1M7vf2gp34ybRgkhmqxEzuHhqdzFxdQL83g6cdpc51bbWCpzdtVptfyNrfyWXO9Lx12KBx8Rk0BT6ETATgk3Wig6Qwv8LMKnp3EnSuUY2FUCHRKL67oLLkFCv59x4+Ehd++LdGvipS3B458d/CBq69MgeXl/EgGbt7kDhjs5tZ2Iygsx02WP67EOEr6aHCoQKAifkVp6LH/0v20szsvhs3lAloHAoVa3P51z0hcA1nBJ9uRDntebHJBXqdRHI2zgCWjmXbzpZL26xhU/YeNifP4QE8nk5ucJIr49/NiKO4COFQZVnArqCq/JKNAjw17/DpBA0TXXP+U1R/Jlbpr4ZwK1e6svUWG28k4= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3b7e6cd-b2b7-4e9f-4a0c-08d64b86389a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Nov 2018 05:41:56.4989 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR04MB4367 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org SGkgRnJpZWRlciwNCg0KPiAtLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLQ0KPiBGcm9tOiBTY2hy ZW1wZiBGcmllZGVyIFttYWlsdG86ZnJpZWRlci5zY2hyZW1wZkBrb250cm9uLkRlXQ0KPiBTZW50 OiBUaHVyc2RheSwgTm92ZW1iZXIgMTUsIDIwMTggNzozMiBQTQ0KPiBUbzogWW9nZXNoIE5hcmF5 YW4gR2F1ciA8eW9nZXNobmFyYXl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K LSAgICAgICB1MzIgbWFwX2FkZHI7DQorICAgICAgIGludCByZXQ7DQoNCiAgICAgICAgaWYgKHEt PnNlbGVjdGVkID09IHNwaS0+Y2hpcF9zZWxlY3QpDQogICAgICAgICAgICAgICAgcmV0dXJuOw0K DQotICAgICAgIC8qDQotICAgICAgICAqIEluIEhXIHRoZXJlIGNhbiBiZSBhIG1heGltdW0gb2Yg Zm91ciBjaGlwcyBvbiB0d28gYnVzZXMgd2l0aA0KLSAgICAgICAgKiB0d28gY2hpcCBzZWxlY3Rz IG9uIGVhY2ggYnVzLiBXZSB1c2UgZm91ciBjaGlwIHNlbGVjdHMgaW4gU1cNCi0gICAgICAgICog dG8gZGlmZmVyZW50aWF0ZSBiZXR3ZWVuIHRoZSBmb3VyIGNoaXBzLg0KLSAgICAgICAgKiBXZSB1 c2UgdGhlIFNGQTFBRCwgU0ZBMkFELCBTRkIxQUQsIFNGQjJBRCByZWdpc3RlcnMgdG8gc2VsZWN0 DQotICAgICAgICAqIHRoZSBjaGlwIHdlIHdhbnQgdG8gYWNjZXNzLg0KLSAgICAgICAgKi8NCi0g ICAgICAgZm9yIChpID0gMDsgaSA8IDQ7IGkrKykgew0KLSAgICAgICAgICAgICAgIGlmIChpIDwg c3BpLT5jaGlwX3NlbGVjdCkNCi0gICAgICAgICAgICAgICAgICAgICAgIG1hcF9hZGRyID0gcS0+ bWVtbWFwX3BoeTsNCi0gICAgICAgICAgICAgICBlbHNlDQotICAgICAgICAgICAgICAgICAgICAg ICBtYXBfYWRkciA9IHEtPm1lbW1hcF9waHkgKw0KLSAgICAgICAgICAgICAgICAgICAgICAgICAg ICAgICAgICAyICogcS0+ZGV2dHlwZV9kYXRhLT5haGJfYnVmX3NpemU7DQotDQotICAgICAgICAg ICAgICAgcXNwaV93cml0ZWwocSwgbWFwX2FkZHIsIHEtPmlvYmFzZSArIFFVQURTUElfU0ZBMUFE ICsgKGkgKiA0KSk7DQotICAgICAgIH0NCi0NCiAgICAgICAgaWYgKG5lZ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