From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 E784D33C1AD; Fri, 7 Aug 2026 15:25:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786116307; cv=none; b=n2LQ3petZ0H8VJ3/weIDqs/Y2kFvlVc4wxlwIhiio2L2B1Odis8ZQPJoUnncU5r0rbKSngg4GctBAuNFSSHljV1fsbh+7lNxQiwr6rlZ6cUTfhrcEwtUJ7kbLH0Fxn3frq52C7EHbCo6FVMCkqRp4/Lw1fg4SgaUz/NAb2qJ+Hw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786116307; c=relaxed/simple; bh=WeC79FtFWX1N7G6Kj83fqXzXY0f9h8N+9o1Nb+VgKSk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=CKZF3Mhs+WUJ45M23mgnmD6+ZWdcLCVNXS7o4tfUJ+wOB0B+D9RSqSSS1mA4fp+QsZIPytTxkrzrDPGb5ha3d6bCXkFNi7TqzB+cVGiewA3G2vBrWAXHOokf6K4Ub1pmAXul+8vV/g/wA59l76Van82SKpgqD00+XPbymCt7l7o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LkVreCrx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="LkVreCrx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E6A31F00A3A; Fri, 7 Aug 2026 15:25:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786116305; bh=n2WLu96aVoSCKEZPAepGik6/D15jt7y+B3cxT9WqzTk=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=LkVreCrx0A8UVupJZjsQJIHrQMMqWTO2UenzNuembs4KxBRe2qwxic2O88cE0iu2R ZuejXBeFODd0fghJYBsymOzsSwM5eKiB81x+RWFfTKs1K6n2hTzXFDZQllFi79vVVw kZuUd0P3GQJajHyw6Nfa/91ndPzjGEsx24JC8j2I= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Avi Weiss , Pavel Pisa , stable@kernel.org, Marc Kleine-Budde Subject: [PATCH 6.6 185/261] can: ctucanfd: handle bus error interrupts Date: Fri, 7 Aug 2026 16:39:02 +0200 Message-ID: <20260807143419.355745231@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260807143415.358597922@linuxfoundation.org> References: <20260807143415.358597922@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Avi Weiss commit e74bae899529f49c0f375307983d12e8ecad7d4b upstream. Include REG_INT_STAT_BEI in the top-level error interrupt condition. BEI is enabled when CAN_CTRLMODE_BERR_REPORTING is requested and ctucan_err_interrupt() already handles it. Without checking and clearing BEI in the top-level handler, bus error interrupts are not handled or acknowledged. Fixes: 2dcb8e8782d8 ("can: ctucanfd: add support for CTU CAN FD open-source IP core - bus independent part.") Signed-off-by: Avi Weiss Acked-by: Pavel Pisa Link: https://patch.msgid.link/20260723074403.131575-1-thnkslprpt@gmail.com Cc: stable@kernel.org Signed-off-by: Marc Kleine-Budde Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/ctucanfd/ctucanfd_base.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) --- a/drivers/net/can/ctucanfd/ctucanfd_base.c +++ b/drivers/net/can/ctucanfd/ctucanfd_base.c @@ -1135,8 +1135,12 @@ static irqreturn_t ctucan_interrupt(int /* Error interrupts */ if (FIELD_GET(REG_INT_STAT_EWLI, isr) || FIELD_GET(REG_INT_STAT_FCSI, isr) || - FIELD_GET(REG_INT_STAT_ALI, isr)) { - icr = isr & (REG_INT_STAT_EWLI | REG_INT_STAT_FCSI | REG_INT_STAT_ALI); + FIELD_GET(REG_INT_STAT_ALI, isr) || + FIELD_GET(REG_INT_STAT_BEI, isr)) { + icr = isr & (REG_INT_STAT_EWLI | + REG_INT_STAT_FCSI | + REG_INT_STAT_ALI | + REG_INT_STAT_BEI); ctucan_netdev_dbg(ndev, "some ERR interrupt: clearing 0x%08x\n", icr); ctucan_write32(priv, CTUCANFD_INT_STAT, icr);