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 merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uovos-0000I1-Jr for barebox@lists.infradead.org; Tue, 18 Jun 2013 13:19:36 +0000 Message-ID: <1371561590.4168.67.camel@coredoba.hi.pengutronix.de> From: Jan =?ISO-8859-1?Q?L=FCbbe?= Date: Tue, 18 Jun 2013 15:19:50 +0200 In-Reply-To: <1371561347-3530-2-git-send-email-t.gamez@phytec.de> References: <1371561347-3530-1-git-send-email-t.gamez@phytec.de> <1371561347-3530-2-git-send-email-t.gamez@phytec.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: Re: [PATCHv2 2/3] omap3_spi: Add CS check for AM33xx To: Teresa =?ISO-8859-1?Q?G=E1mez?= Cc: barebox@lists.infradead.org T24gVHVlLCAyMDEzLTA2LTE4IGF0IDE1OjE1ICswMjAwLCBUZXJlc2EgR8OhbWV6IHdyb3RlOgo+ IEFNMzN4eCBoYXMgb25seSAyIE1jU1BJIGJ1c3NlcyBhbmQgMiBDUyBmb3IgZWFjaCBidXMuCj4g QWRkZWQgY29tbWVudCBhbmQgdGhlIGNoZWNrLgo+IAo+IFNpZ25lZC1vZmYtYnk6IFRlcmVzYSBH w6FtZXogPHQuZ2FtZXpAcGh5dGVjLmRlPgo+IC0tLQo+ICBkcml2ZXJzL3NwaS9vbWFwM19zcGku YyB8ICAgMjAgKysrKysrKysrKysrKysrKystLS0KPiAgMSBmaWxlcyBjaGFuZ2VkLCAxNyBpbnNl cnRpb25zKCspLCAzIGRlbGV0aW9ucygtKQo+IAo+IGRpZmYgLS1naXQgYS9kcml2ZXJzL3NwaS9v bWFwM19z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