From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.x-arc.co.uk ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQq6K-0001l0-2v for barebox@lists.infradead.org; Thu, 07 Jun 2018 08:16:58 +0000 Message-ID: <1528359400.7592.1.camel@phytec.de> From: Teresa Remmet Date: Thu, 07 Jun 2018 10:16:40 +0200 In-Reply-To: <3b71243d-a672-e895-c30d-974b7f50922d@pengutronix.de> References: <1528116451-40149-1-git-send-email-t.remmet@phytec.de> <3b71243d-a672-e895-c30d-974b7f50922d@pengutronix.de> Mime-Version: 1.0 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] commands: mmc_extcsd: Add support to write multibyte registers To: Bastian Stender Cc: barebox@lists.infradead.org SGVsbG8gQmFzdGlhbiwKCkFtIERvbm5lcnN0YWcsIGRlbiAwNy4wNi4yMDE4LCAxMDoxMSArMDIw MCBzY2hyaWViIEJhc3RpYW4gU3RlbmRlcjoKPiBIaSBUZXJlc2EsCj4gCj4gT24gMDYvMDQvMjAx OCAwMjo0NyBQTSwgVGVyZXNhIFJlbW1ldCB3cm90ZToKPiA+IAo+ID4gSXQgaGFzIGJlZW4gcG9z c2libGUgdG8gd3JpdGUgb25seSB0aGUgZmlyc3QgYnl0ZSBvZiBhIG11bHRpYnl0ZQo+ID4gcmVn aXN0ZXIuCj4gPiBVcGRhdGVkIHRoZSBjb21tYW5kIHRvIHdyaXRlIHRoZSBjb21wbGV0ZSB2YWx1 ZSBvZiBhIG11bHRpYnl0ZQo+ID4gcmVnaXN0ZXIgYXQgb25jZS4KPiA+IAo+ID4gU2lnbmVkLW9m Zi1ieTogVGVyZXNhIFJlbW1ldCA8dC5yZW1tZXRAcGh5d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