Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1163687rdb; Mon, 19 Feb 2024 06:22:47 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXtWgfAErfR8GknrH3VFl0xJPguUJ88fh8fQo9YN0odsHXqanMdhYm0p6nH0FFRoJ7PQ+MKEj4qTbAiJdVwghWLEqNjEUogcAz7dRAM1w== X-Google-Smtp-Source: AGHT+IGvRvO698XfLVxGy1bQzcg3dI1vMF7Ddanrq2nwwgNJ4ex1PQczDTQ98Zq0Xcw6pcZPM6xn X-Received: by 2002:a05:620a:d53:b0:787:267b:9bcd with SMTP id o19-20020a05620a0d5300b00787267b9bcdmr13803920qkl.0.1708352567138; Mon, 19 Feb 2024 06:22:47 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708352567; cv=pass; d=google.com; s=arc-20160816; b=BXdO6zqJgDMYS33kCrkCcnp/Bs1iS3AWOS4yl8Hc0xrDolBLpAo5u1HlxfMA9+iL42 +xyDwEdtKE++npZZrdlzlAWYas36NS8XlwkTfWX5gunL3LRMNdGXhVvzoZxIKi/td6D/ woC8xAAXasLiqsr2lxBlHi4GD8W0714QuTIJkRw1vGNhkF8fnrgbJK+h7v5wTyFDy21m sbTPifbz6Aq6ujKYtPClOH7Hx6hewaziVfwWOACFRk1zlAhQIYm/ISXwibHs0Wp/3DNx o6RHSGuUzSQPJhyhZ6zsTp51TOnVDIfHayatD2H9vJoEQf0BF1Ix9z+dfNpaVov6cfkw nusQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :message-id:date:references:in-reply-to:subject:cc:to:dkim-signature :dkim-signature:from; bh=8iEgdflkmZKXImf680lz4hgFumtn+q/R0YDjSc4t/Vc=; fh=5ZK7/v6GV0FMcluvnca994g3tRM+LXmNJza54wLIkcQ=; b=nbD91g5egvOtrKvKtXGoxR30XHYsAGs1k/uFJAJw5AAPruVWl+6T6sdQjUIDnp00ko XFzFsZYdEBRM0eR08A6hrZQp5fd8LPABXibbitcjTY2YfQhifOresrSXo5EIjUZcrxst 9hSRvT0TP/OmevSCEpogzz+L+j1/opaEynQUJqBZO8UyXGBEx6/pkgQOwXzVsmyfseL8 t30W+3LLy+ktRh4W6H8KdZPa7V/qGgHPQO+hMnawTsosqGuYxtbkyh1L14n8q5si2E7w 7QAGNqebqfBE6+CjV82ekecMUEyPUM8yKqmkGum7jUAAKqHCBwtOTRZYSRJ+mBNh8SSw wdcA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4upGx7kJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id a12-20020a05620a16cc00b007871f95a1f8si6312743qkn.723.2024.02.19.06.22.46 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 06:22:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-71471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=4upGx7kJ; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; arc=pass (i=1 spf=pass spfdomain=linutronix.de dkim=pass dkdomain=linutronix.de dmarc=pass fromdomain=linutronix.de); spf=pass (google.com: domain of linux-kernel+bounces-71471-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-71471-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E036D1C20935 for ; Mon, 19 Feb 2024 14:22:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B744937160; Mon, 19 Feb 2024 14:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4upGx7kJ"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="4+9ecyFE" Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7289374C6; Mon, 19 Feb 2024 14:22:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708352558; cv=none; b=kloREZTaezgs7OESS8fD2sM0xGFQ2Ofd0Kx9Y2revh48pBHQIFjzBlW/vMxoBE6ZwL3U9eSIEsPUe9s1l9OFLTtnJdIdcImjEeN5FdU9DN3K7piG442o2EsYh9K0qxc/a3x9SQ7kEPGNF7jWLzeD184L/Fi6896puPIKuh5E+F0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708352558; c=relaxed/simple; bh=VirNTJqU30QLy7416ZaZEoSyRmXkYqVSdeOtlf+rVxA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=avZItcXGZuf+grnBPXVkIzcq5iVBSRBfZSH2a5DrJI/7nmf+YF/P4+3Qp8otDbsuex3I7HAB0zFUe91xALkCjhTLwq6vpFWasitOgipcYfRbtXPNjfluz2wgZVoNhr4QmrpU2Qfwv5Lip+/Ie/5lhgDrEOVpRlh0ptloEdv97Zw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4upGx7kJ; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=4+9ecyFE; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1708352554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8iEgdflkmZKXImf680lz4hgFumtn+q/R0YDjSc4t/Vc=; b=4upGx7kJ727A884ML4hUkx8C8e9g9smfQg662DB+Eql0qhnTPCpSxSOyFEBVeuIEZl3D2x lifGEA6YdZDxZ3NATNyidGIV9C47gWKE1F+bi+RMUbfG6GS5JyQqSU1eF7ydP141pP96cO Ejs2/ZFtgYFx6xD+cXA+D6dF14bXZ1Bzog1pajHS8HEuh3FLJOXqNLOya45j2829Og2LQV KSVySQTHgr2Cwbsv/m17DEgTr0sZup4bsdHay2QH+ElPRfgphVBLWy8FzODQOHxWfmARqj +TEWoE/Dyg9x3UBjG4oHCdTBdpxv3lEZlgWMKlBfaLh5q6Id5RObd4Dpti1oRQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1708352554; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8iEgdflkmZKXImf680lz4hgFumtn+q/R0YDjSc4t/Vc=; b=4+9ecyFEBiX9R65rg3DVI+yqWFudZBvINi2tHB1FDWo7lijLMJysfGElaqbRllJylJYfxs KB6fhvkKSS/LqXBg== To: Antonio Borneo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maxime Coquelin , Alexandre Torgue , Catalin Marinas , Will Deacon Cc: Antonio Borneo , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH 03/12] irqchip/stm32-exti: Map interrupts through interrupt nexus node In-Reply-To: <20240216094758.916722-4-antonio.borneo@foss.st.com> References: <20240216094758.916722-1-antonio.borneo@foss.st.com> <20240216094758.916722-4-antonio.borneo@foss.st.com> Date: Mon, 19 Feb 2024 15:22:34 +0100 Message-ID: <87a5nwa5zp.ffs@tglx> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain On Fri, Feb 16 2024 at 10:47, Antonio Borneo wrote: > diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c > index 69982f21126a..95bb3dd10b2c 100644 > --- a/drivers/irqchip/irq-stm32-exti.c > +++ b/drivers/irqchip/irq-stm32-exti.c > @@ -61,6 +61,7 @@ struct stm32_exti_host_data { > struct stm32_exti_chip_data *chips_data; > const struct stm32_exti_drv_data *drv_data; > struct hwspinlock *hwlock; > + struct device_node *irq_map_node; Please keep variable declarations ordered in reverse fir tree layout: https://www.kernel.org/doc/html/latest/process/maintainer-tip.html#variable-declarations > }; > > static struct stm32_exti_host_data *stm32_host_data; > @@ -713,8 +714,9 @@ static int stm32_exti_h_domain_alloc(struct irq_domain *dm, > u8 desc_irq; > struct irq_fwspec *fwspec = data; > struct irq_fwspec p_fwspec; > + struct of_phandle_args out_irq; Please move this into the condition path where it is actually used. > irq_hw_number_t hwirq; > - int bank; > + int bank, ret; > u32 event_trg; > struct irq_chip *chip; > > @@ -731,6 +733,25 @@ static int stm32_exti_h_domain_alloc(struct irq_domain *dm, > > irq_domain_set_hwirq_and_chip(dm, virq, hwirq, chip, chip_data); > > + if (host_data->irq_map_node) { > + out_irq.np = host_data->irq_map_node; Thanks, tglx