From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 1.mo4.mail-out.ovh.net ([178.33.248.196] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbPeP-0008PM-7V for barebox@lists.infradead.org; Thu, 22 Nov 2012 05:48:38 +0000 Received: from mail187.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 8194A1050AD7 for ; Thu, 22 Nov 2012 06:56:23 +0100 (CET) Date: Thu, 22 Nov 2012 06:46:38 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20121122054638.GQ8327@game.jcrosoft.org> References: <1353548896-5506-1-git-send-email-zzs213@126.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1353548896-5506-1-git-send-email-zzs213@126.com> 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] read cfi device id according the bus width To: =?utf-8?B?5byg5b+g5bGx?= Cc: barebox@lists.infradead.org T24gMDk6NDggVGh1IDIyIE5vdiAgICAgLCDlvKDlv6DlsbEgd3JvdGU6Cj4gU2lnbmVkLW9mZi1i eTog5byg5b+g5bGxIDx6enMyMTNAMTI2LmNvbT4KPiAtLS0KPiAgZHJpdmVycy9ub3IvY2ZpX2Zs YXNoX2FtZC5jIHwgICAyMiArKysrKysrKysrKysrLS0tLS0tLS0tCj4gIDEgZmlsZXMgY2hhbmdl ZCwgMTMgaW5zZXJ0aW9ucygrKSwgOSBkZWxldGlvbnMoLSkKPiAKPiBkaWZmIC0tZ2l0IGEvZHJp dmVycy9ub3IvY2ZpX2ZsYXNoX2FtZC5jIGIvZHJpdmVycy9ub3IvY2ZpX2ZsYXNoX2FtZC5jCj4g aW5kZXggNDVj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