From patchwork Mon Sep 9 23:14:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 2863421 X-Patchwork-Delegate: bhelgaas@google.com Return-Path: X-Original-To: patchwork-linux-pci@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id E3EFABF43F for ; Mon, 9 Sep 2013 23:14:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 12BFB20264 for ; Mon, 9 Sep 2013 23:14:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 430732024F for ; Mon, 9 Sep 2013 23:14:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755792Ab3IIXOY (ORCPT ); Mon, 9 Sep 2013 19:14:24 -0400 Received: from mail-ye0-f180.google.com ([209.85.213.180]:35238 "EHLO mail-ye0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755712Ab3IIXOY (ORCPT ); Mon, 9 Sep 2013 19:14:24 -0400 Received: by mail-ye0-f180.google.com with SMTP id m15so2207933yen.39 for ; Mon, 09 Sep 2013 16:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=MIVsR8gOUGpDqL7Uaaxc2Ml1m3iw0iDiwodid0k0mBk=; b=fr57fngKOVoB+h70KXUjZw/oofUXkqkofHjdPCQpt4WHzQgKMM3yDnc745bhRtDuXm mHbrcTICfRWeYPZk4yzwL2S8b0Yv1oQHYqKhOn2//baDBQ902LwbLjWOiumAp48BfLVJ hFfpEkCLjHedGbwY80tl1reJDsFzoeDD9d5qPZXtOhsPmzo4KDL6pHrxap9QR3/9Wtho vPecOfrRPZ/+6pOD4o6oAC+3BBM5ndVfA80S/eXWN9OrKUz7Fu9jSQQ+wxW8BcLHb0Ny klX/bdi71lglKXUkHP5KkMfzc5ZMtE6zBNVcghfC8w1pvHeHGxb00+tjQdSbFKG7/CHH rJMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=MIVsR8gOUGpDqL7Uaaxc2Ml1m3iw0iDiwodid0k0mBk=; b=NBrLyJosgCnzWAyWT/qCeS2459xcFRUVk9L/F2ZgwjZql94wmoqvpSTlDQwINnjQqs i+R43dC6P2BYuZO4+y8PswxJYOqydnWr/j6FW6jIKMYr+EWcTDQahpXxpftJpoJsefVS ZXA97JAgLMcRfIfvO0JBjIw5CtUVhRcA09Fo61fGJnV99FEm0JdVjDAV1CxaBrpzT48Q tSbzr+68Cigx0tEoLzqVakuUNLXr196+07kHmxT7Qvablq2a3y9xBQ50O4jVeiLUPQ5u gh5cA6ZapEwiFl99zH1iswFOhaYad84qStRFu6Mu0MROA7tq94NEJqLSJN32hhU+i28M Gjfw== X-Gm-Message-State: ALoCoQkj3OENDG1Qb62++Q8eS8odMMg9EATz/ElNfod2/jBY0HffwuMDCctwIBr9yrI2MEzUsubjTrNN6R0WRny5O95W51XqohrYajIR+o7UWVumu6Hy6Xp7GRXUPFf4lF2u8I1rL6nfmEGu7nLyRadGX5UAAtM/JlXjpp9wrCzMLK2T08lQWpUp0vAdRGnsZrDzGHEYTRZT9NiEt7y9JkZXB5UM8rWx7A== X-Received: by 10.236.58.202 with SMTP id q50mr18902005yhc.38.1378768463559; Mon, 09 Sep 2013 16:14:23 -0700 (PDT) Received: from localhost ([172.16.51.73]) by mx.google.com with ESMTPSA id m26sm20739199yho.0.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 09 Sep 2013 16:14:23 -0700 (PDT) Subject: [PATCH 6/7] lspci: Drop PCIe LnkCtl "Retrain Link" decoding To: Martin Mares From: Bjorn Helgaas Cc: linux-pci@vger.kernel.org Date: Mon, 09 Sep 2013 17:14:21 -0600 Message-ID: <20130909231421.30095.57889.stgit@bhelgaas-glaptop> In-Reply-To: <20130909231345.30095.61638.stgit@bhelgaas-glaptop> References: <20130909231345.30095.61638.stgit@bhelgaas-glaptop> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Per PCIe spec r3.0, Table 7-16, the Retrain Link bit is writable but always returns 0 when read, so decoding it gives no useful information. Signed-off-by: Bjorn Helgaas --- ls-caps.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/ls-caps.c b/ls-caps.c index 3b554fe..f192510 100644 --- a/ls-caps.c +++ b/ls-caps.c @@ -776,9 +776,8 @@ static void cap_express_link(struct device *d, int where, int type) if ((type == PCI_EXP_TYPE_ROOT_PORT) || (type == PCI_EXP_TYPE_ENDPOINT) || (type == PCI_EXP_TYPE_LEG_END) || (type == PCI_EXP_TYPE_PCI_BRIDGE)) printf(" RCB %d bytes", w & PCI_EXP_LNKCTL_RCB ? 128 : 64); - printf(" Disabled%c Retrain%c CommClk%c\n\t\t\tExtSynch%c ClockPM%c AutWidDis%c BWInt%c AutBWInt%c\n", + printf(" Disabled%c CommClk%c\n\t\t\tExtSynch%c ClockPM%c AutWidDis%c BWInt%c AutBWInt%c\n", FLAG(w, PCI_EXP_LNKCTL_DISABLE), - FLAG(w, PCI_EXP_LNKCTL_RETRAIN), FLAG(w, PCI_EXP_LNKCTL_CLOCK), FLAG(w, PCI_EXP_LNKCTL_XSYNCH), FLAG(w, PCI_EXP_LNKCTL_CLOCKPM),