From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.phytec.eu ([217.6.246.34] helo=root.phytec.de) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dJF7k-0000C7-EK for barebox@lists.infradead.org; Fri, 09 Jun 2017 08:18:30 +0000 References: <1496765425-9702-1-git-send-email-d.schultz@phytec.de> <20170607064508.lau5rlqb5k6hslf3@pengutronix.de> <20170607064909.rw2aa6atbrb37xmt@pengutronix.de> <20170607065336.utyv5z72fivph2ha@pengutronix.de> From: Daniel Schultz Message-ID: <23fe6b1a-f4af-40e0-a796-51464027b251@phytec.de> Date: Fri, 9 Jun 2017 10:17:55 +0200 MIME-Version: 1.0 In-Reply-To: <20170607065336.utyv5z72fivph2ha@pengutronix.de> Content-Language: en-US List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: base64 Content-Type: text/plain; charset="utf-8"; Format="flowed" Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] mtd: nand: omap: Fix BCH bit correction To: Sascha Hauer Cc: barebox@lists.infradead.org, Matt Reimer SGkgU2FzY2hhLAoKQW0gMDcuMDYuMjAxNyB1bSAwODo1MyBzY2hyaWViIFNhc2NoYSBIYXVlcjoK PiBPbiBXZWQsIEp1biAwNywgMjAxNyBhdCAwODo0OTowOUFNICswMjAwLCBTYXNjaGEgSGF1ZXIg d3JvdGU6Cj4+IE9uIFdlZCwgSnVuIDA3LCAyMDE3IGF0IDA4OjQ1OjA4QU0gKzAyMDAsIFNhc2No YSBIYXVlciB3cm90ZToKPj4+ICtDYyBNYXR0IFJlaW1lciA8bXJlaW1lckBzZGdzeXN0ZW1zLmNv bT4KPj4+Cj4+PiBPbiBUdWUsIEp1biAwNiwgMjAxNyBhdCAwNjoxMDoyNVBNICswMjAwLCBEYW5p ZWwgU2NodWx0eiB3cm90ZToKPj4+PiBBZnRlciBjb21taXQgZG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SAxOwpbMV0gc2luY2UgdGhpcyBpcyBmcm9tIHRo ZSBIYW1taW5nIGxvZ2ljIGFuZCBub3QgQkNILgoKVGhpcyBpcyBhIHNuaXBwZXQgZnJvbSB0aGUg bGludXgtdGkga2VybmVsOgoKICAgICAgICAgIGNhc2UgT01BUF9FQ0NfSEFNMV9DT0RFX0hXOiAK CiAgICAgICAgICAgICAgICAgIHByX2luZm8oIm5hbmQ6IHVzaW5nIE9NQVBfRUNDX0hBTTFfQ09E RV9IV1xuIik7IAoKICAgICAgICAgICAgICAgICAgbmFuZF9jaGlwLT5lY2MubW9kZSAgICAgICAg ICAgICA9IE5BTkRfRUNDX0hXOyAKCiAgICAgICAgICAgICAgICAgIG5hbmRfY2hpcC0+ZWNjLmJ5 dGVzICAgICAgICAgICAgPSAzOyAKCiAgICAgICAgICAgICAgICAgIG5hbmRfY2hpcC0+ZWNjLnNp emUgICAgICAgICAgICAgPSA1MTI7IAoKICAgICAgICAgICAgICAgICAgbmFuZF9jaGlwLT5lY2Mu c3RyZW5ndGggICAgICAgICA9IDE7IAoKICAgICAgICAgICAgICAgICAgbmFuZF9jaGlwLT5lY2Mu Y2FsY3VsYXRlICAgICAgICA9IG9tYXBfY2FsY3VsYXRlX2VjYzsgCgogICAgICAgICAgICAgICAg ICBuYW5kX2NoaXAtPmVjYy5od2N0bCAgICAgICAgICAgID0gb21hcF9lbmFibGVfaHdlY2M7IAoK ICAgICAgICAgICAgICAgICAgbmFuZF9jaGlwLT5lY2MuY29ycmVjdCAgICAgICAgICA9IG9tYXBf Y29ycmVjdF9kYXRhOyAKCiAgICAgICAgICAgICAgICAgIC8qIGRlZmluZSBFQ0MgbGF5b3V0ICov IAoKICAgICAgICAgICAgICAgICAgZWNjbGF5b3V0LT5lY2NieXRlcyAgICAgICAgICAgICA9IG5h bmRfY2hpcC0+ZWNjLmJ5dGVzCgkJIC4uLgoKICAgICAgICAgIGNhc2UgT01BUF9FQ0NfQkNIOF9D T0RFX0hXOiAKCiAgICA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