From patchwork Wed Nov 25 17:20:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 332378 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp622886ilb; Wed, 25 Nov 2020 09:25:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPSr/F/uC8vzvfnuQjtdhuo8MT3W6rmEzOXbtWzXB7bmPS5MZHA8lmyxaunE+/ivdAZ1NK X-Received: by 2002:a50:f147:: with SMTP id z7mr4471562edl.76.1606325105723; Wed, 25 Nov 2020 09:25:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606325105; cv=none; d=google.com; s=arc-20160816; b=fXk6ngSFUxTZmI8EIj0NEZlr6tdwTUv08bZV7agOday9F8vy8JbbAdMvWLeOpUjifH jDYG91AoboFMkm6Ul0HR/k07IwsyqcntX30JW3V3hkihd3F4WoFAqC1h9eY+I/C4VEk8 GE3Rw8YBolGGAB/cHR4LEAbUdDR72TSwpQYX+AY2hN5ylKIqpxM+0/pq8qI/XSuHnbts 444pHUpEY/MOyR4XVA1RByf8lHj7y8QFwyixgJ4rJ66Djdo1jn6oHDf1TZXcSQxzm90B wBAhwLQDFrPABOWue1wrZl+5VffhIemYrhsugz86tqC6pIjj1qWV83u5ByDNeWueSHeV qSzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=YXQIOB/6p4NQaBehOVwuK6HZht+ocPfwMk8UVYmbSss=; b=azLpTf+RfsYH8jTsOh8QqO0gKuxoHZ7vC3tl/GF+t6HIY6wXIODff4AvVfeTXDQ4Dv erhWjucDLICgZrRcmlkLaUYHdeqmhx8qblBsJcitwR/e9n5Fp7gXnUbSZDrCjJQx/8v4 SKXLQpUoII9P878CHgBxPBqE1uJi5LP9N/HVx/tTj0lmSCPHGQm2jy0n1gndT3eEO+Vm 052zNqwbgKzhG6cYxdyJYGJW6sqgtBvbfOyvD6pfavWtn/G52C2xhl/P084zrc4rmWj5 gyZ3E9EKTe6BuAgFR+jv+ctVs5cggOm/ejWZPl5cgj03Logg6BxLL1k2Elaw67Ly96GB 2SFg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 k22si2164875edj.571.2020.11.25.09.25.05 for ; Wed, 25 Nov 2020 09:25:05 -0800 (PST) Received-SPF: pass (google.com: domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732692AbgKYRYz (ORCPT ); Wed, 25 Nov 2020 12:24:55 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:8036 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731127AbgKYRYy (ORCPT ); Wed, 25 Nov 2020 12:24:54 -0500 Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4Ch76f4sSDzhc0Z; Thu, 26 Nov 2020 01:24:26 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.487.0; Thu, 26 Nov 2020 01:24:38 +0800 From: John Garry To: , , , , , CC: , , , , , "John Garry" Subject: [PATCH v3 2/5] ACPI: Make acpi_dev_irqresource_disabled() public Date: Thu, 26 Nov 2020 01:20:38 +0800 Message-ID: <1606324841-217570-3-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1606324841-217570-1-git-send-email-john.garry@huawei.com> References: <1606324841-217570-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org To allow the platform device to "put" an irq, make the function to reset an ACPI companion device irq resource public. Signed-off-by: John Garry --- drivers/acpi/resource.c | 2 +- include/linux/acpi.h | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) -- 2.26.2 diff --git a/drivers/acpi/resource.c b/drivers/acpi/resource.c index ad04824ca3ba..0999a98cab3c 100644 --- a/drivers/acpi/resource.c +++ b/drivers/acpi/resource.c @@ -380,7 +380,7 @@ unsigned int acpi_dev_get_irq_type(int triggering, int polarity) } EXPORT_SYMBOL_GPL(acpi_dev_get_irq_type); -static void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi) +void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi) { res->start = gsi; res->end = gsi; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 39263c6b52e1..d5101e36a645 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -467,6 +467,7 @@ bool acpi_dev_resource_ext_address_space(struct acpi_resource *ares, struct resource_win *win); unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable); unsigned int acpi_dev_get_irq_type(int triggering, int polarity); +void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi); bool acpi_dev_resource_interrupt(struct acpi_resource *ares, int index, struct resource *res); @@ -939,6 +940,10 @@ static inline struct acpi_device *acpi_resource_consumer(struct resource *res) return NULL; } +static inline void acpi_dev_irqresource_disabled(struct resource *res, u32 gsi) +{ +} + #endif /* !CONFIG_ACPI */ #ifdef CONFIG_ACPI_HOTPLUG_IOAPIC