summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2012-02-10 15:32:32 +0100
committerDenys Dmytriyenko <denys@ti.com>2012-02-27 09:04:13 -0500
commitc4eefd753012467261cf221babd2e8639b81d3ca (patch)
tree0f6e09a6b51f410455330f046a8e03787d5a126e /recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch
parent14f31c3c5a19dde049355ced3edd121c31842460 (diff)
downloadmeta-ti-c4eefd753012467261cf221babd2e8639b81d3ca.tar.gz
linux-ti33x-psp 3.2: update to 3.2.5
Runtime tested on a beaglebone A3 Signed-off-by: Koen Kooi <koen@dominion.thruhere.net> Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Diffstat (limited to 'recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch')
-rw-r--r--recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch
new file mode 100644
index 00000000..4836cc1b
--- /dev/null
+++ b/recipes-kernel/linux/linux-ti33x-psp-3.2/3.2.3/0052-jsm-Fixed-EEH-recovery-error.patch
@@ -0,0 +1,53 @@
1From a4bb82f827dd715b666d2cdf9cae6643da638974 Mon Sep 17 00:00:00 2001
2From: Lucas Kannebley Tavares <lucaskt@linux.vnet.ibm.com>
3Date: Mon, 9 Jan 2012 10:58:06 -0200
4Subject: [PATCH 52/90] jsm: Fixed EEH recovery error
5
6commit 26aa38cafae0dbef3b2fe75ea487c83313c36d45 upstream.
7
8There was an error on the jsm driver that would cause it to be unable to
9recover after a second error is detected.
10
11At the first error, the device recovers properly:
12
13[72521.485691] EEH: Detected PCI bus error on device 0003:02:00.0
14[72521.485695] EEH: This PCI device has failed 1 times in the last hour:
15...
16[72532.035693] ttyn3 at MMIO 0x0 (irq = 49) is a jsm
17[72532.105689] jsm: Port 3 added
18
19However, at the second error, it cascades until EEH disables the device:
20
21[72631.229549] Call Trace:
22...
23[72641.725687] jsm: Port 3 added
24[72641.725695] EEH: Detected PCI bus error on device 0003:02:00.0
25[72641.725698] EEH: This PCI device has failed 3 times in the last hour:
26
27It was caused because the PCI state was not being saved after the first
28restore. Therefore, at the second recovery the PCI state would not be
29restored.
30
31Signed-off-by: Lucas Kannebley Tavares <lucaskt@linux.vnet.ibm.com>
32Signed-off-by: Breno Leitao <brenohl@br.ibm.com>
33Acked-by: Thadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
34Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35---
36 drivers/tty/serial/jsm/jsm_driver.c | 1 +
37 1 files changed, 1 insertions(+), 0 deletions(-)
38
39diff --git a/drivers/tty/serial/jsm/jsm_driver.c b/drivers/tty/serial/jsm/jsm_driver.c
40index 7c867a0..7545fe1 100644
41--- a/drivers/tty/serial/jsm/jsm_driver.c
42+++ b/drivers/tty/serial/jsm/jsm_driver.c
43@@ -251,6 +251,7 @@ static void jsm_io_resume(struct pci_dev *pdev)
44 struct jsm_board *brd = pci_get_drvdata(pdev);
45
46 pci_restore_state(pdev);
47+ pci_save_state(pdev);
48
49 jsm_uart_port_init(brd);
50 }
51--
521.7.7.4
53