From: Jiang Liu <jiang.liu@huawei.com>
To: Fengguang Wu <fengguang.wu@intel.com>
Cc: Bjorn Helgaas <bhelgaas@google.com>, LKML <linux-kernel@vger.kernel.org>
Subject: Re: Unable to mount NFSROOT: pcie change breaks e1000?
Date: Thu, 23 Aug 2012 09:31:32 +0800 [thread overview]
Message-ID: <503587F4.3090907@huawei.com> (raw)
In-Reply-To: <20120823004604.GA2882@localhost>
Hi Fengguang,
Could you please help to verify whether following patch
fixes the issue?
Thanks!
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index f6b491b..fac08f5 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -842,6 +842,9 @@ static int pci_save_pcie_state(struct pci_dev *dev)
struct pci_cap_saved_state *save_state;
u16 *cap;
+ if (!pci_is_pcie(dev))
+ return 0;
+
save_state = pci_find_saved_cap(dev, PCI_CAP_ID_EXP);
if (!save_state) {
dev_err(&dev->dev, "buffer not found in %s\n", __func__);
On 2012-8-23 8:46, Fengguang Wu wrote:
> buffer not found
next prev parent reply other threads:[~2012-08-23 1:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 0:46 Unable to mount NFSROOT: pcie change breaks e1000? Fengguang Wu
2012-08-23 1:31 ` Jiang Liu [this message]
2012-08-23 2:33 ` Fengguang Wu
2012-08-23 15:03 ` Jiang Liu
2012-08-23 16:12 ` Bjorn Helgaas
2012-08-24 14:42 ` Jiang Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503587F4.3090907@huawei.com \
--to=jiang.liu@huawei.com \
--cc=bhelgaas@google.com \
--cc=fengguang.wu@intel.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.