From nobody Sun Feb 8 20:59:40 2026 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 E6129309EE2; Sun, 18 Jan 2026 10:03:04 +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=1768730586; cv=none; b=ozjGRen4yYILAFhgnStxLxV91xn8DqiAvG3DYRM01Iv561t4xySjd3BAN0udLItGkalYA+mdaf6F9XJ/lJ1j76n0f2K0qlM3M330mzi0vBdeLlBygB2ALjbqY1M5Bh/WhpZTYDDdaP+FiMnzv+nWP4dSkZaro7tD1fQ6rlTaA5s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768730586; c=relaxed/simple; bh=emo/HHcb6SvA7Dsz0hf3yAHrxbNZXe3T6t3PY2l9X+k=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=tj6fRwZ4U69s+3zjVbL7RxHqGybkrjCwifYCSfUiGsFXgaJ9CqwNVFmhTOw6AEoWJa8kx42hfuhvWZc3bAo5jGYD8SSv79JVJ5RTytMeKUCk7CpR5S591E83rJlu8ZDvxt0ywkx7jYa/NPh1jUqDBEOSTxiNCFdYvvnVfgbQfmE= 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=vN/C2bsY; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=BLTJtoYN; 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="vN/C2bsY"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="BLTJtoYN" Date: Sun, 18 Jan 2026 10:03:01 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1768730583; 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=wW3yuylvGuHOJ29B5ro0LmFqPzAm0NhxRBX/1un2yE8=; b=vN/C2bsYF8raw43WAvGv0aYFAc+P3gtoAcAf6Y+0WzsJG4kViDtKrADvT5R23e5p2g4ANN ZCowTA8JkzGOa+PmAebQfO9Vs2cTr2l9fADLRxOgNxKc52w2XgCkv3yUWKuKO9xKRpZyLe upd+CumrUyZDqSHAfRRt9LRKFL9WeNmZp+u4cxKjXTyb9JyZdWUEiIhVGI9jLNDENHP3Py krO7rx2FJy4DYMDoEjPN5CRjBwqjxXkAqCpxhwa64LtPTPVo5XfJCWu1egBrSeIwlcuqr3 hFXobs3wtD1uLx7sr/Ze5CvAKqoXA2Z+Wfiwlm9RsHzctcmKV/E50O6IvsvgIw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1768730583; 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=wW3yuylvGuHOJ29B5ro0LmFqPzAm0NhxRBX/1un2yE8=; b=BLTJtoYNlXCgDgGusMi0CNP92Bu7SXq+jdJkXy6svEEs6/s65itooUz/W4pTT/tdTuyWW4 x8ERP6vJ6k9n7EAw== From: "tip-bot2 for Huacai Chen" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: irq/drivers] irqchip/loongson-htvec: Adjust irqchip driver for 32BIT/64BIT Cc: Jiaxun Yang , Huacai Chen , Thomas Gleixner , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260113085940.3344837-5-chenhuacai@loongson.cn> References: <20260113085940.3344837-5-chenhuacai@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <176873058176.510.13214356659129789262.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/drivers branch of tip: Commit-ID: b74d64e65b775ab05efe7bb4a6ca1b4edb923351 Gitweb: https://git.kernel.org/tip/b74d64e65b775ab05efe7bb4a6ca1b4ed= b923351 Author: Huacai Chen AuthorDate: Tue, 13 Jan 2026 16:59:37 +08:00 Committer: Thomas Gleixner CommitterDate: Tue, 13 Jan 2026 19:32:02 +01:00 irqchip/loongson-htvec: Adjust irqchip driver for 32BIT/64BIT irq_domain_alloc_fwnode() takes a parameter with the phys_addr_t type. Currently the code passes acpi_htvec->address to it. This can only work on 64BIT platform because its type is u64, so cast it to phys_addr_t and then the driver works on both 32BIT and 64BIT platforms. [ tglx: Dereference _after_ the NULL pointer check, make the cast explicit and use the casted address as argument for htvec_init() which takes a phys_addr_t as well. Sigh... ] Co-developed-by: Jiaxun Yang Signed-off-by: Jiaxun Yang Signed-off-by: Huacai Chen Signed-off-by: Thomas Gleixner Link: https://patch.msgid.link/20260113085940.3344837-5-chenhuacai@loongson= .cn --- drivers/irqchip/irq-loongson-htvec.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/irqchip/irq-loongson-htvec.c b/drivers/irqchip/irq-loo= ngson-htvec.c index d2be8e9..5a3339d 100644 --- a/drivers/irqchip/irq-loongson-htvec.c +++ b/drivers/irqchip/irq-loongson-htvec.c @@ -295,19 +295,19 @@ static int __init acpi_cascade_irqdomain_init(void) return 0; } =20 -int __init htvec_acpi_init(struct irq_domain *parent, - struct acpi_madt_ht_pic *acpi_htvec) +int __init htvec_acpi_init(struct irq_domain *parent, struct acpi_madt_ht_= pic *acpi_htvec) { - int i, ret; - int num_parents, parent_irq[8]; + int i, ret, num_parents, parent_irq[8]; struct fwnode_handle *domain_handle; + phys_addr_t addr; =20 if (!acpi_htvec) return -EINVAL; =20 num_parents =3D HTVEC_MAX_PARENT_IRQ; + addr =3D (phys_addr_t)acpi_htvec->address; =20 - domain_handle =3D irq_domain_alloc_fwnode(&acpi_htvec->address); + domain_handle =3D irq_domain_alloc_fwnode(&addr); if (!domain_handle) { pr_err("Unable to allocate domain handle\n"); return -ENOMEM; @@ -317,9 +317,7 @@ int __init htvec_acpi_init(struct irq_domain *parent, for (i =3D 0; i < HTVEC_MAX_PARENT_IRQ; i++) parent_irq[i] =3D irq_create_mapping(parent, acpi_htvec->cascade[i]); =20 - ret =3D htvec_init(acpi_htvec->address, acpi_htvec->size, - num_parents, parent_irq, domain_handle); - + ret =3D htvec_init(addr, acpi_htvec->size, num_parents, parent_irq, domai= n_handle); if (ret =3D=3D 0) ret =3D acpi_cascade_irqdomain_init(); else