From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from cpanel.siel.si ([46.19.9.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1l4MiU-0007Pr-B0 for barebox@lists.infradead.org; Tue, 26 Jan 2021 11:41:03 +0000 From: Andrej Picej References: <20210120125107.736121-1-andrej.picej@norik.com> <20210120125107.736121-3-andrej.picej@norik.com> <20210121090148.GF19063@pengutronix.de> <7df4659e-7237-c5fa-767f-7dedd5c44005@norik.com> <20210125091547.GB8233@pengutronix.de> <200bfc2a-e616-0e34-b2c4-91ef67915836@norik.com> Message-ID: Date: Tue, 26 Jan 2021 12:40:17 +0100 MIME-Version: 1.0 In-Reply-To: <200bfc2a-e616-0e34-b2c4-91ef67915836@norik.com> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 2/3] ARM: i.MX: implement GPMI NAND xload To: Sascha Hauer Cc: barebox@lists.infradead.org Ck9uIDI1LiAwMS4gMjEgMTA6NDMsIEFuZHJlaiBQaWNlaiB3cm90ZToKPiBPbiAyNS4gMDEuIDIx IDEwOjE1LCBTYXNjaGEgSGF1ZXIgd3JvdGU6Cj4+IE9uIFRodSwgSmFuIDIxLCAyMDIxIGF0IDEx OjI4OjM5QU0gKzAxMDAsIEFuZHJlaiBQaWNlaiB3cm90ZToKPj4+IEhpIFNhc2NoYSwKPj4+Cj4+ PiB0aGFua3MgZm9yIHlvdXIgY29tbWVudHMuCj4+Pgo+Pj4gUmVzcG9uc2VzIGlubGluZS4KPj4+ Cj4+PiBPbiAyMS4gMDEuIDIxIDEwOjAxLCBTYXNjaGEgSGF1ZXIgd3JvdGU6Cj4+Pj4gSGkgQW5k cmVqLAo+Pj4+Cj4+Pj4gU29tZSBjb21tZW50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