diff options
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.patch | 33 |
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 @@ | |||
1 | From 806e90c4e5253095f9576113edc6fc78b2d5fec1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com> | ||
3 | Date: Wed, 29 Sep 2010 09:44:32 -0400 | ||
4 | Subject: [PATCH 30/65] spi/m68knommu: Coldfire QSPI platform support | ||
5 | |||
6 | After grabbing a msg from the msgq, the mcfqspi_work function calls | ||
7 | list_del_init on the mcfqspi->msgq which unintentionally deletes the rest | ||
8 | of the list before it can be processed. If qspi call was made using | ||
9 | spi_sync, this can result in a process hang. | ||
10 | |||
11 | Signed-off-by: Jate Sujjavanich <jsujjavanich@syntech-fuelmaster.com> | ||
12 | Acked-by: Steven King <sfking@fdwdc.com> | ||
13 | Signed-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 | |||
18 | diff --git a/drivers/spi/coldfire_qspi.c b/drivers/spi/coldfire_qspi.c | ||
19 | index 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 | -- | ||
32 | 1.6.6.1 | ||
33 | |||