From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from forward3m.mail.yandex.net ([37.140.138.3]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Z70rs-0000TW-Bu for barebox@lists.infradead.org; Mon, 22 Jun 2015 12:30:30 +0000 From: Smirnov Alexander In-Reply-To: <20150622054340.GB6325@pengutronix.de> References: <1434728762-32567-1-git-send-email-alllecs@yandex.ru> <20150622054340.GB6325@pengutronix.de> MIME-Version: 1.0 Message-Id: <629881434976201@web13m.yandex.ru> Date: Mon, 22 Jun 2015 15:30:01 +0300 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [RFC] add decode command (SPD EEPROM data decoder) To: Sascha Hauer Cc: "barebox@lists.infradead.org" SGkgU2FzY2hhIQoKMjIuMDYuMjAxNSwgMDg6NDMsICJTYXNjaGEgSGF1ZXIiIDxzLmhhdWVyQHBl bmd1dHJvbml4LmRlPjoKPiCaSGkgQWxleGFuZGVyLAo+Cj4gmk9uIEZyaSwgSnVuIDE5LCAyMDE1 IGF0IDA2OjQ2OjAyUE0gKzAzMDAsIEFsZXhhbmRlciBTbWlybm92IHdyb3RlOgo+PiCammRlY29k ZS1kaW1tcyBwZXJsIHNjcmlwdCBpcyB1c2VkIGFzIHByb3RvdHlwZQo+PiCamihzZWUgaHR0cHM6 Ly9naXRodWIuY29tL2dyb2Vjay9pMmMtdG9vbHMvYmxvYi9tYXN0ZXIvZWVwcm9tL2RlY29kZS1k aW1tcykuCj4+Cj4+IJqaSGVyZSBpcyBhIHNhbXBsZSBkZWNvZGUgb3V0cHV0Ogo+Pgo+PiCammJh cmVib3hAYmFyZWJveCBzYW5kYm94Oi8gZGVjb2RlIGVudi9jcnVjaWFsX3BjMi02NDAwX2RkcjIK Pj4gmppEZWNv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