From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YJTs5-0000Yo-Ut for barebox@lists.infradead.org; Thu, 05 Feb 2015 21:21:59 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 5 Feb 2015 22:21:32 +0100 Message-Id: <1423171292-26728-4-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <1423171292-26728-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1423171292-26728-1-git-send-email-u.kleine-koenig@pengutronix.de> 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" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 3/3] mtd: nand-imx: don't copy more bytes than read from hardware To: barebox@lists.infradead.org VGhlIE5GQyBjb21tYW5kIHVzZWQgZm9yIHJlYWRpbmcgdGhlIHJlc3VsdCBvZiBhIFJFQURJRCBj b21tYW5kIHRvIHRoZSBOQU5EIGNoaXAKcmVhZHMgNiBieXRlcyAoaW4geDggbW9kZSkgb3IgNiB3 b3JkcyAoaW4geDE2IG1vZGUgd2l0aCB0aGUgdXBwZXIgYnl0ZXMgYWxsCmJlaW5nIDApLiBTbyB0 aGVyZSBpcyBubyBuZWVkIHRvIHNhZmUgMTYgYnl0ZXMgZm9yIGxhdGVyIGNvbnN1bXB0aW9uLgoK U2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRy b25peC5kZT4KLS0tCiBkcml2ZXJzL210ZC9uYW5kL25hbmRfaW14LmMgfCA2ICsrKysrLQogMSBm aWxlIGNoYW5nZWQsIDUgaW5zZXJ0aW9uc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