From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1cDqVD-0001Wc-4n for barebox@lists.infradead.org; Mon, 05 Dec 2016 10:28:08 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 5 Dec 2016 11:27:43 +0100 Message-Id: <20161205102743.3896-1-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] spi: mvebu: fix error handling for transfer problems To: barebox@lists.infradead.org, Sebastian Hesselbarth V2hlbiBhIG1lc3NhZ2UgdHJhbnNmZXIgZmFpbHMgbm8gZnVydGhlciBtZXNzYWdlcyBhcmUgdHJh bnNmZXJyZWQsIGJ1dAp0aGUgZXJyb3IgdmFsdWUgd2FzIG5vdCBwcm9wYWdhdGVkIHRvIHRoZSBj YWxsZXIuCgpGaXhlczogNWRiMWE1NzhkNmVkICgic3BpOiBhZGQgTWFydmVsbCBNVkVCVSBTb0Mg U1BJIGRyaXZlciIpClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1r b2VuaWdAcGVuZ3V0cm9uaXguZGU+Ci0tLQogZHJpdmVycy9zcGkvbXZlYnVfc3BpLmMgfCA4ICsr KystLS0tCiAxIGZpbGUgY2hhbmdlZCwgNCBpbnNlcnRpb25zKCspLCA0IGRlbGV0aW9ucygtKQoK ZGlmZiAtLWdpdCBhL2RyaXZlcnMvc3BpL212ZWJ1X3NwaS5jIGIvZHJpdmVycy9zcGkvbXZlYnVf c3BpLmMKaW5kZXggMzM1Nzc0ZDRjNjA5Li5lZTdiM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