From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phytec.de ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1aahyf-0006OK-Bi for barebox@lists.infradead.org; Tue, 01 Mar 2016 10:56:31 +0000 Date: Tue, 1 Mar 2016 11:56:05 +0100 From: Stefan Christ Message-ID: <20160301105605.GA4982@lws-christ> References: <1456398922-8253-1-git-send-email-s.christ@phytec.de> <20160301092232.GM9224@pengutronix.de> MIME-Version: 1.0 In-Reply-To: <20160301092232.GM9224@pengutronix.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: Sascha Hauer Cc: barebox@lists.infradead.org SGkgU2FzY2hhLAoKPiBkZXZpY2VfZGV0ZWN0X2J5X25hbWUoKSBzaG91bGQgYmUgc2FmZSB0byBj YWxsLCBJIGRvbid0IHRoaW5rIHdlIG5lZWQKPiB0aGlzIGFkZGl0aW9uYWwgZmxhZy4gSnVzdCBh bHdheXMgY2FsbCBkZXZpY2VfZGV0ZWN0X2J5X25hbWUoKS4gV2UgaGF2ZQo+IHRvIGRyb3AgdGhl IHJldHVybiB2YWx1ZSBjaGVja2luZyB0aG91Z2guCj4gCj4gSW4gZmFjdCB3ZSBoYXZlIHRoZSBm b2xsb3dpbmcgcGF0Y2ggaW4gb25lIG9mIG91ciBpbnRlcm5hbCBjdXN0b21lcgo+IHRyZWVzLCB0 aGlzIHNob3VsZCBiZSBzdWl0YWJsZSBmb3IgeW91ciBpc3N1ZSwgcmlnaHQ/CgpZZXAuIFRoZXNl IHR3byBsaW5lcyBvZiBjb2RlIGFyZSBzdWZmaWNlbnQgZm9yIG91ciB1c2UgY2FzZSA7L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