* Re: new test
[not found] ` <27240C0AC20F114CBF8149A2696CBE4A01EB8625@SHSMSX101.ccr.corp.intel.com>
@ 2014-11-06 22:40 ` Barto
0 siblings, 0 replies; only message in thread
From: Barto @ 2014-11-06 22:40 UTC (permalink / raw)
To: Liu, Chuansheng; +Cc: aaron.lu, tj, rjw, linux-pci, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1459 bytes --]
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
Le 06/11/2014 15:33, Liu, Chuansheng a écrit :
> Thanks Barto.
>
> Could you try below patch? I made the change in file quirks.c.
>
>
> diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
>
> index 90acb32..b40485f 100644
>
> --- a/drivers/pci/quirks.c
>
> +++ b/drivers/pci/quirks.c
>
> @@ -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,
>
>
>
>
>
[-- Attachment #2: jmicron2.patch --]
[-- Type: text/x-patch, Size: 967 bytes --]
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index 90acb32..b40485f 100644
--- a/drivers/pci/quirks.c
+++ b/drivers/pci/quirks.c
@@ -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,
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-11-06 22:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <545B7352.2040408@laposte.net>
[not found] ` <27240C0AC20F114CBF8149A2696CBE4A01EB8625@SHSMSX101.ccr.corp.intel.com>
2014-11-06 22:40 ` new test Barto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).