From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Subject: Re: [PATCH v8 7/7] pcmcia: Convert to use less arguments in pci_bus_for_each_resource() Date: Wed, 5 Apr 2023 11:30:18 +0300 Message-ID: References: <20230330162434.35055-1-andriy.shevchenko@linux.intel.com> <20230330162434.35055-8-andriy.shevchenko@linux.intel.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1680683434; x=1712219434; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=o2D+LfXhLk+QrH3a0th/mLBmSHhjZTr2yV97vm5EWfI=; b=FEU+acUl60xzaexBT4lEK/sOyrPml79xYWAAMKYJv6+bVdHv/HsJt1kt m58JUrDb29h11muh4ZzNEnHV74xZpQNqntEwQGiKuYCXgN/zIBZmKgR+Y JjFAOLUo0OxSsZqoTQZPsXpy2G+RdGT+jKJgmNmFvmKlim3Lwab9nFlO6 dFqUc6FUgyrYHaTqS0IFrcrPMTlWf5DtgQxCF+BFZUehd9gnL2SymL3KH fLP6GucbReryfzQfL4hulmNKm28fC60WC0FGkjXOjPIHDnowHbWLXyCl1 XispgM/9/Z26IZN/bEdNrRJFOPk2heJGydKDJGlOi9r+zg2BxhqWbtmmm A==; Content-Disposition: inline In-Reply-To: <20230330162434.35055-8-andriy.shevchenko@linux.intel.com> List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: =?iso-8859-1?Q?Micka=EBl_Sala=FCn?= , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Mika Westerberg , Michael Ellerman , Randy Dunlap , Arnd Bergmann , Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Niklas Schnelle , Bjorn Helgaas , "Rafael J. Wysocki" , Pali =?iso-8859-1?Q?Roh=E1r?= , "Maciej W. Rozycki" , 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, Cc: Miguel Ojeda , Richard Henderson , Ivan Kokshaysky , Matt Turner , Russell King , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , Thomas Bogendoerfer , Nicholas Piggin , Christophe Leroy , Anatolij Gustschin , Yoshinori Sato , Rich Felker , John Paul Adrian Glaubitz , "David S. Miller" , Bjorn Helgaas , Stefano Stabellini On Thu, Mar 30, 2023 at 07:24:34PM +0300, Andy Shevchenko wrote: ... > @@ -960,12 +960,9 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s) > */ > if (s->cb_dev->bus->number == 0) > return -EINVAL; > - > - 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(s->cb_dev->bus, res) { > if (!res) > continue; As pointed out in the reply to Bjorn's email this hunk needs to be revisited, since I wrote the documentation for the above call I have started understanding the deal behind this special treatment for X86 case. -- With Best Regards, Andy Shevchenko