Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4129089yba; Mon, 29 Apr 2019 14:15:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqx0aGHszAOqzR/w/P9pc5PQx8NTvOtwl793WJCtrKBkTi/UVgfyeAYi9PpJGArcfBpAuPG0 X-Received: by 2002:a17:902:2a03:: with SMTP id i3mr67186430plb.229.1556572557296; Mon, 29 Apr 2019 14:15:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556572557; cv=none; d=google.com; s=arc-20160816; b=UlMfSEcU3vVERv5IeBWS8KLfIC7Aihrt8cYScbi3TP/oyoUXgK6cD2Gb6u3Vl8QxLQ 0E9e4NzVsuYwecECHW7FNpaVMNbEW8vdko6BaBausxu27deeaI4iiVnSAK56f03coFDu kOriiHwe5A7M4q/nZsk8qHDc+w6ilGK3S5WagUo5EXvVijwuBWX6ZIAcaxyvQaU3hc5V 5NYe20bsLc9UfduPwiW25mqE7qK5dEdx9Kk6mUbiLcFPFvR0hU2OGIWY31wcyr+m9TWP t9UI9T0IswSSA/WkN8SGJ9xYDXmfhLMwdmlRTt4o95Ts1u/2tv7vnfM2e+DIZecVe84H deqQ== 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:dkim-signature; bh=IsdDoi0FLCKa26gcsMTXZFew3yTznNTLsrJPRwvnVuU=; b=IqlFQpls2V46adlryQBqp3nJuyUd+CDwzBlF1zyguEIPBJ6bKRUbmjiO9Yqxr8fwKa WV19/I6drUB4DqWEzGHcItqIf2yzM+SK5gNlCh8PgpQYQCFZpKbdg+bwAkJXUzZWRnTW /QM2p1o2CYdzphZjMxx1uqYSeweFfMrrZaSTBjueg5s/kFmWe/fllVLZQCIOylm0amn6 l4F+mBtVgZkEIWfpw2cbjwpMDQB9QN2ezq7kxZhZOcy7Cu8n5km+25my4dPUJs7hN4+Q y87niB8wX9PbLcA01nzUKQo/rzCFczYh1DmE9znXDS/o0SOxA5jxxOnw9HduSisZKCOv 3nGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=YxHibykQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p2si18534995pls.31.2019.04.29.14.15.41; Mon, 29 Apr 2019 14:15:57 -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; dkim=pass header.i=@kernel.org header.s=default header.b=YxHibykQ; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729413AbfD2VOt (ORCPT + 99 others); Mon, 29 Apr 2019 17:14:49 -0400 Received: from mail.kernel.org ([198.145.29.99]:45040 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726154AbfD2VOs (ORCPT ); Mon, 29 Apr 2019 17:14:48 -0400 Received: from localhost (odyssey.drury.edu [64.22.249.253]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 95338215EA; Mon, 29 Apr 2019 21:14:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556572487; bh=XX0aTJglLKQg7dsZbY4eNn1vqzsBT3b0Sj+xLrzx0yk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YxHibykQtphUqTaLCrPFMVUnoPuwdK1iYO2VrtH44UQZDBpPNEIgM+EQM+ho0ajOH U7bQco5v19ubB1D43u2lfNBs8KvFl6/Tbwn+o5UIMte+7mdc6Euc/IXTI8nadeZc+Z 9qxqwwsQIbuhid6oF/FqEvGGNc8TC6PpId9D37hU= Date: Mon, 29 Apr 2019 16:14:46 -0500 From: Bjorn Helgaas To: Heiner Kallweit Cc: Benjamin Herrenschmidt , Michael Ellerman , Oded Gabbay , Alex Deucher , Christian =?iso-8859-1?Q?K=F6nig?= , "David (ChunMing) Zhou" , David Airlie , Daniel Vetter , Joerg Roedel , David Woodhouse , Realtek linux nic maintainers , "David S. Miller" , Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , Maxime Coquelin , Benson Leung , Enric Balletbo i Serra , Stephen Rothwell , Paul Mackerras , open list , "open list:AMD KFD" , "open list:RADEON and AMDGPU DRM DRIVERS" , "open list:AMD IOMMU (AMD-VI)" , "open list:8169 10/100/1000 GIGABIT ETHERNET DRIVER" , "moderated list:ARM/STM32 ARCHITECTURE" , "moderated list:ARM/STM32 ARCHITECTURE" , "open list:PCI SUBSYSTEM" Subject: Re: [PATCH v2 0/9] PCI: add help pci_dev_id Message-ID: <20190429211446.GA145057@google.com> References: <2e1f9a57-6d08-d017-24da-3e6b97fa2449@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2e1f9a57-6d08-d017-24da-3e6b97fa2449@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 24, 2019 at 09:10:21PM +0200, Heiner Kallweit wrote: > In several places in the kernel we find PCI_DEVID used like this: > PCI_DEVID(dev->bus->number, dev->devfn) Therefore create a helper > for it. > > v2: > - apply the change to all affected places in the kernel > > Heiner Kallweit (9): > PCI: add helper pci_dev_id > PCI: use helper pci_dev_id > r8169: use new helper pci_dev_id > powerpc/powernv/npu: use helper pci_dev_id > drm/amdkfd: use helper pci_dev_id > iommu/amd: use helper pci_dev_id > iommu/vt-d: use helper pci_dev_id > stmmac: pci: use helper pci_dev_id > platform/chrome: chromeos_laptop: use helper pci_dev_id > > arch/powerpc/platforms/powernv/npu-dma.c | 14 ++++++-------- > drivers/gpu/drm/amd/amdkfd/kfd_topology.c | 3 +-- > drivers/iommu/amd_iommu.c | 2 +- > drivers/iommu/intel-iommu.c | 2 +- > drivers/iommu/intel_irq_remapping.c | 2 +- > drivers/net/ethernet/realtek/r8169.c | 3 +-- > drivers/net/ethernet/stmicro/stmmac/stmmac_pci.c | 2 +- > drivers/pci/msi.c | 6 +++--- > drivers/pci/search.c | 10 +++------- > drivers/platform/chrome/chromeos_laptop.c | 2 +- > include/linux/pci.h | 5 +++++ > 11 files changed, 24 insertions(+), 27 deletions(-) Applied with acks/reviewed-by from Benson, Joerg, Christian, Alexey, and David to pci/misc for v5.2, thanks!