From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gtUa3-00029Z-MZ for barebox@lists.infradead.org; Tue, 12 Feb 2019 09:42:23 +0000 Message-ID: <1549964536.2546.23.camel@pengutronix.de> From: Lucas Stach Date: Tue, 12 Feb 2019 10:42:16 +0100 In-Reply-To: <20190212023617.28291-1-andrew.smirnov@gmail.com> References: <20190212023617.28291-1-andrew.smirnov@gmail.com> 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] ARM: i.MX8MQ: Add code to report HDMI/eDP firmware version To: Andrey Smirnov , barebox@lists.infradead.org QW0gTW9udGFnLCBkZW4gMTEuMDIuMjAxOSwgMTg6MzYgLTA4MDAgc2NocmllYiBBbmRyZXkgU21p cm5vdjoKPiBQb3J0IGNvZGUgZm91bmQgaW4gY2RuX2RwX2xvYWRfZmlybXdhcmUoKSBpbiBMaW51 eCBrZXJuZWwgdG8gY2hlY2sgaWYKPiBIRE1JIGZpcm13YXJlIGlzIHJ1bm5pbmcgYW5kLCBpZiBz bywgcmVwb3J0IGl0cyB2ZXJzaW9uLgo+IAo+ID4gU2lnbmVkLW9mZi1ieTogQW5kcmV5IFNtaXJu b3YgPGFuZHJldy5zbWlybm92QGdtYWlsLmNvbT4KPiAtLS0KPiDCoGFyY2gvYXJtL21hY2gtaW14 L2lteDhtcS5jIHwgMzcgKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKysrKwo+IMKg MSBmaWxlIGNoYW5nZWQsIDM3IGluc2VydGlvbnMoKykKPiAKPiBkaWZmIC0tZ2l0IGEvYXJjaC9h cm0vbWFjaC1pbX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