From nobody Tue Dec 16 05:55:03 2025 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 B3065230BDF; Wed, 7 May 2025 07:58:12 +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=1746604694; cv=none; b=MyaPCT0iVm46hK+SKL2fD3P1r+sO1qQMUxCR22+/WpEWmzQxOKv5VbE0U7806tlbpdpsjIDNYzji/caG+0z9YSMKGx/HPr3b5DNvLVPyoBTtKKruyoWeWxOHVOwJuY+9BBcpmoAO1tu+vgv6Zq0UCPltC1T2XvEVVSNkYO/q7fo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746604694; c=relaxed/simple; bh=kNirQiiDuAzLNNxeJDzVsCQIpRHVM/zy0eXODRtUdfw=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=j3ICijRQ3x3t4kDPkMJDQgvXz4I6v8a0+L5zZ4RwjQUM5/eJ24fGs+aXu+XrTKhryyiS/SkJN4wuJqQ4MOGedOlrL+3KvOfbJ2BENL7MgipeRTi0CZTKtPOqqZlSsDtp0mzlnYiqkIku2CbSb4aAYmi7Zqa0+9P6zloSoQ1HK/k= 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=xeNL+u+f; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=Vh8iywYL; 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="xeNL+u+f"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="Vh8iywYL" Date: Wed, 07 May 2025 07:58:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1746604690; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aYpvkibfhN1TnAd5+DCcD26ICzasRxp43hcPypeyoqk=; b=xeNL+u+fe26RScV8oq+cjyTb9WH1wOCKwARC4qLv0Q88NYIOeOSacmTAVjXWXmXehpuweG 1nMzuXF1Gl6Vr5WXf6zQ3V2CfxIaVW1uCFZDmH0xZbOkDYDlZPokdSI3USuFRw5kwiyzS5 22U3zTzBraM+TufsO2NgawZYMgTF/deGEpC+cglszzyViqLDry0dl5Xwc7B0Toj3dmgESr huYDqYJL9nnhO6ggUDwvWVEg4UTbn6oB9MEp8xQ4cgGJc1Dfj5iS1nw0jEpuS1N3Qc80SO BcBTRO2jM3Kz3ASBpTcUy/WI5NQHx9i7eTd7Vy0mloW35Zxyc1s3hhAtk8zS1Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1746604690; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aYpvkibfhN1TnAd5+DCcD26ICzasRxp43hcPypeyoqk=; b=Vh8iywYLn/p6Mzq+ZtlDNeDTz0M97BAdTWhd6FEFwb3JNzQqjaZBmAy4Q2wXsihOqCeLT4 dfUetgvP9k/5rrCw== From: "tip-bot2 for Jiri Slaby (SUSE)" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/cleanups] i2c: Switch to irq_domain_create_linear() Cc: "Jiri Slaby (SUSE)" , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20250319092951.37667-20-jirislaby@kernel.org> References: <20250319092951.37667-20-jirislaby@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <174660468997.406.12538065500461337827.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the irq/cleanups branch of tip: Commit-ID: 417e5bf879988bcd61adde878254f9ecf9015052 Gitweb: https://git.kernel.org/tip/417e5bf879988bcd61adde878254f9ecf= 9015052 Author: Jiri Slaby (SUSE) AuthorDate: Wed, 19 Mar 2025 10:29:12 +01:00 Committer: Thomas Gleixner CommitterDate: Wed, 07 May 2025 09:53:22 +02:00 i2c: Switch to irq_domain_create_linear() irq_domain_add_linear() is going away as being obsolete now. Switch to the preferred irq_domain_create_linear(). That differs in the first parameter: It takes more generic struct fwnode_handle instead of struct device_node. Therefore, of_fwnode_handle() is added around the parameter. Note some of the users can likely use dev->fwnode directly instead of indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not guaranteed to be set for all, so this has to be investigated on case to case basis (by people who can actually test with the HW). [ tglx: Fix up subject prefix ] Signed-off-by: Jiri Slaby (SUSE) Signed-off-by: Thomas Gleixner Link: https://lore.kernel.org/all/20250319092951.37667-20-jirislaby@kernel.= org --- drivers/i2c/busses/i2c-cht-wc.c | 2 +- drivers/i2c/muxes/i2c-mux-pca954x.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/i2c/busses/i2c-cht-wc.c b/drivers/i2c/busses/i2c-cht-w= c.c index 26a36a6..606ac07 100644 --- a/drivers/i2c/busses/i2c-cht-wc.c +++ b/drivers/i2c/busses/i2c-cht-wc.c @@ -467,7 +467,7 @@ static int cht_wc_i2c_adap_i2c_probe(struct platform_de= vice *pdev) return ret; =20 /* Alloc and register client IRQ */ - adap->irq_domain =3D irq_domain_add_linear(NULL, 1, &irq_domain_simple_op= s, NULL); + adap->irq_domain =3D irq_domain_create_linear(NULL, 1, &irq_domain_simple= _ops, NULL); if (!adap->irq_domain) return -ENOMEM; =20 diff --git a/drivers/i2c/muxes/i2c-mux-pca954x.c b/drivers/i2c/muxes/i2c-mu= x-pca954x.c index db95113..5bb26af 100644 --- a/drivers/i2c/muxes/i2c-mux-pca954x.c +++ b/drivers/i2c/muxes/i2c-mux-pca954x.c @@ -442,9 +442,9 @@ static int pca954x_irq_setup(struct i2c_mux_core *muxc) =20 raw_spin_lock_init(&data->lock); =20 - data->irq =3D irq_domain_add_linear(client->dev.of_node, - data->chip->nchans, - &irq_domain_simple_ops, data); + data->irq =3D irq_domain_create_linear(of_fwnode_handle(client->dev.of_no= de), + data->chip->nchans, + &irq_domain_simple_ops, data); if (!data->irq) return -ENODEV;