Article View: linux.kernel.netdev
Article #3864[PATCH net-next 0/4] can: don't discard the platform_get_irq() error in probe
From: Chaosheng Qu
Date: Fri, 16 Oct 2026 06:11
Date: Fri, 16 Oct 2026 06:11
57 lines
10521 bytes
10521 bytes
Four CAN platform drivers collapse every failure of platform_get_irq()
into a fixed error code:
sun4i_can -ENODEV
at91_can -ENODEV (also tests irq <= 0, which cannot happen)
janz-ican3 -ENODEV
ifi_canfd -EINVAL
sun4i_can, at91_can and ifi_canfd match through an of_match_table, so
of_irq_get() returns -EPROBE_DEFER while the interrupt controller has not
been probed. The probes overwrite it and the driver core stops retrying,
leaving the device unbound even though the interrupt controller appears
later.
janz-ican3 is different. The device is an MFD child of janz-cmodio, which
takes the interrupt from the carrier board's PCI device, and the driver
has neither an of_match_table nor an ACPI match, so it cannot see
-EPROBE_DEFER. Its commit message says so: that one is about the probe
not inventing an error code for a lookup that failed for another reason.
The patches return the lookup error unchanged, which is what the
neighbouring CAN platform drivers do, e.g. commit 057bd6168d98 ("can:
cc770: don't discard the IRQ lookup error in probe") and, from 2023,
commit 53b8d2be4d71 ("can: flexcan: fix the return value handle for
platform_get_irq()"). The 2023 sweep covered flexcan and c_can and missed
these four.
at91_can additionally has to split its combined lookup, because the
memory resource and the interrupt are currently checked in one condition
that returns -ENODEV for both. The memory resource keeps -ENODEV.
The only visible change is the error code for a device tree without an
interrupt: -ENXIO instead of -ENODEV or -EINVAL. The driver core treats
both as a failed probe.
All four apply with git am to mkl/linux-can-next testing and build
without new warnings on x86_64 with CAN_SUN4I, CAN_AT91, CAN_JANZ_ICAN3
and CAN_IFI_CANFD enabled; checkpatch.pl --strict is clean. None of the
four controllers is available here, so this is build tested only.
Assisted-by: LLM
Chaosheng Qu (4):
can: sun4i_can: don't discard the IRQ lookup error in probe
can: at91_can: don't discard the IRQ lookup error in probe
can: janz-ican3: don't discard the IRQ lookup error in probe
can: ifi_canfd: don't discard the IRQ lookup error in probe
drivers/net/can/at91_can.c | 9 +++++++--
drivers/net/can/ifi_canfd/ifi_canfd.c | 2 +-
drivers/net/can/janz-ican3.c | 2 +-
drivers/net/can/sun4i_can.c | 2 +-
4 files changed, 10 insertions(+), 5 deletions(-)
--
2.43.0
Technical Details
Message-ID:
<cover.1792118040.git.chaosheng.qu.linux@gmail.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347128-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-347128-linux-kernel-netdev=dewy.ru
From: chaosheng.qu.linux@gmail.com (Chaosheng Qu)
Newsgroups: linux.kernel.netdev
Subject: [PATCH net-next 0/4] can: don't discard the platform_get_irq() error in probe
Date: Fri, 16 Oct 2026 14:11:35 +0800
Organization: Usenet Network
Message-ID: <cover.1792118040.git.chaosheng.qu.linux@gmail.com>
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
logging-data="2699835"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:wrjYbkGRF7Ctbo8DLHusr5hQcbs= sha256:18AnEXElNuoE32mpZJTijDFU281n5Zjp4Ai/K7ftsrA=
sha1:6o9CgHrASAsOzAmeiXE+1+AGdTM= sha256:bCQfCrtTM73yuALmvWNpewRMXAgPdS9iuBXdOBSnduI=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
by mail.dewy.ru (Postfix) with ESMTP id 893BA11201E; Fri, 16 Oct 2026 09:16:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.748
X-Spam-Status: No, score=-0.748 tagged_above=-9999 required=6.31
tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
with ESMTP id e4omdRDFbzPx;
Fri, 16 Oct 2026 09:16:10 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347128-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
by mail.dewy.ru (Postfix) with ESMTPS id 52C26C001C; Fri, 16 Oct 2026 09:15:59 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
by sea.lore.kernel.org (Postfix) with ESMTP id 41A4F41BA1; Fri, 16 Oct 2026 06:11:53 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
by smtp.subspace.kernel.org (Postfix) with ESMTP id 3237F399003;
Fri, 16 Oct 2026 06:11:52 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="nNFGOOIc"
X-Received: from mail-dl1-f43.google.com (mail-dl1-f43.google.com [74.125.82.43])
(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id E9E9437DABD
for <netdev@vger.kernel.org>; Fri, 16 Oct 2026 06:11:50 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.82.43
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
t=1792131112; cv=none; b=qWUwkI5OOYwWM+dUpkwW29BjK9Wq6yqguzroj1MYBq+i/3xzf9Yy98lhNn7Ui+a5s+lS/nrL2wccyVEShZJae/ml9KxmtUU/ubX0Njo9wWmjvvADhgS/ac3zJQ7uZ1tj2n95Gxcs4Bw6anPrqo5hgpJZPdUOjRdxGYsyWuLCKO0=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
s=arc-20240116; t=1792131112; c=relaxed/simple;
bh=EJf7XbhKkvHllbC0gV+NBrRWaZCEquM0yuYvJXfnYIg=;
h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=i44LtKj4hju373uNTt7vagg4ikjfWG5O85tuoseHCPi4PgoCAeGf8+HzIelW3mjGce0NSjyjGgRFG03TC+IJ75PJhtC/gUqPYkxRZub77DKCY6eYlYvnYmLZ31irKYSBIBvV/R1nRPsoor7SYU67cHuuMXc2p9wZ4eoOhToAktg=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=nNFGOOIc; arc=none smtp.client-ip=74.125.82.43
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-dl1-f43.google.com with SMTP id a92af1059eb24-1419d3416ceso4983998c88.0
for <netdev@vger.kernel.org>; Thu, 15 Oct 2026 23:11:50 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=gmail.com; s=20251104; t=1792131110; x=1792735910; darn=vger.kernel.org;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:from:to:cc:subject:date:message-id:reply-to:content-type;
bh=61F7VlL8GG8+4/XGP5lm/szHzOUYPutMS6YONNAlbY0=;
b=nNFGOOIcPHu9g23AvqaWFwA2bJYi4r+Rd0eOzUALzgxfwrdeO9SDSg1eosnlyIb1wJ
SY3j/4eQtUSB1/ayXCS1k4Pkz3wk0pFCD4VOm9RSkokmx3vvFKTDrvKoXiQdmZsSxdBv
2guBfZb9gP0SH7X/NRYh550j20IHMsryoQDgFDY8VuNtm/UNQXDXrjKJzbYP+IhKmNET
i/9Ytua+Nn5EEtmnNa7FsvW508wUGs16DsLPV7H3DCRZqoTolHTBE5wUOCVPObH1Ptvt
jEE2npARAoXY8vD+Yy+x/IOkmZfbC/E30Ggw+hlKZAHHzgQ1UgWIB7YbVcCUp2oWK7eJ
Ls/A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1792131110; x=1792735910;
h=content-transfer-encoding:mime-version:message-id:date:subject:cc
:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date
:message-id:reply-to:content-type;
bh=61F7VlL8GG8+4/XGP5lm/szHzOUYPutMS6YONNAlbY0=;
b=h1z+MkVU7BvZ/Uo01V2R2UpXtCcASgSqgYlQ/TrIJNnjZ1WN2QYFGtQUn9eQjhR/H7
cd6sLrSnlCVqGdF8CBxTyTS+ASj5VWmHLI4XzYqvb3BQNSWwtkELEIO6tfup27ALvuHu
M0sSpnCvdKzL9G6HdwsKr7Zwq5xr/nALQgsKeaDBtN3DnZpzpVjIwEejS+W9sgEOkkdq
x2bJWdQHaS3usyLTHt14uwgDDfR1BYMoJnmiHwfK4mYkcAZi5tTlXiBbqqesP3ViFVm7
eagi9D414x4c9qCpiBcMN+zfFJ71R6tEUEtpRtyK8Ss5WtVYVTCJIdIFwtgbFhrh9DOz
Eh9g==
X-Forwarded-Encrypted: i=1; AKwUvBwPjVcHtFTHSuSDWQMoOZLXQFS040Ft+8svqQCkb3uNTRtfPOFh86E7xIPnFxG4pFtonVpb5VM=@vger.kernel.org
X-Gm-Message-State: AFq9FYIGdDDcaK2gD8mcrABPlOfyxo3OR8xcL97rdEAY8LfrozGadiNw
Om9DfJp04EUBoTlJdyTtSriwMCp7k3ve9e8jv5YFGeJYyF/ls47RwqNU
X-Gm-Gg: AYBFou2Vha27oFlXLUCxmQ8SrMFTg+LWkB6vXdi2vR5Xp6k3/Z4OilMIKvf+jczD4MU
ejL9CHu2MfFI9nlqJL7I2V38lM/O1mcrFYOl/q5JirCo8BcFPMzsfXOAHBn9bZVEQH6EZLhf1fF
YkYjlcvvAUitaQXkMAvLYC2ACQm3n+8R8ePqgdsncLy88+G49QW7KCcQfU7iR9CBp0UJirszb1l
u2pKMv0V3JnXkeNh1+M58ZCzQBKN6UmTzWOjWZoxkgCXnaYMowWoMmfjl6KRl6DLb1t7cl5p7J7
a4YkI2gdAmvrjpYlkUU1fd3I23fzPORauP589HTTPoNd6e0jzeax6TEaLCCaL28XH+HUuFhT6sM
A5Rb18WhNZ0ZmjIj6s5WL/PAszs158ZFCPpeEnOOz78/enRLlS3LneRihjoL8KEXcSQ0V1xhF2F
Uw2dzBJhBnVR3sirWwAmV06o7hofqkzP7PtkoL7XQqZCgR67gHT8so0cExPqeklfbpOTV9sVkCm
fEDvZpJajn5N+GBfVad7aTKx/pJg7NURm17RpJJEeao4FfqzSZAAvs7kQ==
X-Received: by 2002:a05:7023:a56:10b0:143:46a6:b01f with SMTP id a92af1059eb24-16a6203dcf1mr27805573c88.31.1792131109882;
Thu, 15 Oct 2026 23:11:49 -0700 (PDT)
X-Received: from chaosheng-ASUS-TUF-Gaming-F16-FX607JV-FX607JV.lan ([183.242.161.82])
by smtp.gmail.com with ESMTPSA id a92af1059eb24-1831acba710sm3755480c88.13.2026.10.15.23.11.44
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 15 Oct 2026 23:11:49 -0700 (PDT)
X-Cc: Chen-Yu Tsai <wens@kernel.org>,
Jernej Skrabec <jernej.skrabec@gmail.com>,
Samuel Holland <samuel@sholland.org>,
Nicolas Ferre <nicolas.ferre@microchip.com>,
Alexandre Belloni <alexandre.belloni@bootlin.com>,
Claudiu Beznea <claudiu.beznea@tuxon.dev>,
linux-can@vger.kernel.org,
netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.43.0
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>