From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vw0-f49.google.com ([209.85.212.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1P5I6W-0004Ag-K1 for barebox@lists.infradead.org; Mon, 11 Oct 2010 13:07:52 +0000 Received: by vws5 with SMTP id 5so563520vws.36 for ; Mon, 11 Oct 2010 06:07:45 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <201010111448.43598.jbe@pengutronix.de> References: <1286796505-16049-1-git-send-email-s.hauer@pengutronix.de> <1286796505-16049-12-git-send-email-s.hauer@pengutronix.de> <201010111448.43598.jbe@pengutronix.de> Date: Mon, 11 Oct 2010 15:07:44 +0200 Message-ID: From: Belisko Marek 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: Juergen Beisert Cc: barebox@lists.infradead.org SGkgSnVlcmdlbiwKCk9uIE1vbiwgT2N0IDExLCAyMDEwIGF0IDI6NDggUE0sIEp1ZXJnZW4gQmVp c2VydCA8amJlQHBlbmd1dHJvbml4LmRlPiB3cm90ZToKPiBTYXNjaGEgSGF1ZXIgd3JvdGU6Cj4+ IFdpdGggU0QgY2FyZHMgb2xkZXIgdGhhbiAyLjAgdGhlIHNkX3NlbmRfaWZfY29uZCgpIGZhaWxz LiBEbwo+PiBub3QgYXNzdW1lIGl0J3MgYW4gTU1DIGNhcmQgaW4gdGhpcyBjYXNlLiBJbnN0ZWFk LCBhc3N1bWUKPj4gaXQncyBhIE1NQyBjYXJkIGlmIHNkX3NlbmRfb3BfY29uZCgpIGZhaWxzLgo+ Pgo+PiBTaWduZWQtb2ZmLWJ5OiBTYXNjaGEgSGF1ZXIgPHMuaGF1ZXJAcGVuZ3V0cm9uaX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