diff options
Diffstat (limited to 'meta/recipes-kernel/linux/linux-omap-2.6.29/evm-mcspi-ts.diff')
-rw-r--r-- | meta/recipes-kernel/linux/linux-omap-2.6.29/evm-mcspi-ts.diff | 132 |
1 files changed, 132 insertions, 0 deletions
diff --git a/meta/recipes-kernel/linux/linux-omap-2.6.29/evm-mcspi-ts.diff b/meta/recipes-kernel/linux/linux-omap-2.6.29/evm-mcspi-ts.diff new file mode 100644 index 0000000000..64d797cf96 --- /dev/null +++ b/meta/recipes-kernel/linux/linux-omap-2.6.29/evm-mcspi-ts.diff | |||
@@ -0,0 +1,132 @@ | |||
1 | From linux-omap-owner@vger.kernel.org Sun Nov 02 21:08:25 2008 | ||
2 | Received: from localhost | ||
3 | ([127.0.0.1] helo=dominion ident=koen) | ||
4 | by dominion.dominion.void with esmtp (Exim 4.69) | ||
5 | (envelope-from <linux-omap-owner@vger.kernel.org>) | ||
6 | id 1KwjFJ-0008Hg-0T | ||
7 | for koen@localhost; Sun, 02 Nov 2008 21:08:25 +0100 | ||
8 | Received: from xs.service.utwente.nl [130.89.5.250] | ||
9 | by dominion with POP3 (fetchmail-6.3.9-rc2) | ||
10 | for <koen@localhost> (single-drop); Sun, 02 Nov 2008 21:08:25 +0100 (CET) | ||
11 | Received: from mail.service.utwente.nl ([130.89.5.253]) by exchange.service.utwente.nl with Microsoft SMTPSVC(6.0.3790.3959); | ||
12 | Sun, 2 Nov 2008 20:57:16 +0100 | ||
13 | Received: from mx.utwente.nl ([130.89.2.13]) by mail.service.utwente.nl with Microsoft SMTPSVC(6.0.3790.3959); | ||
14 | Sun, 2 Nov 2008 20:57:16 +0100 | ||
15 | Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) | ||
16 | by mx.utwente.nl (8.12.10/SuSE Linux 0.7) with ESMTP id mA2JudEK010968 | ||
17 | for <k.kooi@student.utwente.nl>; Sun, 2 Nov 2008 20:56:40 +0100 | ||
18 | Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand | ||
19 | id S1752819AbYKBT4i (ORCPT <rfc822;k.kooi@student.utwente.nl>); | ||
20 | Sun, 2 Nov 2008 14:56:38 -0500 | ||
21 | Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752829AbYKBT4i | ||
22 | (ORCPT <rfc822;linux-omap-outgoing>); Sun, 2 Nov 2008 14:56:38 -0500 | ||
23 | Received: from fg-out-1718.google.com ([72.14.220.153]:32481 "EHLO | ||
24 | fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org | ||
25 | with ESMTP id S1752819AbYKBT4h (ORCPT | ||
26 | <rfc822;linux-omap@vger.kernel.org>); Sun, 2 Nov 2008 14:56:37 -0500 | ||
27 | Received: by fg-out-1718.google.com with SMTP id 19so1869080fgg.17 | ||
28 | for <linux-omap@vger.kernel.org>; Sun, 02 Nov 2008 11:56:33 -0800 (PST) | ||
29 | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; | ||
30 | d=gmail.com; s=gamma; | ||
31 | h=domainkey-signature:received:received:from:to:cc:subject:date | ||
32 | :message-id:x-mailer:in-reply-to:references; | ||
33 | bh=Ftvoq8kE3ciPRy7pNy5VLkNnZD8o0HYWIrO1LMS/lAY=; | ||
34 | b=HpEcngDUbAObGNJuQmBIG3SoNHesUL57GluZGlYO7kxFxfH6N8zeHjKuRSk86+mT5s | ||
35 | gMhyCC07wjVp75HnqCtKbOJzNw/8F4ZGbL2lY1LC99+zxHW1JBQv5c3ZaoCVqTw6TuH0 | ||
36 | bQ8Ew2BwHknT3wGA+QcGoMJJs5aw62AhPiyHY= | ||
37 | DomainKey-Signature: a=rsa-sha1; c=nofws; | ||
38 | d=gmail.com; s=gamma; | ||
39 | h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; | ||
40 | b=aio1APZhCIcYIrMY844QkdaQzKw0/yiuaVjqfv52fnft1kafGT2qAS3KfXAc61a9If | ||
41 | sXHbi2fr/r1a7YZJJVGqkJX0WmWTY0OqdhS1lmugP/dXEMHeqaArKATbvxrq9/svb1bV | ||
42 | Vzpkm6sOzLrr54uo+BcZNoxHWqb8W2UrRxuTk= | ||
43 | Received: by 10.103.131.18 with SMTP id i18mr6668205mun.126.1225655793072; | ||
44 | Sun, 02 Nov 2008 11:56:33 -0800 (PST) | ||
45 | Received: from localhost.localdomain ([78.59.134.74]) | ||
46 | by mx.google.com with ESMTPS id g1sm23199635muf.8.2008.11.02.11.56.31 | ||
47 | (version=TLSv1/SSLv3 cipher=RC4-MD5); | ||
48 | Sun, 02 Nov 2008 11:56:31 -0800 (PST) | ||
49 | From: Grazvydas Ignotas <notasas@gmail.com> | ||
50 | To: linux-omap@vger.kernel.org | ||
51 | Cc: Grazvydas Ignotas <notasas@gmail.com> | ||
52 | Subject: Re: omap3evm LCD red-tint workaround | ||
53 | Date: Sun, 2 Nov 2008 21:56:19 +0200 | ||
54 | Message-Id: <1225655779-18934-1-git-send-email-notasas@gmail.com> | ||
55 | X-Mailer: git-send-email 1.5.4.3 | ||
56 | In-Reply-To: <57322719-1A5A-45DC-9846-5C0A3B6EF346@student.utwente.nl> | ||
57 | References: <57322719-1A5A-45DC-9846-5C0A3B6EF346@student.utwente.nl> | ||
58 | Sender: linux-omap-owner@vger.kernel.org | ||
59 | Precedence: bulk | ||
60 | List-ID: <linux-omap.vger.kernel.org> | ||
61 | X-Mailing-List: linux-omap@vger.kernel.org | ||
62 | X-UTwente-MailScanner-Information: Scanned by MailScanner. Contact servicedesk@icts.utwente.nl for more information. | ||
63 | X-UTwente-MailScanner: Found to be clean | ||
64 | X-UTwente-MailScanner-From: linux-omap-owner@vger.kernel.org | ||
65 | X-Spam-Status: No | ||
66 | X-OriginalArrivalTime: 02 Nov 2008 19:57:16.0876 (UTC) FILETIME=[34FBA0C0:01C93D25] | ||
67 | |||
68 | > PS: TS is still unusable with the 16x16 pixel resolution | ||
69 | This is also the case for Pandora. The patch below fixes the problem, | ||
70 | but as I have no other boards to test this on, I haven't sent it. | ||
71 | See if it helps you. | ||
72 | |||
73 | |||
74 | From 91f3af26bbf751b846e6265d86387e81be7c1364 Mon Sep 17 00:00:00 2001 | ||
75 | From: Grazvydas Ignotas <notasas@gmail.com> | ||
76 | Date: Tue, 28 Oct 2008 22:01:42 +0200 | ||
77 | Subject: [PATCH] OMAP3: fix McSPI transfers | ||
78 | |||
79 | Currently on OMAP3 if both write and read is set up for a transfer, | ||
80 | the first byte returned on read is corrupted. Work around this by | ||
81 | disabling channel between reads and writes, instead of transfers. | ||
82 | --- | ||
83 | drivers/spi/omap2_mcspi.c | 7 ++++--- | ||
84 | 1 files changed, 4 insertions(+), 3 deletions(-) | ||
85 | |||
86 | diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c | ||
87 | index 454a271..4890b6c 100644 | ||
88 | --- a/drivers/spi/omap2_mcspi.c | ||
89 | +++ b/drivers/spi/omap2_mcspi.c | ||
90 | @@ -710,7 +710,6 @@ static void omap2_mcspi_work(struct work_struct *work) | ||
91 | spi = m->spi; | ||
92 | cs = spi->controller_state; | ||
93 | |||
94 | - omap2_mcspi_set_enable(spi, 1); | ||
95 | list_for_each_entry(t, &m->transfers, transfer_list) { | ||
96 | if (t->tx_buf == NULL && t->rx_buf == NULL && t->len) { | ||
97 | status = -EINVAL; | ||
98 | @@ -741,6 +740,8 @@ static void omap2_mcspi_work(struct work_struct *work) | ||
99 | if (t->len) { | ||
100 | unsigned count; | ||
101 | |||
102 | + omap2_mcspi_set_enable(spi, 1); | ||
103 | + | ||
104 | /* RX_ONLY mode needs dummy data in TX reg */ | ||
105 | if (t->tx_buf == NULL) | ||
106 | __raw_writel(0, cs->base | ||
107 | @@ -752,6 +753,8 @@ static void omap2_mcspi_work(struct work_struct *work) | ||
108 | count = omap2_mcspi_txrx_pio(spi, t); | ||
109 | m->actual_length += count; | ||
110 | |||
111 | + omap2_mcspi_set_enable(spi, 0); | ||
112 | + | ||
113 | if (count != t->len) { | ||
114 | status = -EIO; | ||
115 | break; | ||
116 | @@ -777,8 +780,6 @@ static void omap2_mcspi_work(struct work_struct *work) | ||
117 | if (cs_active) | ||
118 | omap2_mcspi_force_cs(spi, 0); | ||
119 | |||
120 | - omap2_mcspi_set_enable(spi, 0); | ||
121 | - | ||
122 | m->status = status; | ||
123 | m->complete(m->context); | ||
124 | |||
125 | -- | ||
126 | 1.5.4.3 | ||
127 | |||
128 | -- | ||
129 | To unsubscribe from this list: send the line "unsubscribe linux-omap" in | ||
130 | the body of a message to majordomo@vger.kernel.org | ||
131 | More majordomo info at http://vger.kernel.org/majordomo-info.html | ||
132 | |||