From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=205.220.180.131 ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1796042615; b=raPHaqATgAY88xZY8FDBZtgv7Vj6pjRHDGEv6iiTYquKbyZxxU6B+WvKqJuiUjVI9IaA /bimAmhhHDR4cw4XR4fte/j3F+3ltVuYH33GGG7xIdi+Yp7goiNMsv65wVDyrqK3zj3HM 3HOIIc4KLvX96xbg1ViPvcZVo0MtHFeCh6rdQWgI2yERL4gHOcZugNymkur3kjMAtkFzG O426JDIRKz1jugN3XP3/8NNFtRcdakvNVIFQNryqEAfF+wgbT5axiLPoR5CcIIxbs8kGh 6ipCJstK9utCFCitlTjHk/xnpmIlPKtKafE2ny3uE+rOev/TDKpLi3is24JQ+3cShWw== ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796042615; h=DMARC-Filter:Received:DKIM-Signature:Received:Received: DKIM-Signature:X-Google-DKIM-Signature:X-Forwarded-Encrypted: X-Gm-Message-State:X-Gm-Gg:X-Received:X-Received:MIME-Version: References:In-Reply-To:Reply-To:From:Date:X-Gm-Features:Message-ID: Subject:To:Cc:Content-Type:Content-Transfer-Encoding: X-Proofpoint-Spam-Details-Enc:X-Proofpoint-Spam-Info: X-Proofpoint-ORIG-GUID:X-Proofpoint-GUID:X-Authority-Analysis: X-Proofpoint-Virus-Version:X-Proofpoint-Spam-Details; bh=GI2Vteer0LfCKZErLW1QXQ/2jStmsm4NCwPVpzHXr9o=; b=0j1MmZntG2A7tmfFMj7ogORN8GRGfMMBI3M4sv+gKWunJA/dwrbQr31iYw8X+N1+i2xA LUXUxidvf+7kkQHUzX/JqR4pZuGUKkpnSQn4bRxtACyDQ2bPgAaRHVHqtyqxToaJ6HlIa uEIY5o5XAayqsRGMLt/Il7pPG0Dgi8OMZEWR/k5YY8LY3wA+Mi6xUoSZOX9iARRsSqQou Ifls+XjlJGKbkWyV0HQ1Uw+U70rQX8wFssnXyrB86uiMdk0W/cKeFTMSKaXZIYPHZnx9Z 2cXIEg6l64ilAfZtWbMljezTx5MgpLRMAmKywYGRYqLJvSsIlIEf61O9FdavI0TVjkQ== ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass header.from=oss.qualcomm.com; spf=pass smtp.mailfrom=oss.qualcomm.com; dkim=pass header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=bB3DGrNu; dkim=pass header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=LYUCq7fm; arc=pass header.oldest-pass=0 smtp.remote-ip=205.220.180.131 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B8B04606A327 for ; Mon, 30 Nov 2026 12:43:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B8B04606A327 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oss.qualcomm.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=qualcomm.com header.i=@qualcomm.com header.a=rsa-sha256 header.s=qcppdkim1 header.b=bB3DGrNu; dkim=pass (2048-bit key) header.d=oss.qualcomm.com header.i=@oss.qualcomm.com header.a=rsa-sha256 header.s=google header.b=LYUCq7fm Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 6AU9XeGi3935039 for ; Mon, 30 Nov 2026 12:43:33 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:reply-to:subject:to; s= qcppdkim1; bh=GI2Vteer0LfCKZErLW1QXQ/2jStmsm4NCwPVpzHXr9o=; b=bB 3DGrNu0dGvYu2Fz7SE2PMZKtxgaxiJEosK87DT+NIyjS24+bzGJmKpvMXQ7qDK1H s46x4yQx7QHQtprMx8kpWa7uh9vIaS6+Gw3HB2kcVqo9fPheThxdnd+ICVFoSetw KkNnKlxCeix64e5htZEkDElgkTXdRfQ/W6zMwq4M7m7t+t8+dmD3hWxzi1CphjkE 3yEPILL4y04rsSVDBbYxhl9o5V/wu52es1HfLYTMyX+LKMFGv6p/t0ZMTOqB9kkb GVXFabwO0kdQ4leeNosGu8zI7WY1vjXtm18iq/KU7xbZBtP5AM4GM9pvSZK+AcYY A59Ak836pxeNahSSdpKA== Received: from mail-yx1-f70.google.com (mail-yx1-f70.google.com [74.125.224.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4j8skyju56-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Mon, 30 Nov 2026 12:43:33 +0000 (GMT) Received: by mail-yx1-f70.google.com with SMTP id 956f58d0204a3-679a3664e1fso15369243d50.1 for ; Mon, 30 Nov 2026 04:43:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796042613; cv=none; d=google.com; s=arc-20260327; b=WXsBRmbNwSvD4F4P3cZJ/X1lXdanlWXXaklzhK5DCqMSPXdygjnvPqo6Wf120UY5Q5 OqzraMhao+PCaBGu1/rtJiNH4uZZ5mmwF7fOuZwxL1ASM7khxP2uZCnjTCVsvavjpkgD Zl7Of8cCsC56Hn8j4U7byv7eYopEX2RC5AB0nuhoac/W4NpkkTKp44WYhFm0rFfhVD+n r/h447FyuIRIrW8szKrLMkBKD8tc4rI8I7ysGZD5N+0xWJSQk4FDA5unCTE4iFYH2yCu tdwOYLZ5sRG0Qrywb6YataBN+hkGbHoCHKZe1XHTIly+0279oavxWCeHADnupJf7tddL 90dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:cc:to:subject:message-id:date:from :reply-to:in-reply-to:references:mime-version:dkim-signature; bh=GI2Vteer0LfCKZErLW1QXQ/2jStmsm4NCwPVpzHXr9o=; fh=LKoK7AcClf0ko4dJluaj+Pmo934t2FpaFyZbMI1tE38=; b=PI0uME35jwP6FNosafLIp6qQNfN/c9DkNJefsWfmzAVHDtJAyehssi3lGrrznG7i5S WsdTpUIn8dUwWFmv4rA8DmyNicQpboiPAP9czAFSU6HNvZP5TqifLCO2zNZYRfr1OYsv YrkxWcC5LaSXQ07Kz13PyI1d3LIynkQnFCbAOihnrqoFFpbCD9hhQRauT6HEnpi3hhCA R56yRjrIeDrvIgUJA6QQ3N47W2ihJbaUWzrbwx6OnOs+2reTMh5wYCC+pDwAR+gKwoI0 Ze3xY7yfH2ic55HZHYaN1N2/MXVjlJtApFMjTR/3GIs+AMn9rVOsPMqPw2D4kN1uyuyb N0Jg==; darn=vger.kernel.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1796042613; x=1796647413; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:reply-to:in-reply-to:references:mime-version:from:to:cc :subject:date:message-id:reply-to:content-type; bh=GI2Vteer0LfCKZErLW1QXQ/2jStmsm4NCwPVpzHXr9o=; b=LYUCq7fmSQUxMMmPDOt/fkV+p2NK0c+QUtrKJ7p0Jz6rFgLhHuF8DQglD/8nuE9fqg uU6ucccKMcfNb+InDsCirGW57OTB5zMDNiYjm5adOa4276dcvNgvgxNAys6Gh3YgOieO vc5fMQdAIbRRKG1eWCCqs/1NdkWmx/68DUzT5YGMTa15vHgNy6zdGEW+Ec2ule77PkkC 0IiG72fjQfQJnAKR0wzSQOInDi6QGdp/bBPKWkmuj3XWidUmiRNaWue3RxSMIKdJyRLq 5/1XFHp/vZbRwOSNvnu5Mp8FH93cmjrCSWVoF76mEXmweocncPUZ85Urzp8XELTL0rtB GDyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796042613; x=1796647413; h=content-transfer-encoding:content-type:cc:to:subject:message-id :date:from:reply-to:in-reply-to:references:mime-version:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=GI2Vteer0LfCKZErLW1QXQ/2jStmsm4NCwPVpzHXr9o=; b=1eOsBTBeYfu86XXTLn5uw/4Q2D9whbrrEAGFh8BwgL3C3M0Ntx4ICTM61ToVycZ+ya Tz5UPw9QoxYg0JekeazT0d90961ZVLBmEtwJyiCLzd4/oHjz9jLbzCb1uXaJIScUtBHM 09ivjQeuDxdyYy6SGmyEyRzXR7n7Fn88PHI+TbrpHRj7zMVC9JahvCnKDL/jqH6jso9P hXvxT3BFpajhymz1GatPz17DcCm7JHBJN7Z6/mZ1af3YaEuhzM8chfiwTmCywCi5RAtc TZeuguOqGHCVfBj/+MbiVtYk5irQuxWI7EiT18mehPFHOwLW/2zXGvo6Xi1fOOPOfDYB l09Q== X-Forwarded-Encrypted: i=1; AL+hErHqk3cNbVMBN+QTCImmHOmsYV5Q1mfgOwtTzPFIDTodEdJ6F1u0ABIROFr4qE8cflQykQujMhnjLk4r0sY=@vger.kernel.org X-Gm-Message-State: APuU4Z+2u3CpfNIC2gIvkQ/DqLLEk2WMG+WiP3NmWvWcwI5A+CgByuT1 ALB2JXO/tLx4nLzNUUi/o16b/YMQzNZmP5g3moijktiKPY/RXxJyxYr3RbwkLd5HTvFZ3aF/Ub0 E8lYAZogy1rue5coAQfMfnohXQZJhY9zg1Wn0wzUozgfhvuUrilV0Q5aHxc1Rdjkcs1w4Ej+1cH nfy9xCK79t6IFioJ/EjTvlmZsPqjKm064azjqf8v02aA== X-Gm-Gg: AZFdTZfpeKALxqMqXgrIM0Y0Z57mL2XHpQxlvCZPieMEEEiLFGYjeZD32pTw+Kp8HPd kMXHmqHtc+iQYToAm3sm04P/Wak2Vvr/BngsqpwG/WI8kBQibMJXyj4kihkdYtCDjC/qbNh2OXJ mXAlFPe398T927ik9gWhncsSOBCgUN1ZAois4qH0q4FcQVUIJUAHMbWO0J0Lo= X-Received: by 2002:a05:690e:b8e:b0:67c:c65:89b5 with SMTP id 956f58d0204a3-67df448402fmr13193291d50.86.1796042612713; Mon, 30 Nov 2026 04:43:32 -0800 (PST) X-Received: by 2002:a05:690e:b8e:b0:67c:c65:89b5 with SMTP id 956f58d0204a3-67df448402fmr13193270d50.86.1796042611911; Mon, 30 Nov 2026 04:43:31 -0800 (PST) X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 References: <20261130094214.263404-1-shankar.c@oss.qualcomm.com> In-Reply-To: <20261130094214.263404-1-shankar.c@oss.qualcomm.com> Reply-To: sunilvl@oss.qualcomm.com From: Sunil V L Date: Mon, 30 Nov 2026 18:13:20 +0530 X-Gm-Features: Aa3M54q1OlcR0rXp4u7srkzfnXHEuT6t8Tudz84Y-CIPLA0zanGxEC0St8AVXlQ Message-ID: Subject: Re: [PATCH v2] irqchip/riscv-imsic: Use the global config for ACPI fwnode lookup To: Shankar C Cc: anup@brainfault.org, tglx@kernel.org, radu@rendec.net, pjw@kernel.org, palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, shankar@fw64.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMTMwMDA1MCBTYWx0ZWRfX2lHEdMy41QXM 9jBgyqvf/58e4tneEf4Xa8vKRxgMsElHZWhP9U/kJtmkXXXIhtSBTOzsIN/dmtTcqiKipLrBR3h 1ALdSP0TvwGXcTAj1FuoFuUw5sdkMHz8AlnDKULZlqeEdJB0LYT7yjbq3aRtrQFfutRY2kOxfts 7tM8+PXdSaW6OYFeyY+Gjdb/N1CnD4VTmleNNeIZP4FWw88wwv6FVJ0bJBhnIZb7QjagUZ4g6qm nLvxLxUfojAsR2Q26YJPnoOlbhqA9lBOiTCoYuaCowiwv5eUEdJvp1o4mGjkuSq2VXWEduPPL+N Yb9oBd4NDJSPLHBji1IDZKx2Aj+inzPX1/Mo9/o6an12E746AsoN+CgGva+lPkoyajYsI7h9Y2J E9KFm02JOgTVzciUehBcOrCoIMigkGstoePwn4QP4cGkwcPRvqhZd/pNN0O7TAu+LJhygy8Q0QH H+uxFRo/RPJk9DQpAPA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMTMwMDA1MCBTYWx0ZWRfX7VQUdx3cxhhs gGDb2WdbtDTCS5NiEAX2J6hy1SadCGlL2XjPaIIa9uXJ/WO6dQJjoYQh0bsRmhF0E5M/NopE2YS NoFqEJoVr8+4yKj+YOCUs6JP4HjmNzc= X-Proofpoint-ORIG-GUID: k2_c1Anv6aquG0ZPl7MBNAAVG7Yc0dDt X-Proofpoint-GUID: k2_c1Anv6aquG0ZPl7MBNAAVG7Yc0dDt X-Authority-Analysis: v=2.4 cv=Ie4Symqa c=1 sm=1 tr=0 ts=6b0d6f75 cx=c_pps a=S/uc88zpIJVNbziUnJ6G4Q==:117 a=IkcTkHD0fZMA:10 a=zJRp6_cAMcgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=dW_eLJTNALgXSTXnP5oA:9 a=QEXdDO2ut3YA:10 a=nd2WpGr1bMy9NW-iytEl:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-11-30_03,2026-11-27_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 priorityscore=1501 bulkscore=0 malwarescore=0 adultscore=0 suspectscore=0 clxscore=1015 impostorscore=0 phishscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2611040001 definitions=main-2611300050 On Mon, Nov 30, 2026 at 3:12=E2=80=AFPM Shankar C wrote: > > The IMSIC firmware node is already available through the global > configuration, so the separate ACPI fwnode pointer duplicates that > state. > I think "Already=E2=80=9D is a bit misleading here and the commit message needs to describe the change in the imperative mood. Something like below would be a better commit message. Use the fwnode exposed by the global configuration in commit ff6f8cd2919b ("irqchip/riscv-imsic: Expose the fwnode via the global config"). Remove the separate ACPI fwnode pointer to avoid duplicating the reference. > Signed-off-by: Shankar C > --- > Changes in v2: > - Store the global configuration pointer locally to avoid calling > imsic_get_global_config() twice in imsic_acpi_get_fwnode(). > > drivers/irqchip/irq-riscv-imsic-early.c | 9 +-------- > include/linux/irqchip/riscv-imsic.h | 8 +++++++- > 2 files changed, 8 insertions(+), 9 deletions(-) > > diff --git a/drivers/irqchip/irq-riscv-imsic-early.c b/drivers/irqchip/ir= q-riscv-imsic-early.c > index 06726a062b75..0fb5484d0cd7 100644 > --- a/drivers/irqchip/irq-riscv-imsic-early.c > +++ b/drivers/irqchip/irq-riscv-imsic-early.c > @@ -248,17 +248,10 @@ IRQCHIP_DECLARE(riscv_imsic, "riscv,imsics", imsic_= early_dt_init); > > #ifdef CONFIG_ACPI > > -static struct fwnode_handle *imsic_acpi_fwnode; > - > -struct fwnode_handle *imsic_acpi_get_fwnode(struct device *dev) > -{ > - return imsic_acpi_fwnode; > -} > -EXPORT_SYMBOL_GPL(imsic_acpi_get_fwnode); > - > static int __init imsic_early_acpi_init(union acpi_subtable_headers *hea= der, > const unsigned long end) > { > + struct fwnode_handle *imsic_acpi_fwnode; > struct acpi_madt_imsic *imsic =3D (struct acpi_madt_imsic *)heade= r; > int rc; > > diff --git a/include/linux/irqchip/riscv-imsic.h b/include/linux/irqchip/= riscv-imsic.h > index b7be1aad7774..886f82e52546 100644 > --- a/include/linux/irqchip/riscv-imsic.h > +++ b/include/linux/irqchip/riscv-imsic.h > @@ -96,7 +96,13 @@ static inline const struct imsic_global_config *imsic_= get_global_config(void) > > #if IS_ENABLED(CONFIG_ACPI) && IS_ENABLED(CONFIG_RISCV_IMSIC) > int imsic_platform_acpi_probe(struct fwnode_handle *fwnode); > -struct fwnode_handle *imsic_acpi_get_fwnode(struct device *dev); > + > +static inline struct fwnode_handle *imsic_acpi_get_fwnode(struct device = *dev) > +{ > + const struct imsic_global_config *global =3D imsic_get_global_con= fig(); > + > + return global ? global->fwnode : NULL; > +} > #else > static inline struct fwnode_handle *imsic_acpi_get_fwnode(struct device = *dev) { return NULL; } > #endif > Otherwise, LGTM. Reviewed-by: Sunil V L