From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-vw0-f49.google.com ([209.85.212.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1ROpZa-0007R8-Cv for barebox@lists.infradead.org; Fri, 11 Nov 2011 11:47:07 +0000 Received: by vws15 with SMTP id 15so4226467vws.36 for ; Fri, 11 Nov 2011 03:47:05 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <1321011494-4274-2-git-send-email-s.hauer@pengutronix.de> References: <1321011494-4274-1-git-send-email-s.hauer@pengutronix.de> <1321011494-4274-2-git-send-email-s.hauer@pengutronix.de> Date: Fri, 11 Nov 2011 12:47:04 +0100 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 1/2] mci: implement multi block write To: Sascha Hauer Cc: barebox@lists.infradead.org T24gRnJpLCBOb3YgMTEsIDIwMTEgYXQgMTI6MzggUE0sIFNhc2NoYSBIYXVlciA8cy5oYXVlckBw ZW5ndXRyb25peC5kZT4gd3JvdGU6Cj4gVGhpcyBzcGVlZHMgdXAgd3JpdGVzIHRvIE1NQy9TRCBj YXJkcyBzaWduaWZpY2FudGx5Lgo+Cj4gU2lnbmVkLW9mZi1ieTogU2FzY2hhIEhhdWVyIDxzLmhh dWVyQHBlbmd1dHJvbml4LmRlPgo+IC0tLQo+IMKgZHJpdmVycy9tY2kvbWNpLWNvcmUuYyB8IMKg IDMwICsrKysrKysrKysrKysrKysrKysrKysrKysrLS0tLQo+IMKgMSBmaWxlcyBjaGFuZ2VkLCAy NiBpbnNlcnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQo+Cj4gZGlmZiAtLWdpdCBhL2RyaXZlcnMv bWNpL21jaS1jb3JlLmMgYi9kcml2ZXJzL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