From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gloria.sntech.de (gloria.sntech.de [185.11.138.130]) (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 548063D6692; Tue, 30 Jun 2026 16:44:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.11.138.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782837851; cv=none; b=tTBNPHuLG53dJJjjPFwSS/EZOAq3Ay8thAvbO4Iji1M0bze7dmIXpGXJJnWqVkB722ijSy+8lKHwPaE908HkMV4nfaN0/i2p/K3pTbAKgqV1XeWu7AnbBfEtxpMsdGp+hsYkLaiV4Cd+6mE7vxnaZAvbCDII6AMBAZR+H2Jg19w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782837851; c=relaxed/simple; bh=xPTKnjYhG/klSu1C/iRiS52JiMJTkVUQXtrZFmc9eZ8=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=X4xPC9HWXfXzuy1828rVQghg2ntZvpugTqog3aKLYhHm1zFlSEESMsb5XCyeJZvdCytWxrRXRb9Tit/LtmKlnk8pqUmMBdPkzUNZh5/vS45Sa8c0RZ0K4jZWYYRJZPExNiBVyJixSxZMvlcdxiRtdAdN5ye5pjlqmH55yfpyD3w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de; spf=pass smtp.mailfrom=sntech.de; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b=ra4IZzyc; arc=none smtp.client-ip=185.11.138.130 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=sntech.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sntech.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sntech.de header.i=@sntech.de header.b="ra4IZzyc" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sntech.de; s=gloria202408; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-Type; bh=iQBy/o37l9sudMeWSCTCpjVQ/V1ougLIUohroSPHPK0=; b=ra4IZzycLMlAALjhjKyzC+Wy0q 41zyiJleGla0koqeyiUVgLfeYR86pfv5TZyE/8orGe3kdgLl1NiYkWj2KAMUvHstoBhcA7mquLB33 D/x935HbO+vobPy6KV4bNyNokvmpSWgiErM78FO2IwPrYRTucLaZxD+8NhAqPjyKI8QWdF33h73eL PwD0PEwVCFxVoTu2IfvZgeiTEPz51mynoc4frt8rNET0MOlWkqD2ZA4O9KgokITRk37MBqp48ASJ3 Co7Fk23AyHDtntqMsy4M0aon264qT8X+1U6KXJIRFwSGaEtjEp83G6NhtSCTQEYEh61swonUVC6/e +4z5AsbQ==; From: Heiko Stuebner To: mkl@pengutronix.de, mailhol@kernel.org Cc: kernel@pengutronix.de, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, shawn.lin@rock-chips.com, linux-can@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, quentin.schulz@cherry.de, zhangqing@rock-chips.com, Heiko Stuebner Subject: [PATCH 3/6] can: rockchip-canfd: enable erratum 6 on RK3588 Date: Tue, 30 Jun 2026 18:43:33 +0200 Message-ID: <20260630164336.3444550-4-heiko@sntech.de> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260630164336.3444550-1-heiko@sntech.de> References: <20260630164336.3444550-1-heiko@sntech.de> Precedence: bulk X-Mailing-List: devicetree@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Heiko Stuebner Sending extended CAN frames from the RK3588's CAN controller, sometimes sends standard frames, as explained in the erratum's description: can0 00001234 [4] DE AD BE EF can0 00000001 [4] DE AD BE EF can0 000007FF [4] DE AD BE EF can0 00000800 [4] DE AD BE EF can0 1FFFFFFF [4] DE AD BE EF can0 12345678 [4] DE AD BE EF can0 234 [4] DE AD BE EF can0 00000001 [4] DE AD BE EF Enabling the erratum, introduces the correct behaviour in re-sending the frame: can0 1FFFFFFF [4] DE AD BE EF can0 12345678 [4] DE AD BE EF can0 234 [4] DE AD BE EF can0 00001234 [4] DE AD BE EF can0 00000001 [4] DE AD BE EF Signed-off-by: Heiko Stuebner --- drivers/net/can/rockchip/rockchip_canfd-core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/can/rockchip/rockchip_canfd-core.c b/drivers/net/can/rockchip/rockchip_canfd-core.c index 707f387e7cf4..105ca4d5cbef 100644 --- a/drivers/net/can/rockchip/rockchip_canfd-core.c +++ b/drivers/net/can/rockchip/rockchip_canfd-core.c @@ -53,6 +53,7 @@ static const struct rkcanfd_devtype_data rkcanfd_devtype_data_rk3568v3 = { static const struct rkcanfd_devtype_data rkcanfd_devtype_data_rk3588 = { .model = RKCANFD_MODEL_RK3588, .quirks = /* Possible more Errata */ + RKCANFD_QUIRK_RK3568_ERRATUM_6, RKCANFD_QUIRK_CANFD_BROKEN, }; -- 2.47.3