From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1UKaHY-00076u-0d for barebox@lists.infradead.org; Tue, 26 Mar 2013 20:15:45 +0000 Received: by mail-ea0-f171.google.com with SMTP id b15so1044095eae.16 for ; Tue, 26 Mar 2013 13:15:41 -0700 (PDT) Date: Tue, 26 Mar 2013 21:17:14 +0100 From: Alexander Aring Message-ID: <20130326201713.GA3564@x61s.Speedport_W_921V_1_21_000> References: <1364307796-2407-1-git-send-email-t.gamez@phytec.de> <1364307796-2407-2-git-send-email-t.gamez@phytec.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1364307796-2407-2-git-send-email-t.gamez@phytec.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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [RFC PATCH 2/2] OMAP: Add option to use enviroment from MMC To: Teresa =?utf-8?B?R8OhbWV6?= Cc: barebox@lists.infradead.org SGksCgpPbiBUdWUsIE1hciAyNiwgMjAxMyBhdCAwMzoyMzoxNlBNICswMTAwLCBUZXJlc2EgR8Oh bWV6IHdyb3RlOgo+IE1ha2UgbG9hZGluZyBlbnZpcm9tZW50IGZyb20gTU1DIGdlbmVyaWMgZm9y IGFsbCBPTUFQLgo+IAo+IFRlc3RlZCBvbiBBTTMzNXgsIE9NQVA0Lgo+Cj4gU2lnbmVkLW9mZi1i eTogVGVyZXNhIEfDoW1leiA8dC5nYW1lekBwaHl0ZWMuZGU+Cj4gVGVzdGVkLWJ5OiBKYW4gV2Vp dHplbCA8ai53ZWl0emVsQHBoeXRlYy5kZT4KPiAtLS0KPiAgYXJjaC9hcm0vYm9hcmRzL3BhbmRh L2JvYXJkLmMgICAgICAgICAgICAgf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