[PATCH 1/2] pciehp: ignore undefined bit in link status register

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bit 10 in Link Status register used to be defined as Training Error in
PCI Express 1.0a specification. But it was removed by Training Error
ECN and currently defined as undefined. So pciehp must ignore the
value read from it.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@xxxxxxxxxxxxxx>

---
 drivers/pci/hotplug/pciehp_hpc.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: 20081217/drivers/pci/hotplug/pciehp_hpc.c
===================================================================
--- 20081217.orig/drivers/pci/hotplug/pciehp_hpc.c
+++ 20081217/drivers/pci/hotplug/pciehp_hpc.c
@@ -419,8 +419,7 @@ static int hpc_check_lnk_status(struct c
 	}
 
 	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;


--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux