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 1k5oVl-0001G1-1w for barebox@lists.infradead.org; Wed, 12 Aug 2020 11:01:38 +0000 References: <7600f760-0533-a0e6-6075-834b064fb998@embedded-brains.de> <20200812100812.GT9475@pengutronix.de> From: Christian Mauderer Message-ID: <21ed352b-21e4-dd34-1fd9-d0aec60e8576@embedded-brains.de> Date: Wed, 12 Aug 2020 13:01:31 +0200 MIME-Version: 1.0 In-Reply-To: <20200812100812.GT9475@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 SGVsbG8gU2FzY2hhLAoKT24gMTIvMDgvMjAyMCAxMjowOCwgU2FzY2hhIEhhdWVyIHdyb3RlOgo+ IE9uIFdlZCwgQXVnIDEyLCAyMDIwIGF0IDA4OjQ3OjQ3QU0gKzAyMDAsIENocmlzdGlhbiBNYXVk ZXJlciB3cm90ZToKPj4gSGVsbG8gU2FzY2hhLAo+Pgo+PiB0aGFua3MgZm9yIHRoZSByZXZpZXcu Cj4+Cj4+IE9uIDExLzA4LzIwMjAgMDk6NTcsIFNhc2NoYSBIYXVlciB3cm90ZToKPj4+IEhpIENo cmlzdGlhbiwKPj4+Cj4+PiBPbiBXZWQsIEp1bCAxNSwgMjAyMCBhdCAxMToyNjo1NkFNICswMjAw LCBDaHJpc3RpYW4gTWF1ZGVyZXIgd3JvdGU6Cj4+Pj4gQWNjb3JkaW5nIHRvIHRoZSBVLUJvb3Qg ZG9jdW1lbnRhdGlvbiBmb3IgdGhlIEZJVCB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