From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([2a01:e0c:1:1599::11]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WLsCi-0002qN-4s for barebox@lists.infradead.org; Fri, 07 Mar 2014 10:40:37 +0000 Received: from e6520eb.local.eukrea.com (unknown [88.170.243.169]) by smtp2-g21.free.fr (Postfix) with ESMTP id 74D2C4B0129 for ; Fri, 7 Mar 2014 11:40:11 +0100 (CET) From: =?UTF-8?q?Eric=20B=C3=A9nard?= Date: Fri, 7 Mar 2014 11:39:59 +0100 Message-Id: <1394188803-13456-3-git-send-email-eric@eukrea.com> In-Reply-To: <1394188803-13456-1-git-send-email-eric@eukrea.com> References: <20140210091152.GM17250@pengutronix.de> <1394188803-13456-1-git-send-email-eric@eukrea.com> 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/7] ARM: mx53-qsrb: fix USB To: barebox@lists.infradead.org LSBjb25maWd1cmUgdGhlIE1DMzQ3MDggcHJvcGVybHkgc28gdGhhdCBVU0IgY2FuIHdvcmsKKHRo ZSBzZXF1ZW5jZSBpcyB0YWtlbiBmcm9tIHUtYm9vdCkKLSBhZGQgdGhlIHJlcXVpcmVkIGRlZmlu ZXMgdG8gdGhlIG1jMTN4eHggaW5jbHVkZSBmaWxlCgpTaWduZWQtb2ZmLWJ5OiBFcmljIELDqW5h cmQgPGVyaWNAZXVrcmVhLmNvbT4KLS0tCiBhcmNoL2FybS9ib2FyZHMvZnJlZXNjYWxlLW14NTMt cXNiL2JvYXJkLmMgfCA0NSArKysrKysrKysrKysrKysrKysrKysrKysrKysrKysKIGluY2x1ZGUv bWZkL21jMTN4eHguaCAgICAgICAgICAgICAgICAgICAgICB8IDExICsrK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