Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp376008pxb; Tue, 3 Nov 2020 01:47:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJwYAJpgUvFDbgGneMEHGe+TCAnxG32+8S7CQHaFpQz0kVp+wHZUfSxcLOwNnlclb79YSCk/ X-Received: by 2002:a17:906:14d:: with SMTP id 13mr18960714ejh.516.1604396835043; Tue, 03 Nov 2020 01:47:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604396835; cv=none; d=google.com; s=arc-20160816; b=EE1VhcBZDMDI5YGFBnknEzEqcMN5CeKnLK1Xjipa5h1caDm+YSon02IIPJcnFCLaF+ 4UqCVwBb7pCemHpTvim5+mq5aJp1gY6590krkoGlRPwvnqtNvwVC26cIfLgbVryDxJ+M KTCYwrqxbQz9NgKpU/Y19itfVVKeU7dgsfJtSw2+mm/Sy+rQ1dkn263pw/8852GKtjzR h8PY22iH4dG22dPRh4QPgbbDziRDAgEMqgzUcl/BTWgrYWHJzMOznkDIW4/1tBz1m9p+ ZoKarcGXjPM/kYoa2/+guj3yEuIrKTgqVJW+4cMoykPBaDL4Hx2bGAxIiplfyIhyA2d6 77ig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=K0MoBYvMo2eWPBDbUJa73F9VQNF/ITm9noYTanEXyJs=; b=Xkk5nDs60ysoK4SWTW0IqcPvvSbAtqDei6Q59x19swFonz0uZlQGBEZGAX7oCeMZJk I9b4yPQY8n5/PqalL0tulrlrtDbuFGIuKT9xrB3go2jW0qPNlwavolSWWX/JDHcwhfcf jXFoqaXmGOtKRSR2ci+D7Y67nLVvMaet/xNDS4EHqCs5VMFY78DwBIhgwC/dtxEGnq+t ssCD3I2oTm38LGvAdRYuqfeG/MCwhBJZBgjEosAKOI08wMfXejS18TvuPpHo8s2R4lup QTi2H+a4bsShO5Ozd+lwHl7pWZc9GbyEolinjkCqndBCU78LnohSqYR7PUJE9NgXV3ra 8GaA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ly11si11735357ejb.28.2020.11.03.01.46.50; Tue, 03 Nov 2020 01:47:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727518AbgKCJoa (ORCPT + 99 others); Tue, 3 Nov 2020 04:44:30 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6694 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725988AbgKCJo3 (ORCPT ); Tue, 3 Nov 2020 04:44:29 -0500 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CQPxy1xWNz15QSh; Tue, 3 Nov 2020 17:44:22 +0800 (CST) Received: from [10.174.179.182] (10.174.179.182) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Tue, 3 Nov 2020 17:44:22 +0800 Subject: Re: [PATCH v4 0/6] resource: introduce union(), intersection() API To: Andy Shevchenko CC: Andy Shevchenko , "ACPI Devel Maling List" , Greg Kroah-Hartman , Linux Kernel Mailing List , Kuppuswamy Sathyanarayanan , Bjorn Helgaas , linux-pci References: <20201102210025.53520-1-andriy.shevchenko@linux.intel.com> <1183267b-3e90-ab71-b1f6-7760ad0ca57c@huawei.com> From: Hanjun Guo Message-ID: <2c616805-6c35-8790-2e13-c18f0953edee@huawei.com> Date: Tue, 3 Nov 2020 17:44:22 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.182] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/11/3 16:31, Andy Shevchenko wrote: > On Tue, Nov 3, 2020 at 2:46 AM Hanjun Guo wrote: >> >> On 2020/11/3 5:00, Andy Shevchenko wrote: >>> Some users may want to use resource library to manage their own resources, >>> besides existing users that open code union() and intersection() >>> implementations. >>> >>> Provide a generic API for wider use. >>> >>> Changelog v4: >>> - added Rb tag (Rafael) >>> - Cc'ed to LKML and Greg (Rafael) >>> >>> Changelog v3: >>> - rebased on top of v5.10-rc1 >>> - dropped upstreamed dependencies >>> - added Rb tag to the last patch (Mika) >>> >>> Cc: Kuppuswamy Sathyanarayanan >>> Cc: Bjorn Helgaas >>> Cc: linux-pci@vger.kernel.org >>> >>> Andy Shevchenko (6): >>> resource: Simplify region_intersects() by reducing conditionals >>> resource: Group resource_overlaps() with other inline helpers >>> resource: Introduce resource_union() for overlapping resources >>> resource: Introduce resource_intersection() for overlapping resources >>> PCI/ACPI: Replace open coded variant of resource_union() >>> ACPI: watchdog: Replace open coded variant of resource_union() >>> >>> drivers/acpi/acpi_watchdog.c | 6 +----- >>> drivers/acpi/pci_root.c | 4 +--- >>> include/linux/ioport.h | 34 +++++++++++++++++++++++++++------- >>> kernel/resource.c | 10 +++++----- >>> 4 files changed, 34 insertions(+), 20 deletions(-) >> >> Reviewed-by: Hanjun Guo > > Thanks. Is it for the entire series? Yes. By the way, I tested this patch set on a ARM64 machine booting with ACPI against 5.10-rc2, and no regressions with PCI, so feel free to add my Tested-by tag for patch [1,2,3,5/6]. Thanks Hanjun