From patchwork Wed Oct 25 20:23:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sunil V L X-Patchwork-Id: 13436733 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 189BCC07545 for ; Wed, 25 Oct 2023 20:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=AoWkGLUAOeo7zCTtuHF+p6hyyWm+GvkrZPTiBIi3VF0=; b=3yKMXenMKUgsn+ kyjJeSk2yT+sKrQZQ6Hce1YwVuCRLnUmzEqFS9M0PKS38eeFZwAE+3fDa1VQs4LLdTtDHrCqSflEM ABAVvY0wKVf0KbGvnU5oM65j9Hdz098e/kZZi++9uaE0XFrQ+PZ0y8tsrgWpnozjn+GaICsJaELit pN0oUDO/ACK3cYVf9FDjazXcc0t7gyNx3UypzJiPX0U+rIZ3PBz43t7+kD2sdS8IQ8QDB7DLqY2hb QeviM2dRYpwVaRA0v/GQ4XYoK0i/pKqVHFgXf5akbqPgHSXREJas5RMLOLcam5cHVUhazngDVrYK8 HJ8Tgncz1GlLg8aXw+Og==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qvkQj-00D2hV-1Y; Wed, 25 Oct 2023 20:24:41 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qvkQV-00D2Za-08 for linux-arm-kernel@lists.infradead.org; Wed, 25 Oct 2023 20:24:28 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-6b709048f32so145971b3a.0 for ; Wed, 25 Oct 2023 13:24:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698265466; x=1698870266; darn=lists.infradead.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=W8oe0TQ1+zZd/3zKJQAEE+us/MvQWSBihayeSKyJW3A=; b=o0i0JxzCorSz1gKZL4H+AVqDeZ0IoYjH26SiR7bV2+xcnX93JQiNt6YngyIes7nKHs BVg8NVQsMkOHMqucPo6hUR0UBWBgNAaO+HglsOwZ4ZU8rGDDqmv8CXF0fM2o+l+gbsuK N+JzxghpJRohGXJPsuYh9B2W3RaeFw6M9Nkl4IttZwymyawOaQL6hJ1Xb7SVcuFwOGLf +gaxDUzwPa32MTOCh1HQ2xIb1knDKy0ww4dx/84DhFGaZKRekd3gFhM0p3WqNNovM9Xn kL+Pt57XP9X/zFGl02VWhypMLJ3WXC8HSbEFyV4yHLe2HXQJNGJf52Wfcqut0UBHLwf7 dipQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698265466; x=1698870266; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=W8oe0TQ1+zZd/3zKJQAEE+us/MvQWSBihayeSKyJW3A=; b=HFEE5clDrXBiiRwpgalmm/gRYxFWWbFBMXolX5mnLRuwC3jiDQK9pSnNKXStFKd74d 2/guzJu8BULRziy8yUd0uf9JDp80nLN4Uo3PfiP943cDtNZjAFJwsPppn9Q/dmFkAfu6 Kgku2JpqXhNIH9V2knGaUUtAqZxlwk8kCjJZPfOD+B9I9adjCefrU8XY7TQp+m3wLKWe Mct3nImLZCzBAKHKN9A4ihxjplpRdZdXLBSXxHYh8YH8fKOkeqX1wGLeHOcfvKXJXwDH 0thcdpPD29wCOGKQzLwHlwXfla5UNZj/F+KqGsQQR1JWHNb7YEkxn+Gi9SVQSbbmDZLs iZcA== X-Gm-Message-State: AOJu0YwrBMqMUtp5I3tIsW9yAaGrMZqaELRN5zAFksF6DJ9H1g3SJ1V1 JIO0Otv56OkZIEKLqizeydK5+JFJhoVXk31NqHA3DQ== X-Google-Smtp-Source: AGHT+IGK6pQK6oEdjKlIa1mcimdR1pYjb6u2hPifw5U79lxb+nCirP606/eGPYNlPkAaYdn6n6fpUw== X-Received: by 2002:a05:6a00:12:b0:6c0:52b9:d448 with SMTP id h18-20020a056a00001200b006c052b9d448mr905573pfk.9.1698265465988; Wed, 25 Oct 2023 13:24:25 -0700 (PDT) Received: from sunil-pc.Dlink ([106.51.188.78]) by smtp.gmail.com with ESMTPSA id y3-20020aa79423000000b006b84ed9371esm10079590pfo.177.2023.10.25.13.24.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:24:25 -0700 (PDT) From: Sunil V L To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-riscv@lists.infradead.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, linux-serial@vger.kernel.org Cc: Catalin Marinas , Will Deacon , Paul Walmsley , Palmer Dabbelt , Albert Ou , "Rafael J . Wysocki" , Len Brown , Bjorn Helgaas , Anup Patel , Thomas Gleixner , Greg Kroah-Hartman , Jiri Slaby , Conor Dooley , Andrew Jones , Atish Kumar Patra , Haibo Xu , Sunil V L Subject: [RFC PATCH v2 03/21] ACPI: Kconfig: Introduce new option to support deferred GSI probe Date: Thu, 26 Oct 2023 01:53:26 +0530 Message-Id: <20231025202344.581132-4-sunilvl@ventanamicro.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231025202344.581132-1-sunilvl@ventanamicro.com> References: <20231025202344.581132-1-sunilvl@ventanamicro.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20231025_132427_078403_A645520C X-CRM114-Status: GOOD ( 12.71 ) 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 some architectures like RISC-V, the interrupt controllers for Global System Interrupts (GSI) are not probed early during boot. So, the device drivers which need to register their GSI, need to be deferred until the actual interrupt controller driver is probed. To reduce the impact of such change, add a new CONFIG option which can be set only by the architecture which needs deferred GSI probing. Signed-off-by: Sunil V L --- drivers/acpi/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/acpi/Kconfig b/drivers/acpi/Kconfig index cee82b473dc5..4399e793f1d2 100644 --- a/drivers/acpi/Kconfig +++ b/drivers/acpi/Kconfig @@ -51,6 +51,9 @@ config ARCH_MIGHT_HAVE_ACPI_PDC config ACPI_GENERIC_GSI bool +config ARCH_ACPI_DEFERRED_GSI + bool + config ACPI_SYSTEM_POWER_STATES_SUPPORT bool