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 1jvdkd-00032v-8P for barebox@lists.infradead.org; Wed, 15 Jul 2020 09:30:56 +0000 References: <20200714091139.26244-1-christian.mauderer@embedded-brains.de> <20200714180949.GS15485@pengutronix.de> From: Christian Mauderer Message-ID: <9cfeb3a0-bb95-deb7-fbd4-d42ef48947b7@embedded-brains.de> Date: Wed, 15 Jul 2020 11:30:52 +0200 MIME-Version: 1.0 In-Reply-To: <20200714180949.GS15485@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 v4] FIT: Parse `load` and `entry` addresses. To: Sascha Hauer Cc: barebox@lists.infradead.org, a.fatoum@pengutronix.de SGVsbG8gU2FzY2hhLAoKdGhhbmtzIGZvciB0aGUgcmV2aWV3LiBJdCB3YXMgYSBiaXQgbW9yZSBl ZmZvcnQgYW5kIGVzcGVjaWFsbHkgdGhlCmV4dHJhIGZpdF9nZXRfaW1hZ2VfYWRkcmVzcyAoSSB1 c2VkIG9uZSBpbnN0ZWFkIG9mIHNlcGFyYXRlIG9uZXMgZm9yCmxvYWQgYW5kIGVudHJ5KSBtb3Zl ZCBxdWl0ZSBzb21lIGNvZGUgYXJvdW5kLiBCdXQgSSBwb3N0ZWQgYSB2NSB0aGF0CnNob3VsZCBm dWxmaWxsIHRoZSBhc2tlZCBjaGFuZ2VzLiBUaGUgb3V0cHV0IGZvciB0aGUgZm91ciBjYXNlcyAo bG9hZCwKZW50cnkgc2V0IG9yIG5vdCBzZXQpIG5vdyBsb29rcyBsaWtlIHRoZSBmb2xsb3dpbmc6 CgpiYXJlYm94QHNvbWV0YXJnZXQ6L21udC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