From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from eddie.linux-mips.org ([148.251.95.138] helo=cvs.linux-mips.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hEUgQ-0002rm-5A for barebox@lists.infradead.org; Thu, 11 Apr 2019 08:03:43 +0000 Received: (from localhost user: 'ladis' uid#1021 fake: STDIN (ladis@eddie.linux-mips.org)) by eddie.linux-mips.org id S23990946AbfDKIDjWcn86 (ORCPT ); Thu, 11 Apr 2019 10:03:39 +0200 Date: Thu, 11 Apr 2019 10:03:38 +0200 From: Ladislav Michl Message-ID: <20190411080338.GA15306@lenoch> References: <4eb7d5fd.88a6.16a01876e6b.Coremail.zzs213@126.com> <20190410062640.wihtakf6ojom54uk@pengutronix.de> <20190410164937.GA2467@lenoch> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20190410164937.GA2467@lenoch> 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: maybe bug in common/ddr_spd.c To: Sascha Hauer Cc: barebox@lists.infradead.org, =?UTF-8?B?5byg5b+g5bGx?= T24gV2VkLCBBcHIgMTAsIDIwMTkgYXQgMDY6NDk6MzhQTSArMDIwMCwgTGFkaXNsYXYgTWljaGwg d3JvdGU6Cj4gT24gV2VkLCBBcHIgMTAsIDIwMTkgYXQgMDg6MjY6NDBBTSArMDIwMCwgU2FzY2hh IEhhdWVyIHdyb3RlOgo+ID4gT24gVHVlLCBBcHIgMDksIDIwMTkgYXQgMDU6NTY6NTNQTSArMDgw MCwg5byg5b+g5bGxIHdyb3RlOgo+ID4gPiBNYXliZSB0aGlzIGlzIGEgYnVnLCBJJ20gbm90IHN1 cmUKPiA+ID4gCj4gPiA+IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tL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