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 1gDTZU-0000Jc-E9 for barebox@lists.infradead.org; Fri, 19 Oct 2018 12:08:06 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 19 Oct 2018 14:07:50 +0200 Message-Id: <20181019120750.809-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] usb: ehci: call platform init before ehci reset To: barebox@lists.infradead.org T24gaS5NWDI1IHBsYXRmb3JtIGluaXQgc2V0cyB1cCB0aGluZ3MgbGlrZSB0aGUgcG9sYXJpdHkg b2YgdGhlCm92ZXJjdXJyZW50IHBpbi4gSWYgdGhlIHJlc2V0IGRlZmF1bHQgdmFsdWUgaXMgc3Rp bGwgd3JvbmcgYXQgZWhjaV9yZXNldAp0aW1lLCB0aGlzIHJlc3VsdHMgaW4gYW4gb3ZlcmN1cnJl bnQgZXZlbnQgYmVpbmcgcGVuZGluZyBpbiB0aGUgaGFyZHdhcmUKZXZlbiBpZiB0aGUgcGluIGlz IGFjdHVhbGx5IGluIGl0J3MgaW5hY3RpdmUgbGV2ZWwuIFRvIHByZXZlbnQgdGhpcyBjYWxsCnBs YXRmb3JtIGluaXQgYmVmb3JlIGVoY2lfcmVzZXQoKS4KCldpdGhvdXQgdGhpcyBjaGFuZ2UgYmFy ZWJveCBmYWlscyB0byBjb3JyZWN0bHkgaGFuZGxlIHRoZSBpbWFnaW5lZApvdmVyY3VycmVudCBl dmVudCByZXN1bHRpbmcgaW4gdGhlIGluYWJpbGl0eSB0byBhY2Nlc3MgdGh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