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 7F0A0D24462 for ; Fri, 11 Oct 2024 00:01:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To: Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Subject:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References:List-Owner; bh=cJmK1fnicawhSMHxajAFIqCSr7v1h4IcBPNe5mUyIUk=; b=bnrRBhFGbzO44p3HA4NsQAdi0/ YcngN68zq2anqneh19fL4IYcOzrI1r1AOG4hYF0gabtBozJFMz0BHStaLmLa6U7L4BlOXWaklPUds l3QiNCi+z0EViB6ghVbaOQ2pguV4ISqIqWuCKz5sOvU3MZnx27QkSLqjL5Zx0I52fjQvop1OYCSI4 utjGLK6jSEh7UVH//p3rHBpYG0x+EiF38m4/Cd+xwVnmOMEQGXK9asLZ6okaqCPnO+q2zv8PD4U7c HuYhlqfD9XxD955/NiEHR5QMFcIPAmBbenS+vaivnSj8BJCQ7fCKtJPrz+lqHv1WMkXoWx0rcHYNG tTntm+iQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1sz364-0000000EiLT-3SLx; Fri, 11 Oct 2024 00:01:32 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sz1xR-0000000EaXN-2pz1 for linux-arm-kernel@bombadil.infradead.org; Thu, 10 Oct 2024 22:48:33 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Transfer-Encoding: Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description:References; bh=cJmK1fnicawhSMHxajAFIqCSr7v1h4IcBPNe5mUyIUk=; b=HjMVD1uwTbLsAl55s9dGpsvCY5 2Z/P/GcWGTD8weidyoBaitg0cTj9ju1Vlx790NZWRbeMxqgQUFTgspBO4hak4dVMAGyqX0b6yS9A1 HHv+9yXuMO9FmqIOPMdQbyojxKCyOXfbvJvpLtySjUEyoG9KszoJVaBNkhj5Dw45Uj5Q0x01GukUZ L4dd7O4LqSjCzH9Q+o0zWqrErZnnJEJAv11oElbUaQ6dJ4vQjMmphpKDpzViLKB+EGN6CSN0KMSyJ YjSkOk1pXr7JfTysZ4YJw+Cn04pBagAO3KxT9ZNihyQHt1Se+2QJWwzUblUmIRfLT7jBZ31Qkhrei kwvfj+PQ==; Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by desiato.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1sz1xN-00000005ibv-2Dmg for linux-arm-kernel@lists.infradead.org; Thu, 10 Oct 2024 22:48:31 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id 49D0F5C5E75; Thu, 10 Oct 2024 22:48:23 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EC649C4CEC5; Thu, 10 Oct 2024 22:48:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1728600507; bh=bG9/yrxcCJCIauROPTKkMfP5DIudZfWyGZnx/vJA8RU=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=MoprVJja7xKkmmYrg87yFJPuhWKPlk4RFCFcAtMntQMdG9qIXESLHRkdE1FZxJ0MY GrFdfN7MSkB+dhezzVcMVK59tDfwYGW/8pfcQNzHBNtXlVd7ptf38XFXx8d716xJor pW0smc0yX2CLGm1BNGrtoZu2wib1T505GheJZldchaVyatcEa0IWhU0b5ge8bDdPH0 Z+1DSDNYEcBEiXLN8cgt5xI9An6DbVYUdPLTg9jZOwgSbXss0VLs7EMfR7Rp1RN9qL WnykX8alWZMY9oxvb5tA9LzRVazovdXiWu928chWZiZ0dPs+HjGzMcJxKKEnfJfObv f12Ic6qv2qGNw== Date: Thu, 10 Oct 2024 17:48:25 -0500 From: Bjorn Helgaas To: Ilpo =?utf-8?B?SsOkcnZpbmVu?= Cc: linux-pci@vger.kernel.org, Bjorn Helgaas , Jonathan Cameron , Philipp Stanner , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-kernel@vger.kernel.org, Jonathan Hunter , linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, Robert Richter , Thierry Reding Subject: Re: [PATCH v2 0/4] PCI: Resource helper improvements Message-ID: <20241010224825.GA583421@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240614100606.15830-1-ilpo.jarvinen@linux.intel.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241010_234829_922369_C1CB7C32 X-CRM114-Status: GOOD ( 13.26 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Fri, Jun 14, 2024 at 01:06:02PM +0300, Ilpo Järvinen wrote: > This series introduces resource_set_{range,size}() helpers to replace > often repeated code fragments to set resource start and end addresses. > The last two patches clean up nearby code. > > For now, this series only converts PCI subsystem. There are plenty of > resource start/end setting code elsewhere in the kernel but those can > be converted once the helpers reach Linus' tree. > > -- > v2: > - Improved commit message > - Added patch to introduce ALIGN_DOWN_IF_NONZERO() > > Ilpo Järvinen (4): > resource: Add resource set range and size helpers > PCI: Use resource_set_{range,size}() helpers > PCI: Use align and resource helpers, and SZ_* in quirk_s3_64M() > PCI: Introduce ALIGN_DOWN_IF_NONZERO() helper locally > > drivers/pci/controller/pci-tegra.c | 2 +- > drivers/pci/controller/pci-thunder-pem.c | 4 +-- > drivers/pci/ecam.c | 2 +- > drivers/pci/iov.c | 6 ++-- > drivers/pci/pci.c | 3 +- > drivers/pci/quirks.c | 23 +++++++--------- > drivers/pci/setup-bus.c | 35 ++++++++++-------------- > drivers/pci/setup-res.c | 7 ++--- > include/linux/ioport.h | 32 ++++++++++++++++++++++ > 9 files changed, 68 insertions(+), 46 deletions(-) Sorry this slipped through the cracks. Applied to pci/resource for v6.13, thanks!