[glsdk/meta-ti-glsdk.git] / recipes-kernel / linux / linux-ti33x-psp-3.2 / 3.2.2 / 0108-bcma-invalidate-the-mapped-core-over-suspend-resume.patch
1 From 744b53e5115a140039ef4e7834bb84797b4db37e Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <zajec5@gmail.com>
3 Date: Fri, 13 Jan 2012 23:58:38 +0100
4 Subject: [PATCH 108/129] bcma: invalidate the mapped core over suspend/resume
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
9 commit 28e7d218da975f6ae1751e293aed938952c55c98 upstream.
11 This clears the currently mapped core when suspending, to force
12 re-mapping after resume. Without that we were touching default core
13 registers believing some other core is mapped. Such a behaviour
14 resulted in lockups on some machines.
16 Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
17 Signed-off-by: John W. Linville <linville@tuxdriver.com>
18 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
19 ---
20 drivers/bcma/host_pci.c | 3 +++
21 1 file changed, 3 insertions(+)
23 diff --git a/drivers/bcma/host_pci.c b/drivers/bcma/host_pci.c
24 index 990f5a8..48e06be 100644
25 --- a/drivers/bcma/host_pci.c
26 +++ b/drivers/bcma/host_pci.c
27 @@ -227,11 +227,14 @@ static void bcma_host_pci_remove(struct pci_dev *dev)
28 #ifdef CONFIG_PM
29 static int bcma_host_pci_suspend(struct pci_dev *dev, pm_message_t state)
30 {
31 + struct bcma_bus *bus = pci_get_drvdata(dev);
32 +
33 /* Host specific */
34 pci_save_state(dev);
35 pci_disable_device(dev);
36 pci_set_power_state(dev, pci_choose_state(dev, state));
38 + bus->mapped_core = NULL;
39 return 0;
40 }
42 --
43 1.7.9.5