From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.visioncatalog.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1cEXwr-0000F1-J9 for barebox@lists.infradead.org; Wed, 07 Dec 2016 08:51:35 +0000 Date: Wed, 7 Dec 2016 09:51:05 +0100 From: Stefan Lengfeld Message-ID: <20161207085105.GC2371@lws-christ> References: <1480949684-18520-1-git-send-email-andrew.smirnov@gmail.com> <1480949684-18520-3-git-send-email-andrew.smirnov@gmail.com> <20161205151431.GC14158@lws-christ> MIME-Version: 1.0 In-Reply-To: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 02/16] i.MX: ocotp: Add provisions for storing multiple MAC addresses To: Andrey Smirnov Cc: "barebox@lists.infradead.org" SGkgQW5kcmV5LAoKPiBJIGRpZCBzZWUgdGhhdCBwYXRjaCBnbyB0aHJvdWdoLCBob3dldmVyIHNp bmNlIHRoZSB0aXRsZSBvZiBpdCBpcwo+ICJhcm06IGlteDY6IG9jb3RwOiBBZGRlZCBzdXBwb3J0 IGZvciB0aGUgaS5NWDZVTCIgSSBkaWRuJ3QgbG9vayBpbnRvCj4gaXQgYW55IGZ1cnRoZXIuCgpJ biB0aGUgbGlnaHQgb2YgdGhlIFZ5YnJpZCBhbHNvIHN1cHBvcnRzIHR3byBNQUMgYWRkcmVzc2Vz IHlvdXIgcGF0Y2ggdGl0bGUKCiAgICBpLk1YOiBvY290cDogQWRkIHByb3Zpc2lvbnMgZm9yIHN0 b3JpbmcgbXVsdGlwbGUgTUFDIGFkZHJlc3NlcwoKaXMgYmV0dGVyLCBzaW5jZSBpdCBpcyBtb3Jl IGdlbmVyaWMuCgo+ID4gWW91ciBhcHByb2Fj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