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 1eHSBR-0007H4-1R for barebox@lists.infradead.org; Wed, 22 Nov 2017 10:23:14 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Wed, 22 Nov 2017 11:22:27 +0100 Message-Id: <20171122102231.16872-3-u.kleine-koenig@pengutronix.de> In-Reply-To: <20171122102231.16872-1-u.kleine-koenig@pengutronix.de> References: <20171122102231.16872-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 2/6] net/e1000: don't use the eeprom word size as timeout to get a semaphore To: barebox@lists.infradead.org Cc: Andrey Smirnov Tm90aGluZyBpbiB0aGUgZG9jdW1lbnRhdGlvbiBzdWdnZXN0cyB0aGF0IHRoZSB0aW1lIHRvIGdl dCBhIHNlbWFwaG9yZQpkZXBlbmRzIG9uIHRoZSBzaXplIG9mIHRoZSAob3B0aW9uYWwpIGVlcHJv bSBhbmQgSSBkb3VidCB0aGVyZSBpcyBhCnJlbGF0aW9uLiBHaXZlbiB0aGF0IDIwNDggaXMgdGhl IG1heGltYWwgdmFsdWUgZm9yIHdvcmRfc2l6ZSB1bmxlc3MgYQpmbGFzaCBpcyB1c2VkIHRvIGVt dWxhdGUgdGhlIGVlcHJvbSwgcGljayAyMDQ5IGFzIGFsdGVybmF0aXZlIGFyYml0cmFyeQp2YWx1 ZSB0aGF0IHByb2JhYmx5IGRvZXNuJ3QgcmVzdWx0IGluIHJlZ3Jlc3Npb25zLgoKVGhpcyBkcm9w cyB0aGUgb25seSB1c2VyIG9mIC0+d29yZF9za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