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 merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kXSxT-0001fY-VI for barebox@lists.infradead.org; Tue, 27 Oct 2020 17:40:32 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 27 Oct 2020 18:40:25 +0100 Message-Id: <20201027174025.23228-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: i.MX: warn if vbus regulator isn't available To: barebox@lists.infradead.org Cc: Marco Felsch SW5zdGVhZCBvZiBqdXN0IGlnbm9yaW5nIGVycm9ycyByZWxhdGVkIHRvIHJlZ3VsYXRvciB5aWVs ZCBhdCBsZWFzdCBhCndhcm5pbmcgbWVzc2FnZS4KCkluIGNhc2UgdGhlcmUgaXMgbm8gcmVndWxh dG9yIGluIHRoZSBkZXZpY2UgdHJlZSwgcmVndWxhdG9yX2dldCgpIHJldHVybnMKdGhlIGR1bW15 IHJlZ3VsYXRvciBhbmQgbm90IGFuIGVycm9yIGNvZGUuIFRoZSBhbHRlcm5hdGl2ZSB0byBlcnJv ciBvdXQKd2Fzbid0IGFjY2VwdGVkIGJlY2F1c2UgdGhpcyBwcm9iYWJseSBjcmVhdGVzIHJlZ3Jl c3Npb25zIGZvciByZWd1bGF0b3JzCnRoYXQgYXJlIGRlZmF1bHQtb24gYnV0IHdpdGhvdXQgYSBk cml2ZXIuCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5rbGVpbmUta29lbmln QHBlbmd1dHJvbml4LmRlPgotLS0KIGRyaXZlcnMvdXNiL2lteC9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