From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_PASS,USER_AGENT_MUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A557EC43219 for ; Mon, 29 Apr 2019 21:14:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 6D0BF21655 for ; Mon, 29 Apr 2019 21:14:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1556572494; bh=XX0aTJglLKQg7dsZbY4eNn1vqzsBT3b0Sj+xLrzx0yk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=P9ylEXHfv/FfPRkM1mEwGf+bc2ovcWmCyKX9cr7sI1lwnj11KU4MSoZERt4Hz8/Xo lSYPVUk8W3IKGCu1M6JZDZl0Mpt+MH7/bnimckblR9XYpU3k+abHrpgFKeYLFE5NR6 cfvo3Id3vD1aeqO5yDtmLHyrinvQ9QpZT1MrqEiM= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729393AbfD2VOt (ORCPT ); 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: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@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!