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 1cEueZ-0000g3-Ag for barebox@lists.infradead.org; Thu, 08 Dec 2016 09:06:14 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 8 Dec 2016 10:05:43 +0100 Message-Id: <20161208090544.10267-2-u.kleine-koenig@pengutronix.de> In-Reply-To: <20161208090544.10267-1-u.kleine-koenig@pengutronix.de> References: <20161208090544.10267-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 2/3] spi: mvebu: make sure the value calculated for PSCL is also used To: barebox@lists.infradead.org VGhlIGZ1bmN0aW9uIHVzZWQgYSBzZXBhcmF0ZSB2YXJpYWJsZSB0byBob2xkIHRoZSB2YWx1ZSBj YWxjdWxhdGVkIGFuZApvbmx5IHVzZWQgaXQgZm9yIHJhbmdlIGNoZWNraW5nIGJ1dCB0aGVuIGRp ZG4ndCB1c2UgaXQuCgpUaGlzIGZpeGVzIGNhbGN1bGF0aW9uIGZvciBzbG93IGJhdWQgcmF0ZSB0 aGF0IHJlcXVpcmUgYSBkaXZpZGVyID4gMTUuCgpBZGRpdGlvbmFsbHkgZml4IHRoZSByb3VuZGlu Zy4KClNpZ25lZC1vZmYtYnk6IFV3ZSBLbGVpbmUtS8O2bmlnIDx1LmtsZWluZS1rb2VuaWdAcGVu Z3V0cm9uaXguZGU+Ci0tLQogZHJpdmVycy9zcGkvbXZlYnVfc3BpLmMgfCAxMCArKysrKy0tLS0t CiAxIGZpbGUgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCA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