Skip to contentSkip to conversation

new test

DISCUSSION Barto 1 participant 1 message Nov 6, 2014 2 messages not in the archive PCI

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): 27240C0AC20F114CBF8149A2696CBE4A01EB8625@SHSMSX101.ccr.corp.intel.com

Barto

author
#2 lore raw

Hello Liu Chuansheng,

I have good news, your patch based on /drivers/pci/quirks.c works very well,

I have no problems after a standby mode, my JMB363/368 SATA/IDE JMicron Pcie works without problems

Quoted 56 lines · Chuansheng

Thanks Barto.

Could you try below patch? I made the change in file quirks.c.

drivers/pci/quirks.c +0 -0

index 90acb32..b40485f 100644

--- a/drivers/pci/quirks.c

+++ b/drivers/pci/quirks.c

drivers/pci/quirks.c +1 -0
@@ -29,6 +29,21 @@
 
 #include "pci.h"
 
 /*
 
+ * For JMicron chips, we need to disable the async_suspend method,

otherwise

+ * they will hit the power-on issue when doing device resume, add one quick

+ * solution to disable the async_suspend method.

+ */

drivers/pci/quirks.c +9 -0
+static void pci_async_suspend_fixup(struct pci_dev *pdev)
 
+{
 
+        /* 
 
+         * disabling the async_suspend method for JMicron chips to
 
+         * avoid device resuming issue.
 
+         */
 
+        device_disable_async_suspend(&pdev->dev);
 
+}
 
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_JMICRON, PCI_ANY_ID,

pci_async_suspend_fixup);

drivers/pci/quirks.c +2 -0
+
 
+/*
 
  * Decoding should be disabled for a PCI device during BAR sizing to avoid
 
  * conflict. But doing so may cause problems on host bridge and perhaps

other

Quoted 7 lines

* key system devices. For devices that need to have mmio decoding
always-on,

drivers/pci/quirks.c +0 -0
index 90acb32..b40485f 100644
@@ -29,6 +29,21 @@

#include "pci.h"
/*
+ * For JMicron chips, we need to disable the async_suspend method, otherwise
+ * they will hit the power-on issue when doing device resume, add one quick
+ * solution to disable the async_suspend method.
+ */
+static void pci_async_suspend_fixup(struct pci_dev *pdev)
+{
+ /*

+         * disabling the async_suspend method for JMicron chips to
+         * avoid device resuming issue.
+         */

+ device_disable_async_suspend(&pdev->dev);
+}
+DECLARE_PCI_FIXUP_FINAL(PCI_VENDOR_ID_JMICRON, PCI_ANY_ID, pci_async_suspend_fixup); +
+/*
* Decoding should be disabled for a PCI device during BAR sizing to avoid
* conflict. But doing so may cause problems on host bridge and perhaps other
* key system devices. For devices that need to have mmio decoding always-on,