From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from smtp2-g21.free.fr ([212.27.42.2]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OE2xV-0006Lv-Sh for barebox@lists.infradead.org; Mon, 17 May 2010 16:14:28 +0000 Received: from smtp2-g21.free.fr (localhost [127.0.0.1]) by smtp2-g21.free.fr (Postfix) with ESMTP id A04B24B0042 for ; Mon, 17 May 2010 18:14:22 +0200 (CEST) Received: from localhost.localdomain (pac33-2-82-240-38-71.fbx.proxad.net [82.240.38.71]) by smtp2-g21.free.fr (Postfix) with ESMTP for ; Mon, 17 May 2010 18:14:20 +0200 (CEST) From: =?utf-8?q?Eric=20B=C3=A9nard?= Date: Mon, 17 May 2010 18:14:20 +0200 Message-Id: <1274112860-18684-1-git-send-email-eric@eukrea.com> 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: [PATCH] cfi_flash_intel: support 1024b buffer write To: barebox@lists.infradead.org bmV3ZXIgTnVtb255eCBTdHJhdGFmbGFzaCBQM3ggaGF2ZSAxMDI0YiBidWZmZXIsIHRodXMsIGl0 J3MgcG9zc2libGUKdG8gd3JpdGUgYSBidWZmZXIgc2l6ZSBvZiAweDIwMCB3aGljaCB0aGUgYWN0 dWFsIGZsYXNoX3dyaXRlX2NtZApkb2Vzbid0IHBlcm1pdCBhcyBpdCdzIGxpbWl0ZWQgdG8gYSB1 Y2hhciBwYXJhbWV0ZXIuCgpTaWduZWQtb2ZmLWJ5OiBFcmljIELDqW5hcmQgPGVyaWNAZXVrcmVh LmNvbT4KLS0tCiBkcml2ZXJzL25vci9jZmlfZmxhc2guYyAgICAgICB8ICAgMTEgKysrKysrKysr KysKIGRyaXZlcnMvbm9yL2NmaV9mbGFzaC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