Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1927940rwi; Thu, 3 Nov 2022 10:35:13 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6tKAd8ow04RArdX8/gGcrwiCtCmVZtGz7hwEHNNGklHq8/qxu7TjZDDXX58WmAi/zT0hZ8 X-Received: by 2002:a17:907:a059:b0:7a5:587d:d315 with SMTP id gz25-20020a170907a05900b007a5587dd315mr30263950ejc.631.1667496913339; Thu, 03 Nov 2022 10:35:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667496913; cv=none; d=google.com; s=arc-20160816; b=PlaeUt+MPhhAgfvqsyBHO3rfDiFzLZa+uxSPIPtfVs6/2J2/yXDGlJ8BtXv1PWIXxC 2M3idYoPBYOetSbKL/SMWMRO9fZ9VXLHDcjd3DqNdMwic3Y5EIIyTGduuapWhrikMv5D J3bBpG0X3Zl7ci5MZAjpKd2wmtZNEF70ZsjQ9TAgqLlvITtH8fOR+yMCjuQ1PG/8m1LB FbRO2he5L+iz0fIdbpUOTD6t9sUNtTDRGkpQ6opxKxlA+DNb2Tppv+ruauYA6PnoTdFD Q4YRjsB1GlJFNLjgkV9ZfoPA8NwGJjQAaJOVSxx4BzYDMppNgwYwgMTx7hhFcj2Cy1BD OctA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=3f5GacN5YPhCRXjg4yLI+LCZMazjqcOzcx5xKMBxocE=; b=v31xkXo6DP7eaWh8HLqXj4BUb3BmTz17C6tz62rg02uG4e5cxMVzLHTajzmkD555BY QtpxjDLtUoRTL+HOv+JBbPXNsEPVaYZlMZ8EPSirEwUEU1rg1B93ZOoNt/pM7ja9QLUN UZnGX93d3thpfVXkrNdjzdmEZpVGwB0GWeDLkjaPvHWeE+LLsPTW4s1Up6jtsjcHT3yb B88bKvSvI2TuuLyfEw7cu4//RMannDOqHNkfb1NqgSH6NWv7eOig1SjQSq9QrG3Izd5h Huf4CF+kZnqRbbZaLtk3DTOrYibuqogokS9sotx2KPcLoYuzA8jlC19YE5vLTM3X8La6 4yzA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k22-20020a50ce56000000b0045fc914660csi1836395edj.200.2022.11.03.10.34.48; Thu, 03 Nov 2022 10:35:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231390AbiKCRZ7 (ORCPT + 97 others); Thu, 3 Nov 2022 13:25:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbiKCRZ5 (ORCPT ); Thu, 3 Nov 2022 13:25:57 -0400 X-Greylist: delayed 747 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 03 Nov 2022 10:25:56 PDT Received: from isilmar-4.linta.de (isilmar-4.linta.de [136.243.71.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30624101EE; Thu, 3 Nov 2022 10:25:56 -0700 (PDT) X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES X-isilmar-external: YES Received: from owl.dominikbrodowski.net (owl.brodo.linta [10.2.0.111]) by isilmar-4.linta.de (Postfix) with ESMTPSA id 5C1742013E3; Thu, 3 Nov 2022 17:25:53 +0000 (UTC) Received: by owl.dominikbrodowski.net (Postfix, from userid 1000) id 6880A8024B; Thu, 3 Nov 2022 18:25:45 +0100 (CET) Date: Thu, 3 Nov 2022 18:25:45 +0100 From: Dominik Brodowski To: Andy Shevchenko Cc: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Mika Westerberg , Michael Ellerman , Arnd Bergmann , Bjorn Helgaas , "Rafael J. Wysocki" , Juergen Gross , 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, 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: Re: [PATCH v2 4/4] pcmcia: Convert to use pci_bus_for_each_resource_p() Message-ID: References: <20221103164644.70554-1-andriy.shevchenko@linux.intel.com> <20221103164644.70554-5-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Am Thu, Nov 03, 2022 at 07:12:45PM +0200 schrieb Andy Shevchenko: > On Thu, Nov 03, 2022 at 06:03:24PM +0100, Dominik Brodowski wrote: > > Am Thu, Nov 03, 2022 at 06:46:44PM +0200 schrieb Andy Shevchenko: > > ... > > > > - > > > - for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) { > > > - res = s->cb_dev->bus->resource[i]; > > > -#else > > > - pci_bus_for_each_resource(s->cb_dev->bus, res, i) { > > > #endif > > > + > > > + pci_bus_for_each_resource_p(s->cb_dev->bus, res) { > > > if (!res) > > > continue; > > > > Doesn't this remove the proper iterator for X86? Even if that is the right > > thing to do, it needs an explict explanation. > > I dunno what was in 2010, but reading code now I have found no differences in > the logic on how resources are being iterated in these two pieces of code. > > But fine, I will add a line to a commit message about this change. > > Considering this is done, can you issue your conditional tag so I will > incorporate it in v3? Certainly, feel free to add Acked-by: Dominik Brodowski Thanks, Dominik