From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mx1.emlix.com ([188.40.240.192]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1j7mYw-0007TQ-Dx for barebox@lists.infradead.org; Fri, 28 Feb 2020 20:48:49 +0000 Received: from mailer.emlix.com (unknown [81.20.119.6]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.emlix.com (Postfix) with ESMTPS id 34F325FA9A for ; Fri, 28 Feb 2020 21:48:45 +0100 (CET) From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= Date: Fri, 28 Feb 2020 21:48:23 +0100 Message-Id: <20200228204823.28415-4-dg@emlix.com> In-Reply-To: <20200228204823.28415-1-dg@emlix.com> References: <20200228204823.28415-1-dg@emlix.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: [PATCH 3/3] fastboot net: workaround for receiving before sending To: barebox@lists.infradead.org Cc: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= ZXRoX3J4IHdpbGwgcG9sbCBhIGRldmljZSBvbmx5IGlmIGl0IGlzIGFjdGl2ZSwgYnV0IHRoZSBv bmx5IHdheSB0bwphY3RpdmF0ZSBhIGRldmljZSBpcyBieSBjYWxsaW5nIGV0aF9jaGVja19vcGVu LiBBbHRob3VnaCBldGhfY2hlY2tfb3BlbiBpcwpjYWxsZWQgYm90aCBieSBldGhfc2VuZCBhbmQg X19ldGhfcngsIG9ubHkgdGhlIGNhbGwgZnJvbSBldGhfc2VuZCBoYXMgYW4KZWZmZWN0LCBiZWNh dXNlIGV0aF9yeCB3aWxsIG5vdCBjYWxsIF9fZXRoX3J4IHVubGVzcyBpdCBpcyBhY3RpdmUuCgpT aWduZWQtb2ZmLWJ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