summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>2008-12-19 09:18:10 +0300
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-01-07 22:13:21 +0300
commit67f6533802fd2cc6f5b3c6355ef72bcf636d7fda (patch)
tree9fac68e4e3b4f291e92f4f26c4912a94b7a4f358
parent46bbdfa44cfc0d352148a0dc33ba9f6db02ccdf0 (diff)
downloadlinux-67f6533802fd2cc6f5b3c6355ef72bcf636d7fda.tar.xz
PCI: pciehp: ignore undefined bit in link status register
Bit 10 in Link Status register used to be defined as Training Error in the PCI Express 1.0a specification. But it was removed by Training Error ECN and is no longer defined. So pciehp must ignore the value read from it. Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
-rw-r--r--drivers/pci/hotplug/pciehp_hpc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/pciehp_hpc.c b/drivers/pci/hotplug/pciehp_hpc.c
index b643ca13e4f1..22b88cb17a07 100644
--- a/drivers/pci/hotplug/pciehp_hpc.c
+++ b/drivers/pci/hotplug/pciehp_hpc.c
@@ -419,8 +419,7 @@ static int hpc_check_lnk_status(struct controller *ctrl)
}
ctrl_dbg(ctrl, "%s: lnk_status = %x\n", __func__, lnk_status);
- if ( (lnk_status & LNK_TRN) || (lnk_status & LNK_TRN_ERR) ||
- !(lnk_status & NEG_LINK_WD)) {
+ if ((lnk_status & LNK_TRN) || !(lnk_status & NEG_LINK_WD)) {
ctrl_err(ctrl, "Link Training Error occurs \n");
retval = -1;
return retval;