From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.microcatalog.org.uk ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aagTa-0004Q8-ST for barebox@lists.infradead.org; Tue, 01 Mar 2016 09:20:20 +0000 Received: from idefix.phytec.de (idefix.phytec.de [172.16.0.10]) by root.phytec.de (Postfix) with ESMTP id 85364A00501 for ; Tue, 1 Mar 2016 10:20:16 +0100 (CET) Date: Tue, 1 Mar 2016 10:19:51 +0100 From: Stefan Christ Message-ID: <20160301091951.GA4116@lws-christ> References: <1456398922-8253-1-git-send-email-s.christ@phytec.de> MIME-Version: 1.0 In-Reply-To: <1456398922-8253-1-git-send-email-s.christ@phytec.de> Content-Disposition: inline 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: Re: [PATCH] ARM: i.MX: bbu-internal: call detect for mmc devices To: barebox@lists.infradead.org KnBpbmcKCk1pdCBmcmV1bmRsaWNoZW4gR3LDvMOfZW4gLyBLaW5kIHJlZ2FyZHMsCglTdGVmYW4g Q2hyaXN0CgpPbiBUaHUsIEZlYiAyNSwgMjAxNiBhdCAxMjoxNToyMlBNICswMTAwLCBTdGVmYW4g Q2hyaXN0IHdyb3RlOgo+IEZvciB0aGUgTU1DIHVwZGF0ZV9oYW5kbGVyIGl0IG1ha2VzIHNlbnNl IHRvIHByb2JlIHRoZSBkZXZpY2UgYmVmb3JlCj4gd3JpdGluZyB0byBpdC4gSWYgdGhlIGRldmlj ZSBpcyBub3QgcHJvYmVkIHlldCwgeW91IGdldCBlcnJvcnMgbGlrZQo+IAo+ICAgICAkIGJhcmVi b3hfdXBkYXRlIC15IC10IG1tYzAgL21udC90ZnRwL2JhcmVib3guYmluCj4gICAgIGJhcmVib3hf dXBkY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