From patchwork Sat May 5 10:02:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "J.L. Burr" X-Patchwork-Id: 157030 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 5DADCB6FCA for ; Sat, 5 May 2012 20:05:09 +1000 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752945Ab2EEKFH (ORCPT ); Sat, 5 May 2012 06:05:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:57667 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752302Ab2EEKFH (ORCPT ); Sat, 5 May 2012 06:05:07 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SQbrM-00059o-Fc for linux-pci@vger.kernel.org; Sat, 05 May 2012 12:05:04 +0200 Received: from 139.99.16.28 ([139.99.16.28]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 May 2012 12:05:04 +0200 Received: from jlburr by 139.99.16.28 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 05 May 2012 12:05:04 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: linux-pci@vger.kernel.org From: "J.L. Burr" Subject: [PATCH] pciutils: correct VC status display Date: Sat, 05 May 2012 06:02:27 -0400 Lines: 19 Message-ID: <4FA4FAB3.9060904@cadence.com> Mime-Version: 1.0 X-Complaints-To: usenet@dough.gmane.org Cc: mj@ucw.cz X-Gmane-NNTP-Posting-Host: 139.99.16.28 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19 Sender: linux-pci-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pci@vger.kernel.org I think there is a bug displaying the virtual channel status bits "NegoPending" and "InProgress". The wrong offset is being used. Signed-off-by: John L. Burr --- -- 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-ecaps.c b/ls-ecaps.c index cd342aa..161c275 100644 --- a/ls-ecaps.c +++ b/ls-ecaps.c @@ -339,7 +339,7 @@ cap_vc(struct device *d, int where) } rcap = get_conf_long(d, pos); rctrl = get_conf_long(d, pos+4); - rstatus = get_conf_word(d, pos+8); + rstatus = get_conf_word(d, pos+10); pat_pos = BITS(rcap, 24, 8); printf("Caps:\tPATOffset=%02x MaxTimeSlots=%d RejSnoopTrans%c\n",