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 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C2AEDC4332F for ; Mon, 14 Nov 2022 18:59:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=6LqiTumhSkUxDduynsxpemgaz7x8ioEPs8jpcK1ZpUo=; b=sJ6N13/QBdtV9k oXTzwdJsSjP6tcyf34ZXLUqwulfHajKxfY+7p96INdp7AJ9sdzysEpv7EbV3qXlXsPy4rDKyFjo1l stuxWO0TaN4Pjov8uVM3HDzF6qh9Xs2aDFBchgw4NrmUe3ipyUWv+7V+qxNogS5fwcO02GLkX5qM1 WImohZnxWQfU04Z0kNXT2lhvprBxsToICKbZHEOfy5SR5jXx85mBT0+dfle3w9VCp1uuBYYlvsZ9b pjr/TUKhxO0gU2aWmJx+Gr10pEsvGLc6KnGWeAxEOt9BtHy6lBGT6jLPOXywTu0YjKeUZ6lOZJiNe g7gyuNBZfIgChMJTkPUA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ouefG-003y1h-5E; Mon, 14 Nov 2022 18:58:38 +0000 Received: from mga18.intel.com ([134.134.136.126]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1oueeq-003xrt-74 for linux-arm-kernel@lists.infradead.org; Mon, 14 Nov 2022 18:58:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1668452292; x=1699988292; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=x6ggnXnghcO12tbT4wtQfhiqCsVpusNaj/2IGyQVVxI=; b=Nj4ey35bN/JFLOu3CWniUTWRrIy0sk8JnpBsHR2mjOEuxvBcwiKFoqbP LEMOD7jEI7NfI9UXf2caJKyPMK4uOLToP6t6fCtiMiaVyn7DsD6zv0HhI sCnhTjyNYlwgHhpAmKv9YFvmLg5oDtY2UWXxYOcCNnQ6N9dXXmM4ZVYM7 GIi6CkFltave7BopZhBkhOG426abGS7O8z01cxGoRJ9Z8VV3X8LEJU1OS QuQg0IUr687oLaZ8A8KdpK4OR/UmcIf+yWhFN4VOcNr3FFrTg0fKXvhJN QebDVxCKYjfp7N0arMUOYWvchee0+xfGxPW2Ez+KLgoR++E6KQ7C4dhkI Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="295416001" X-IronPort-AV: E=Sophos;i="5.96,164,1665471600"; d="scan'208";a="295416001" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Nov 2022 10:58:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10531"; a="638607285" X-IronPort-AV: E=Sophos;i="5.96,164,1665471600"; d="scan'208";a="638607285" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga002.jf.intel.com with ESMTP; 14 Nov 2022 10:58:00 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id BAA212F3; Mon, 14 Nov 2022 20:58:24 +0200 (EET) From: Andy Shevchenko To: =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= , Mika Westerberg , Andy Shevchenko , Michael Ellerman , Arnd Bergmann , Bjorn Helgaas , "Rafael J. Wysocki" , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Juergen Gross , Dominik Brodowski , linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mips@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-pci@vger.kernel.org, xen-devel@lists.xenproject.org Cc: Miguel Ojeda , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Thomas Bogendoerfer , Nicholas Piggin , Christophe Leroy , "David S. Miller" , Bjorn Helgaas , Stefano Stabellini , Oleksandr Tyshchenko Subject: [PATCH v3 0/4] PCI: Add pci_dev_for_each_resource() helper and Date: Mon, 14 Nov 2022 20:58:18 +0200 Message-Id: <20221114185822.65038-1-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221114_105812_356858_C43F15D6 X-CRM114-Status: GOOD ( 13.86 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Provide two new helper macros to iterate over PCI device resources and convert users. Looking at it, refactor existing pci_bus_for_each_resource() and convert users accordingly. This applies on top of this patch Mika sent out earlier: https://lore.kernel.org/r/20221114115953.40236-1-mika.westerberg@linux.intel.com Changelog v3: - rebased on top of v2 by Mika, see above - added tag to pcmcia patch (Dominik) Changelog v2: - refactor to have two macros - refactor existing pci_bus_for_each_resource() in the same way and convert users Andy Shevchenko (3): PCI: Split pci_bus_for_each_resource_p() out of pci_bus_for_each_resource() EISA: Convert to use pci_bus_for_each_resource_p() pcmcia: Convert to use pci_bus_for_each_resource_p() Mika Westerberg (1): PCI: Introduce pci_dev_for_each_resource() .clang-format | 3 +++ arch/alpha/kernel/pci.c | 5 ++--- arch/arm/kernel/bios32.c | 16 ++++++------- arch/mips/pci/pci-legacy.c | 3 +-- arch/powerpc/kernel/pci-common.c | 5 ++--- arch/sparc/kernel/leon_pci.c | 5 ++--- arch/sparc/kernel/pci.c | 10 ++++----- arch/sparc/kernel/pcic.c | 5 ++--- drivers/eisa/pci_eisa.c | 4 ++-- drivers/pci/bus.c | 7 +++--- drivers/pci/hotplug/shpchp_sysfs.c | 8 +++---- drivers/pci/pci.c | 5 ++--- drivers/pci/probe.c | 2 +- drivers/pci/remove.c | 5 ++--- drivers/pci/setup-bus.c | 36 ++++++++++++------------------ drivers/pci/setup-res.c | 4 +--- drivers/pci/xen-pcifront.c | 4 +--- drivers/pcmcia/rsrc_nonstatic.c | 9 +++----- drivers/pcmcia/yenta_socket.c | 3 +-- include/linux/pci.h | 25 +++++++++++++++++---- 20 files changed, 78 insertions(+), 86 deletions(-) -- 2.35.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel