Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7917624imu; Thu, 15 Nov 2018 03:44:11 -0800 (PST) X-Google-Smtp-Source: AJdET5cqWV2wgqZAAzOJLkswv1dlIccOpyEymizqcF0D/v//aUb7mtfnFMIPtOkJz77EzwvZFH/d X-Received: by 2002:a17:902:8210:: with SMTP id x16-v6mr5983528pln.129.1542282251167; Thu, 15 Nov 2018 03:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1542282251; cv=none; d=google.com; s=arc-20160816; b=spNIMQHvpT0jmOjGE5EeR0uuiKbPlyW1qUskEyr2GICyzfmfqhxGEgY/fEeKpt7qeo Yv7PfmFh0ueCov1+JHSH2fd3AIgIdAKth0YLxALd3/XBzw0IKYDlrYLjgnQ0MX4Ox1Da Cv7NkrOiowLKcDAPtlRlIHVXum5IThx15o8PUZy4gES9jS4JKQO7ep2f/WEkkD2BEy/n Fdu3pjOAveabYP0zCEMEDdonvGsw6+F0YxoJY5ZrSI7O41Az+BvKJkZiPaloH2El77eK Hz8yJK/fg2snqR7u1tKOIm2bKBrGJnbaMD9ZpgG3HJ2S7WDgpsgtB4J64lgM48MtAQ8b NgXg== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from; bh=BtBnMRkTtC+LYhOQcD2wCRuM6aDvanSfOvdppPqAwDg=; b=foHPbRCnpoaaFKhquL+66Ok5hc0JSjrZOv9GrFQBskXvY4oG2sPrv/GgEg/1hOm4J4 LeXC10s5lU6WoN9HQBamLRZRv45dM+ZGUSryBDyTghZAjD+03uoVpY5KiPOE2+nT4coL qGcPKiyMvHlmWFSg/oOQJ05AZC3AaCAzon7F6JQSJdmMQ8l3v2vjCvPik2LR7gDZ2Sq+ Y+i36nSoQhyxep/RYYek7RUu2XTF0njLoxIOcH7gUqwHB9xXG7wm4ULD9LRxP49ioUmo FO9qtB0YiDnubk7vFsYE29QI59VjcmwpyAYjKxe0Ay3fRQNgzCpF6ha+Kj1D+1wO5K3+ 0Dyw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f34si17689396pgm.318.2018.11.15.03.43.55; Thu, 15 Nov 2018 03:44:11 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387893AbeKOVuo (ORCPT + 99 others); Thu, 15 Nov 2018 16:50:44 -0500 Received: from skedge04.snt-world.com ([91.208.41.69]:55376 "EHLO skedge04.snt-world.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728931AbeKOVuo (ORCPT ); Thu, 15 Nov 2018 16:50:44 -0500 Received: from sntmail11s.snt-is.com (unknown [10.203.32.181]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by skedge04.snt-world.com (Postfix) with ESMTPS id DD35E67A08D; Thu, 15 Nov 2018 12:43:05 +0100 (CET) Received: from sntmail11s.snt-is.com (10.203.32.181) by sntmail11s.snt-is.com (10.203.32.181) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1466.3; Thu, 15 Nov 2018 12:43:05 +0100 Received: from sntmail11s.snt-is.com ([fe80::b972:ad22:ada5:7c6a]) by sntmail11s.snt-is.com ([fe80::b972:ad22:ada5:7c6a%4]) with mapi id 15.01.1466.003; Thu, 15 Nov 2018 12:43:05 +0100 From: Schrempf Frieder To: Yogesh Narayan Gaur , "linux-mtd@lists.infradead.org" , "boris.brezillon@bootlin.com" , "linux-spi@vger.kernel.org" , Marek Vasut , Mark Brown , Han Xu CC: "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: AQHUe1dsObjF/PT8B0W0ex5X9UGX6qVO47aAgAADEgCAAAN+AIAAG+cAgAAGuQCAAUK+AIAAWaYA Date: Thu, 15 Nov 2018 11:43:05 +0000 Message-ID: <3e9aa917-cf3a-cf0e-8516-4e73d30eb2a1@kontron.de> 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> In-Reply-To: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.25.9.42] x-c2processedorg: 51b406b7-48a2-4d03-b652-521f56ac89f3 Content-Type: text/plain; charset="utf-8" Content-ID: <7BB603BF787F11438470E8FAAE371820@snt-world.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-SnT-MailScanner-Information: Please contact the ISP for more information X-SnT-MailScanner-ID: DD35E67A08D.ADC4C X-SnT-MailScanner: Found to be clean X-SnT-MailScanner-SpamCheck: X-SnT-MailScanner-From: frieder.schrempf@kontron.de X-SnT-MailScanner-To: boris.brezillon@bootlin.com, broonie@kernel.org, computersforpeace@gmail.com, david.wolfe@nxp.com, dwmw2@infradead.org, fabio.estevam@nxp.com, han.xu@nxp.com, linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org, linux-spi@vger.kernel.org, marek.vasut@gmail.com, miquel.raynal@bootlin.com, prabhakar.kushwaha@nxp.com, richard@nod.at, shawnguo@kernel.org, yogeshnarayan.gaur@nxp.com X-Spam-Status: No Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org T24gMTUuMTEuMTggMDc6MjIsIFlvZ2VzaCBOYXJheWFuIEdhdXIgd3JvdGU6DQo+IEhpIEZyaWVk ZXIsDQo+IA0KPiBXaXRoIGJlbG93IHBhdGNoIG9uIHRvcCBvZiB5b3VyIHY1LCBSZWFkL1dyaXRl L0VyYXNlIG9uIENTMSBpcyB3b3JraW5nIGZpbmUgZm9yIG1lLg0KDQpPaywgYXJlIHlvdSBzdXJl LCB0aGF0IEFIQiByZWFkIGlzIHdvcmtpbmcgdG9vIHdpdGggdGhpcyBwYXRjaD8NCllvdSBhcmUg cmVtb3ZpbmcgdGhlIG1lbW1hcF9waHkgb2Zmc2V0IGZyb20gU0ZBUiBhbmQgdGhlIFNGWFhBRCBy ZWdpc3RlciANCnZhbHVlcy4NCg0KSSBjYW4gdW5kZXJzdGFuZCB0aGF0IHNlbGVjdGlvbiBvZiB0 aGUgQ1MgYW5kIElQIGNvbW1hbmRzIHdpbGwgd29yayBsaWtlIA0KdGhpcywgYnV0IEkgY2FuJ3Qg dW5kZXJzdGFuZCBob3cgQUhCIHJlYWQgc2hvdWxkIHdvcmsgd2l0aG91dCB0aGUgYmFzZSANCmFk ZHJlc3Mgb2YgdGhlIG1hcHBlZCBtZW1vcnkuDQoNCkknbSBhZnJhaWQgSSBzdGlsbCBkb24ndCBm dWxseSB1bmRlcnN0YW5kIHRoZSBiYWNrZ3JvdW5kIG9mIHRoZXNlIA0KdGhpbmdzLCBidXQgc3Rp bGwgdGhhbmsgeW91IGZvciB0ZXN0aW5nLg0KDQo+IA0KPiBJIGhhdmUgdGVz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