Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp2824524rda; Wed, 25 Oct 2023 13:27:20 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDRQdcucY9+/bYT7H0aXG0m55S4zjYJ72FxerVqDY4Y6mbspIpfP1TH5npGUS7VI+ZWybJ X-Received: by 2002:a25:3258:0:b0:d9a:d20d:7d5a with SMTP id y85-20020a253258000000b00d9ad20d7d5amr16481232yby.1.1698265640295; Wed, 25 Oct 2023 13:27:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698265640; cv=none; d=google.com; s=arc-20160816; b=sZOWguasKoHYEAsiKjTw/4HeGVoXbbuPetSsYSujL0E763jGDxS0039YqJ2fd8BsC8 vIw2eZCwMkNKWdvHuZeKsbHEzPXaXb3XGShXg1fq6gUvNO+UzQdF8yW96qj1FNx9IcEr Av6UyojpnN0vqeavfGDBZ12NoiyvG2BHNcUjF0fEElYWYvm0VFVCKJ4SNNBuTAMJOETV 4O7faEUV2cryT/+fnIrDpD5Z09iI7t7108/iAJ4M/Y8r7Mb7GWL5nKLsCWni+MQ1pIfr QcXqbJyH1XenX8VJ9vgQB8kol8mLPbPKYPPRVO94QR2FAx5NAw847oAmpS8gFN4oy0JR 7azQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=8cuOe+AU3MQZSBvbMUo9B/kQ2SYr1hcMCXHjeEaDcfY=; fh=/fEAwM0ftwV2z3MN/iSYq1lv8IFPZ2fY8Kg8RoFcxjU=; b=ubaXII77g97X/vIR7evbR6eD6trcLZlSTZQRuVRfLXPIHwx7Jyt39LeZY4SU2JOZD2 5LU4heTXjUkrzdSYqwQ/uUmMiNF8HFyENFIRpBH41ADa0qBOnpoAuT6xMdNx1aShm5nc flkFosl/IOUAx2nque/HcRIaKiIXKLsj2DXe+BLmYDzs468AQ/Yhe9qvQYRlUPg4HxdA f4wNZ2B5CLmXRuR2hnG7e0lvpOEb7QVGmT0/Lt2g8gTfBEqBS4kN/Lf95c3Q0FhL1zrL 3tLwU9aDMyNqk4V4MuRE3u/pJnVY1IO6npcq0MneMbtzKb60HVjw/zQxwoczdL/ip32p ADyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="cZDdqT/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w143-20020a25df95000000b00d9cbd35093fsi12221116ybg.298.2023.10.25.13.27.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:27:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b="cZDdqT/g"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 519C780295CF; Wed, 25 Oct 2023 13:27:15 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235031AbjJYU1F (ORCPT + 99 others); Wed, 25 Oct 2023 16:27:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38340 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234971AbjJYU0b (ORCPT ); Wed, 25 Oct 2023 16:26:31 -0400 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D9D5173A for ; Wed, 25 Oct 2023 13:25:48 -0700 (PDT) Received: by mail-pg1-x52a.google.com with SMTP id 41be03b00d2f7-5b7f3f470a9so188728a12.0 for ; Wed, 25 Oct 2023 13:25:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1698265548; x=1698870348; darn=vger.kernel.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=8cuOe+AU3MQZSBvbMUo9B/kQ2SYr1hcMCXHjeEaDcfY=; b=cZDdqT/gtqqI0oRq7UCAkp68DsV0s5Wqf+YVZ1of5fXPaZ95fQ1mwqXd5CoOeff3Pn cWT82Cg/EhuvcFsKVQTjTH4THO35VgzBwMguia2vgolJ9+0ZyEwWwJ1cOkjg20y8VuZY sLOhrr7oUewiG4Rhb2YweEwgUxxUhYD1lb8Rymo1TEkjYyO0NmbW6HUsmHjuOP75O+Nh ZFPnpmAU1Z7lbL8uugrDLcXdMyQtMUhSFFvt6+WJAS91FdwgYZQbquE1TJ5hBPh1po5a +c4wrcjBMG7B/TuKcikOoUPZC8GpKJ3/8NHrgBSMFJjQpR9Vkl7OB/9FHz7/+XqTg6e7 /iVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698265548; x=1698870348; 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=8cuOe+AU3MQZSBvbMUo9B/kQ2SYr1hcMCXHjeEaDcfY=; b=K1UNfRjXoaGk1DNDZTsdJ2qK8KrHAUlNPfNJvipnwRRrptzBVeccZgJ8T8sNxNv8O1 OA04TUnheixB/xC0h3pvuSksS+X5g2eP75QYhgZ256nHot/p9/pyC/sdG8FIb4wE0CqF 9RnQuzDoDPXoH23zNt5l+fADa1JB01zt0VgqMz7EzjsQoMLXbeRV1C/LGVlFY3Gz/9WZ IidRt/y7X5UtChXmvkVW+D/z34wXCRete3hpWAqGvxhTr8rmXpHEaJXycuAcoWGJTUO3 /ll6lis6sWIH7+7E0lJmt6rhogJi5+9nnBJpZ3/k2bWxCY0WOADmYU7eKhG75Yig607v yfVQ== X-Gm-Message-State: AOJu0YyWXdBUA/NiUVjLPtMTx44l1Z11xXkwoNuHKOrR8TclkMpZOaVm uvfOa4Vn0tu1jeFlRQOGr4MMEw== X-Received: by 2002:a05:6a21:78a3:b0:17a:eddb:acc2 with SMTP id bf35-20020a056a2178a300b0017aeddbacc2mr8715766pzc.46.1698265547753; Wed, 25 Oct 2023 13:25:47 -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.25.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 25 Oct 2023 13:25:47 -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 17/21] ACPI: bus: Add RINTC IRQ model for RISC-V Date: Thu, 26 Oct 2023 01:53:40 +0530 Message-Id: <20231025202344.581132-18-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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=2.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: ** X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 25 Oct 2023 13:27:15 -0700 (PDT) Add the IRQ model for RISC-V INTC so that acpi_set_irq_model can use this for RISC-V. Signed-off-by: Sunil V L --- drivers/acpi/bus.c | 3 +++ include/linux/acpi.h | 1 + 2 files changed, 4 insertions(+) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index a4aa53b7e2bb..9eace6c7042e 100644 --- a/drivers/acpi/bus.c +++ b/drivers/acpi/bus.c @@ -1158,6 +1158,9 @@ static int __init acpi_bus_init_irq(void) case ACPI_IRQ_MODEL_LPIC: message = "LPIC"; break; + case ACPI_IRQ_MODEL_RINTC: + message = "RINTC"; + break; default: pr_info("Unknown interrupt routing model\n"); return -ENODEV; diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 4ad256a0039c..19c3dda9c2ed 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -95,6 +95,7 @@ enum acpi_irq_model_id { ACPI_IRQ_MODEL_PLATFORM, ACPI_IRQ_MODEL_GIC, ACPI_IRQ_MODEL_LPIC, + ACPI_IRQ_MODEL_RINTC, ACPI_IRQ_MODEL_COUNT }; -- 2.39.2