From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from dedi548.your-server.de ([85.10.215.148]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1k5kYC-0006BM-EW for barebox@lists.infradead.org; Wed, 12 Aug 2020 06:47:53 +0000 References: <20200715092656.27253-1-christian.mauderer@embedded-brains.de> <20200811075727.GJ9475@pengutronix.de> From: Christian Mauderer Message-ID: <7600f760-0533-a0e6-6075-834b064fb998@embedded-brains.de> Date: Wed, 12 Aug 2020 08:47:47 +0200 MIME-Version: 1.0 In-Reply-To: <20200811075727.GJ9475@pengutronix.de> Content-Language: en-US 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 v5] FIT: Parse `load` and `entry` addresses. To: Sascha Hauer Cc: barebox@lists.infradead.org, a.fatoum@pengutronix.de SGVsbG8gU2FzY2hhLAoKdGhhbmtzIGZvciB0aGUgcmV2aWV3LgoKT24gMTEvMDgvMjAyMCAwOTo1 NywgU2FzY2hhIEhhdWVyIHdyb3RlOgo+IEhpIENocmlzdGlhbiwKPiAKPiBPbiBXZWQsIEp1bCAx NSwgMjAyMCBhdCAxMToyNjo1NkFNICswMjAwLCBDaHJpc3RpYW4gTWF1ZGVyZXIgd3JvdGU6Cj4+ IEFjY29yZGluZyB0byB0aGUgVS1Cb290IGRvY3VtZW50YXRpb24gZm9yIHRoZSBGSVQgZmlsZSBm b3JtYXQsIHRoZSBsb2FkCj4+IGFuZCBlbnRyeSBoYXZlIHRvIGJlIGFsbHdheXMgZGVmaW5lZCBm b3IgYSAia2VybmVsIiBvciAic3RhbmRhbG9uZSIuCj4+IEJ1dCBCYXJlYm94IGlnbm9yZWQgdGhl IHBhcmFtZXRlcnMuIFRoYXQgY2hhbmdlcyB3aXRoIHRoaXMgcGF0Y2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