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.87 #1 (Red Hat Linux)) id 1e1dO7-0004LN-6X for barebox@lists.infradead.org; Mon, 09 Oct 2017 19:06:52 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 9 Oct 2017 21:06:27 +0200 Message-Id: <20171009190627.2486-4-u.kleine-koenig@pengutronix.de> In-Reply-To: <20171009190627.2486-1-u.kleine-koenig@pengutronix.de> References: <20171009190627.2486-1-u.kleine-koenig@pengutronix.de> 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 v2 3/3] e1000: Don't poll for FLSWCTL.GLDONE before starting a flash transaction To: barebox@lists.infradead.org Cc: Andrey Smirnov V2hpbGUgRkxTV0NUTC5HTERPTkUgaXMgc2V0IHdoZW4gdGhlIGxhc3QgdHJhbnNhY3Rpb24gd2Fz IGZ1bGx5CmNvbXBsZXRlZCwgdGhlcmUgaXMgbm8gZ29vZCByZWFzb24gdG8gZGVwZW5kIG9uIHRo aXMuIEFjY29yZGluZyB0byB0aGUKaTIxMCBkYXRhc2hlZXQgaGF2aW5nIEZMU1dDVEwuRE9ORSBp cyBlbm91Z2guCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29l bmlnQHBlbmd1dHJvbml4LmRlPgotLS0KIGRyaXZlcnMvbmV0L2UxMDAwL2VlcHJvbS5jIHwgMTMg KystLS0tLS0tLS0tLQogMSBmaWxlIGNoYW5nZWQsIDIgaW5zZXJ0aW9ucygrKSwgMTEgZGVsZXRp b25zKC0pCgpkaWZmIC0tZ2l0IGEvZHJ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