From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 14.mo4.mail-out.ovh.net ([46.105.40.29] helo=mo4.mail-out.ovh.net) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TbRBg-0007PQ-Ad for barebox@lists.infradead.org; Thu, 22 Nov 2012 07:27:05 +0000 Received: from mail187.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo4.mail-out.ovh.net (Postfix) with SMTP id 256791054988 for ; Thu, 22 Nov 2012 08:34:49 +0100 (CET) Date: Thu, 22 Nov 2012 08:25:03 +0100 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20121122072503.GT8327@game.jcrosoft.org> References: <1353566987-20609-1-git-send-email-zzs213@126.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <1353566987-20609-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 T24gMTQ6NDkgVGh1IDIyIE5vdiAgICAgLCDlvKDlv6DlsbEgd3JvdGU6Cj4gU2lnbmVkLW9mZi1i eTog5byg5b+g5bGxIDx6enMyMTNAMTI2LmNvbT4KPiAtLS0KPiAgZHJpdmVycy9ub3IvY2ZpX2Zs YXNoX2FtZC5jICAgfCAgICA3ICsrKysrLS0KPiAgZHJpdmVycy9ub3IvY2ZpX2ZsYXNoX2ludGVs LmMgfCAgICA3ICsrKysrLS0KPiAgMiBmaWxlcyBjaGFuZ2VkLCAxMCBpbnNlcnRpb25zKCspLCA0 IGRlbGV0aW9ucygtKQo+IAo+IGRpZmYgLS1naXQgYS9kcml2ZXJzL25vci9jZmlfZmxhc2hfYW1k LmMgYi9kcml2ZXJzL25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