From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.72 #1 (Red Hat Linux)) id 1P5Ikk-0001Ym-Hm for barebox@lists.infradead.org; Mon, 11 Oct 2010 13:49:23 +0000 From: Juergen Beisert Date: Mon, 11 Oct 2010 15:47:35 +0200 References: <1286796505-16049-1-git-send-email-s.hauer@pengutronix.de> <201010111448.43598.jbe@pengutronix.de> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201010111547.36511.jbe@pengutronix.de> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH 11/17] mci: handle SD cards < 2.0 correctly To: Belisko Marek Cc: barebox@lists.infradead.org SGkgTWFyZWssCgpCZWxpc2tvIE1hcmVrIHdyb3RlOgo+IE9uIE1vbiwgT2N0IDExLCAyMDEwIGF0 IDI6NDggUE0sIEp1ZXJnZW4gQmVpc2VydCA8amJlQHBlbmd1dHJvbml4LmRlPiB3cm90ZToKPiA+ IFNhc2NoYSBIYXVlciB3cm90ZToKPiA+PiBXaXRoIFNEIGNhcmRzIG9sZGVyIHRoYW4gMi4wIHRo ZSBzZF9zZW5kX2lmX2NvbmQoKSBmYWlscy4gRG8KPiA+PiBub3QgYXNzdW1lIGl0J3MgYW4gTU1D IGNhcmQgaW4gdGhpcyBjYXNlLiBJbnN0ZWFkLCBhc3N1bWUKPiA+PiBpdCdzIGEgTU1DIGNhcmQg aWYgc2Rfc2VuZF9vcF9jb25kKCkgZmFpbHMuCj4gPj4KPiA+PiBTaWduZWQtb2ZmLWJ5OiBTYXNj aGEgSGF1ZXIgPHMuaGF1ZXJAcGVuZ3V0cm9uaXguZGU+Cj4gPj4gL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