Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1974709imm; Sun, 12 Aug 2018 04:05:57 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxDSY0slXiSReJHa+G88HLhSYw5Dis3c0LDZvkaaEbct0GQEcPH3OYHrs4DAILnhIz9+w22 X-Received: by 2002:a62:cd82:: with SMTP id o124-v6mr14489361pfg.206.1534071956987; Sun, 12 Aug 2018 04:05:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534071956; cv=none; d=google.com; s=arc-20160816; b=eB8BnzXzxLOKH0oLM8UjJfqt4YFrIBtG2GLFOkaOP70Dz1Uf2wQ5LEAajL66p8coNv QZLuiMjkHLBBeip+lXuT7hQbiIEfdzeA2elX3CfLQXSI2T53hZ1Y+rWgkgsq6iwfbowF FPabTz6PjSRPNJeSRCJtxT7HADioUr8MF+zbCmVV5Zsrvl7gU0EN0Um/Sakya1clpzck 8HKZF23g5Z4JbrvPVSnCMg4wWA2yGo3wbOvh/nKt03jVWUmUwinGRnlfeaQyRDmIpdGR Z7eQAlgHm30FFCSKPsOPaXFjSIumJLd+IfJ0jjdUqQ5cyALwoG1I32UG0k0VGmJya209 7jwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=dE1JnfiQea1A/tdVcOQMxPtolZDMKy8wbiapW/GeOBM=; b=L02jWrAD7crElQNGpCmZJPnslOjU9cVuMBCpgPWaTGPWb4isYPqJzdvenflFLZVtib SgovM0QTsGAoQMOIaQ2vuqTaZ3j1EYi7RHwsL30sCqgkQlN1wql/ZiULoISYdGqIY1TH McuLggSRrTCG6wNgPVBAIhH5MgdHAASiLv6nVal4WFFDqNxcABfvneNa++ypF3gZHWMh JoH8ypFHk832p1kbih06kNHZXIBjE822AQlULg+e3x4B4g8MhTKhm2uZf2PJAxL8/ZKf QtTUyeT8qqT4HFEdZSxnWVbgWsNrlnfKs9SySJHHFg9rHY6h7ucHcgEq0vbVb+qarI7H gO+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q9-v6si13089549pgc.685.2018.08.12.04.05.41; Sun, 12 Aug 2018 04:05:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728089AbeHLN3Z (ORCPT + 99 others); Sun, 12 Aug 2018 09:29:25 -0400 Received: from nikam.ms.mff.cuni.cz ([195.113.20.16]:49724 "EHLO nikam.ms.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728065AbeHLN3Z (ORCPT ); Sun, 12 Aug 2018 09:29:25 -0400 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 2587) id 4CF5F540ACF; Sun, 12 Aug 2018 12:51:46 +0200 (CEST) Date: Sun, 12 Aug 2018 12:51:46 +0200 From: Martin Mares To: Matthew Wilcox Cc: Logan Gunthorpe , linux-kernel@vger.kernel.org, linux-pci@vger.kernel.org, linux-doc@vger.kernel.org, Stephen Bates , Christoph Hellwig , Bjorn Helgaas , Jonathan Corbet , Ingo Molnar , Thomas Gleixner , "Paul E. McKenney" , Marc Zyngier , Kai-Heng Feng , Frederic Weisbecker , Dan Williams , =?utf-8?B?SsOpcsO0bWU=?= Glisse , Benjamin Herrenschmidt , Alex Williamson , Christian =?utf-8?B?S8O2bmln?= Subject: Re: lspci: Display path to device Message-ID: References: <20180717170204.30470-1-logang@deltatee.com> <20180717203900.GA1771@bombadil.infradead.org> <20180810145655.GA16533@bombadil.infradead.org> <20180812103133.GB2984@bombadil.infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180812103133.GB2984@bombadil.infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello! > I agree it's more intuitive, but it's not the format that Logan's code > is expecting, so it's not as useful for my purposes. How about this? > > $ ./lspci -PF tests/fujitsu-p8010.lspci -s 1d:00.0 > 00:1e.0/03.0/00.0 Network controller: 3Com Corporation 3com 3CRWE154G72 [Office Connect Wireless LAN Adapter] (rev 01) > $ ./lspci -PPF tests/fujitsu-p8010.lspci -s 1d:00.0 > 00:1e.0/1c:03.0/1d:00.0 Network controller: 3Com Corporation 3com 3CRWE154G72 [Office Connect Wireless LAN Adapter] (rev 01) Yes, this looks fine. It is merged to master now and I will push a new release out of the door soon. Thanks! Martin