From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.visioncatalog.de ([217.6.246.34] helo=root.phytec.de) by casper.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RdM41-0000Xp-MU for barebox@lists.infradead.org; Wed, 21 Dec 2011 13:18:34 +0000 From: Teresa Gamez In-Reply-To: <1323424858-14282-1-git-send-email-t.gamez@phytec.de> References: <1323424858-14282-1-git-send-email-t.gamez@phytec.de> Date: Wed, 21 Dec 2011 14:18:38 +0100 Message-ID: <1324473518.18539.45.camel@lws-gamez> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] nand_omap_bch_decoder: Fix up error detection To: Sascha Hauer Cc: Steve Schefter , barebox@lists.infradead.org QW0gRnJlaXRhZywgZGVuIDA5LjEyLjIwMTEsIDExOjAwICswMTAwIHNjaHJpZWIgVGVyZXNhIEfD oW1lejoKPiBGcm9tOiBTdGV2ZSBTY2hlZnRlciA8c3RldmVAc2NoZWZ0ZWNoLmNvbT4KPiAKPiBC aXQgZXJyb3JzIGluIHRoZSBFQ0MgaXRzZWxmIGFyZSBub3QgYmVlaW5nIHRha2VuIGludG8gYWNj b3VudC4KPiBJbiB0aGlzIGNhc2VzIHRoZSBudW1iZXIgb2YgZGV0ZWN0ZWQgZXJyb3JzICE9IG51 bWJlciBvZiBjb3JyZWN0ZWQgZXJyb3JzIGFuZAo+IGNoaWVuIHNlYXJjaCByZXR1cm5zIGFuIGVy cm9yLgo+IFRoaXMgcGF0Y2ggYWRkcyBkZXRlY3Rpb24gb2YgYml0IGVycm9ycyBpbiB0aGUgRUND Lgo+IAo+IFNpZ25lZC1vZmYtYnk6IFN0ZXZlIFNjaGVmdGVyIDxzdGV2ZUBzY2hlZnRlY2guY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