From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from enterprise01.smtp.diehl.com ([193.201.238.219]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gTlIV-0001Ag-Gi for barebox@lists.infradead.org; Mon, 03 Dec 2018 10:18:38 +0000 From: Denis OSTERLAND Date: Mon, 3 Dec 2018 10:17:35 +0000 Message-ID: <1543832254.4674.4.camel@diehl.com> References: <20181125225952.16159-1-r.hieber@pengutronix.de> <20181125225952.16159-2-r.hieber@pengutronix.de> In-Reply-To: <20181125225952.16159-2-r.hieber@pengutronix.de> Content-Language: en-US Content-ID: <55FA43DCE970F7489B38CCB709103F47@diehl.internal> MIME-Version: 1.0 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 2/2] i.MX: HABv4: always print HAB status at boot time To: "barebox@lists.infradead.org" QW0gU29ubnRhZywgZGVuIDI1LjExLjIwMTgsIDIzOjU5ICswMTAwIHNjaHJpZWIgUm9sYW5kIEhp ZWJlcjoNCj4gQ3VycmVudGx5LCBib2FyZCBjb2RlIG5lZWRzIHRvIGNhbGwgaGFidjRfZ2V0X3N0 YXR1cygpIGV4cGxpY2l0ZWx5LCBidXQNCj4gdGhlcmUgaXMgbm8gcmVhc29uIHRoYXQgaXQgY2Fu bm90IGJlIGNhbGxlZCBhdXRvbWF0aWNhbGx5IGF0IHN0YXJ0dXANCj4gd2hlbiBIQUJ2NCBpcyBl bmFibGVkLiBUaGlzIHdheSB0aGUgY2FsbCBjYW5ub3QgYmUgZm9yZ290dGVuIGFuZCB3ZSBjYW4N Cj4gbWFrZSBzdXJlIHRvIHJlcG9ydCBhbGwgcG90ZW50aWFsbHkgb2NjdXJpbmcgSEFCIHdhcm5p bmdzIGFuZCBlcnJvcnMuDQpUaGlzIG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