summaryrefslogtreecommitdiffstats
path: root/extras/recipes-kernel/linux/linux-omap/linus/0030-spi-m68knommu-Coldfire-QSPI-platform-support.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extras/recipes-kernel/linux/linux-omap/linus/0030-spi-m68knommu-Coldfire-QSPI-platform-support.patch')
-rw-r--r--extras/recipes-kernel/linux/linux-omap/linus/0030-spi-m68knommu-Coldfire-QSPI-platform-support.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/extras/recipes-kernel/linux/linux-omap/linus/0030-spi-m68knommu-Coldfire-QSPI-platform-support.patch b/extras/recipes-kernel/linux/linux-omap/linus/0030-spi-m68knommu-Coldfire-QSPI-platform-support.patch
new file mode 100644
index 00000000..c6dcff2c
--- /dev/null
+++ b/extras/recipes-kernel/linux/linux-omap/linus/0030-spi-m68knommu-Coldfire-QSPI-platform-support.patch
@@ -0,0 +1,33 @@
1From 806e90c4e5253095f9576113edc6fc78b2d5fec1 Mon Sep 17 00:00:00 2001
2From: Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com>
3Date: Wed, 29 Sep 2010 09:44:32 -0400
4Subject: [PATCH 30/65] spi/m68knommu: Coldfire QSPI platform support
5
6After grabbing a msg from the msgq, the mcfqspi_work function calls
7list_del_init on the mcfqspi->msgq which unintentionally deletes the rest
8of the list before it can be processed. If qspi call was made using
9spi_sync, this can result in a process hang.
10
11Signed-off-by: Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com>
12Acked-by: Steven King <sfking@fdwdc.com>
13Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
14---
15 drivers/spi/coldfire_qspi.c | 2 +-
16 1 files changed, 1 insertions(+), 1 deletions(-)
17
18diff --git a/drivers/spi/coldfire_qspi.c b/drivers/spi/coldfire_qspi.c
19index 052b3c7..8856bcc 100644
20--- a/drivers/spi/coldfire_qspi.c
21+++ b/drivers/spi/coldfire_qspi.c
22@@ -317,7 +317,7 @@ static void mcfqspi_work(struct work_struct *work)
23 msg = container_of(mcfqspi->msgq.next, struct spi_message,
24 queue);
25
26- list_del_init(&mcfqspi->msgq);
27+ list_del_init(&msg->queue);
28 spin_unlock_irqrestore(&mcfqspi->lock, flags);
29
30 spi = msg->spi;
31--
321.6.6.1
33