From patchwork Fri Jan 2 00:50:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1181 Return-Path: X-Original-To: u-boot-concept@u-boot.org Delivered-To: u-boot-concept@u-boot.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315141; bh=BLVge++0MGgPsDka5bCOAqKQ4QojhLPlWHcPpRZNPvI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=QJJX/UAI/MZ3aB6mw26EJmK5tkw0nI9cnPI32RN0+Ri5u1spAUJqzfydJWcS01fkB VXCbIr7RbZ5Fe0RLsBxdcmTnHM/Uj+NCvxXyHrgQjnzgu6SsngyGpUQgcLqPvyzoNB m7vA7RET/FbYierVxSQSQ10SaNJmA4W4L1jwzCBzaIaLJP3LVrjQfFLp1un3OHQUol N3Si/oma+BvDtuuc4mcTDeoQGDgksUBZEYEsK8n6JSkzEhWWaN18cDZzRLGsNPKMAF gUsv5+9xh1mNWkP0Y40ppNTkJ2QwGffqjCrXFGFl7M8nFfSn+DSvbFgvG8xkZXvbXM U5GDk2BJmy1hw== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 7EE786901F for ; Thu, 1 Jan 2026 17:52:21 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id PZnhVBO8y6w1 for ; Thu, 1 Jan 2026 17:52:21 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315140; bh=BLVge++0MGgPsDka5bCOAqKQ4QojhLPlWHcPpRZNPvI=; h=From:To:Date:In-Reply-To:References:CC:Subject:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=JvJYabi7eTedZ5AkOBVAcduupY/TE4b0tp95qd/jb4Lhi42vNuCYFeeF2Ix+v9HC8 wg4SGPQXCRWjQ09t4NWO04oN3ebUc0d3Jxmy1OD89KY9VCIKNX8TlNTTzDLIqF4ZRQ LVpuRnPggsFDHcTL0p58VvxNGW5Xim8abiN8N7LwsgQXXv+bkmQhK4E+qtRKNx4K6r iJ5FE+uSTkelvnlsjotA4AYKgz1/zbDI+/mlBdV8MxIAi6nuZkIZOljadXpIesPJmC kUjjJVqklLYpBQs3/1O38HWrEWEmxCEfnSEWvwTRUo53eRLGvH1ONny71AOfoarMy2 ng/yDrTLw7vIA== Received: from mail.u-boot.org (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 85E8D6902A for ; Thu, 1 Jan 2026 17:52:20 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315137; bh=+TjswyAogVdtr9DVCi9Rzr60mJa2ra8FzV2cDwu7kyc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YbBwT/TZBJ2h52ZdKK/qhv7avvJ+N2VeRI4NHKWnSuqV1M1ATrAFDeHIO8bv88N3S woGkRasXe4ykp+FFVIKCxkx3rjsM+SjGOFh+f/8MgC8JgIJf5E2vqzrUz2VafRYtqW u0soXzpOrcqpCuHIjU9SeXzU2N6uJQGLHESzysumOlHLz3+Z2/53dSbA6pMTqF9m8V Q7C+6Jf06scAduL9ccpGyT3M77Z6VwauxQWy2r0qcBrm1YLbuBs11h+/Z3mUnUYzpP ajUh3HwqmpTzQr1sPnaqtIoBp4mAWhlGIuS5CXUYcT5tfOq9QIB/8DZzOZ4/XW446e wtgj76e+CA99g== Received: from localhost (localhost [127.0.0.1]) by mail.u-boot.org (Postfix) with ESMTP id 748CC68F58; Thu, 1 Jan 2026 17:52:17 -0700 (MST) X-Virus-Scanned: Debian amavis at Received: from mail.u-boot.org ([127.0.0.1]) by localhost (mail.u-boot.org [127.0.0.1]) (amavis, port 10026) with ESMTP id 3C8RlEZuZ0tK; Thu, 1 Jan 2026 17:52:17 -0700 (MST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=u-boot.org; s=default; t=1767315137; bh=+MxqFUx5rKWuode0MaJsAzxufJoH44Ekndq3gFkTjSE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HKcfaTvLgt9AeG+Ps4RUWQRqmfHHmg0c2F3AwdPu6l6E0saYQapJbvB7W/39OYLnI 31Q5TejkfpsUy4Tp0cimXGdTnvbRZ+kaHG3YlGQ6brwOZJFu7rOIw4CQtydbIbmlj6 FcXqbDF6HXfo5jlQvfkErFFHvtIHsCVljPB5qnpHMSqEJtf1YwU63LcPiZ7ELFULYC YV9d6N22IEBr491SiOmr53VxKXHN3ZUSLmNSQg5G46iq47/cxe/oF0E3mLHFkM0huR f3ogHxcrjAhrdj400+rn439D/1xWcQSM+K4cXEXDDsHadAipTsSfi6sR422mAYFUQE 6f8kZbkI+rrgg== Received: from u-boot.org (unknown [73.34.74.121]) by mail.u-boot.org (Postfix) with ESMTPSA id AE5D168F56; Thu, 1 Jan 2026 17:52:16 -0700 (MST) From: Simon Glass To: U-Boot Concept Date: Thu, 1 Jan 2026 17:50:47 -0700 Message-ID: <20260102005112.552256-18-sjg@u-boot.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260102005112.552256-1-sjg@u-boot.org> References: <20260102005112.552256-1-sjg@u-boot.org> MIME-Version: 1.0 Message-ID-Hash: TUMOY3ZP6GAT4GLXVEYCOTL3RZ7ZLATM X-Message-ID-Hash: TUMOY3ZP6GAT4GLXVEYCOTL3RZ7ZLATM X-MailFrom: sjg@u-boot.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Heinrich Schuchardt , Simon Glass , "Claude Opus 4 . 5" X-Mailman-Version: 3.3.10 Precedence: list Subject: [Concept] [PATCH v2 17/30] ext4l: Use the real crc16 implementation List-Id: Discussion and patches related to U-Boot Concept Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Simon Glass The crc16() stub always returns 0, which causes group-descriptor checksum-verification to fail for filesystems using the old CRC16 checksum algorithm (gdt_csum feature without metadata_csum). Replace the stub with U-Boot's real CRC16 implementation to allow mounting these filesystems. Co-developed-by: Claude Opus 4.5 Signed-off-by: Simon Glass --- (no changes since v1) fs/ext4l/ext4_uboot.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ext4l/ext4_uboot.h b/fs/ext4l/ext4_uboot.h index 4cfe9e6de89..1c87e2a1181 100644 --- a/fs/ext4l/ext4_uboot.h +++ b/fs/ext4l/ext4_uboot.h @@ -2153,8 +2153,8 @@ struct fs_parse_result { /* ctype */ #include -/* crc16 */ -#define crc16(crc, buf, len) (0) +/* crc16 - use U-Boot's implementation */ +#include /* Timer and timing stubs */ #define HZ 1000