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 1e7ewz-0004m4-Pu for barebox@lists.infradead.org; Thu, 26 Oct 2017 09:59:48 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 26 Oct 2017 11:59:17 +0200 Message-Id: <20171026095917.2688-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: imx: implement support for "over-current-active-high" property To: barebox@lists.infradead.org VGhpcyBwcm9wZXJ0eSBpcyBhbHJlYWR5IGRvY3VtZW50ZWQgaW4gdGhlIGJpbmRpbmdzIGFuZCBz dXBwb3J0ZWQgYnkKTGludXguIEFzIG9uIGkuTVgyNSB0aGUgSFcgZGVmYXVsdCBpcyBhY3RpdmUg aGlnaCBhbmQgdXAgdG8gbm93IGJhcmVib3gKZGlkbid0IGZvcmNlIHRoaXMgdG8gbG93ICh3aGlj aCBpcyB0aGUgZGVmYXVsdCBmb3IgZS5nLiBpLk1YNiksIGFkZCB0aGUKcHJvcGVydHkgdG8gYmFy ZWJveCcgaW14MjUuZHRzaSB0byBrZWVwIGV4aXN0aW5nIGJlaGF2aW91ci4gSWYgb24gYQpib2Fy ZCB0aGUgT0MgcGluIGlzIGFjdGl2ZSBsb3csIHlvdSBuZWVkIHRvIGFkZAoKCS9kZWxldGUtcHJv cGVydHkvIG92ZXItY3VycmVudC1hY3RpdmUtaGlnaDsKCmluIHRoZSBib2FyZC5kdHMuCgpTaWdu ZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmlnQ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