From patchwork Thu Dec 3 17:18:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dario Binacchi X-Patchwork-Id: 5163 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id B44FB3F3B1 for ; Thu, 3 Dec 2026 18:19:41 +0100 (CET) Received: by mail-wm1-f70.google.com with SMTP id 5b1f17b1804b1-4a16dc2323csf103635925e9.3 for ; Thu, 03 Dec 2026 09:19:41 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1796318381; cv=pass; d=google.com; s=arc-20260327; b=nccZ7ISNhkGWRjSSXZP0k0NceWODYVXb5mILGY1VCSIRShQU7j0ZslMliXuLfvqScD H3qJVk1slXRQ6ntTYiVIyoUcWMxydnvbNjq5F2G5A3dW0WpmEYGHSZirXLTwAC2x+k75 cURNtn8CZCeLsEoRBfMP1MMwRvbk/x8mrcikxXMFJ2KZNas1WMBcOxWyl2y6/i3Y2DQC g+zisXEjUVYwDBs615HfJHM0MsUeIKnoCVgp1k+Qms1Fo3W1PuMRlVROkB8wu8N/n8tu bUyCtXbI6mCJYAgDvSOTqRbwC92srV0CXNghtYH5GKbeIqlhV0KICiOesbjUNn2pR6ty Vfcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=aUP7/BaGYU7Xhk/7fmHZaH3SLpA6E8BnNO6JYk7I2/Q=; fh=z4e8AuwAetEHVSoEVccmbif/oe6ak74xQ5BczKH13Lc=; b=XAs5p0JpwAUt4Bz8pfd3qfZ6rfq4SKBuCntofcg303Jhvv3PzZGBHmDDAulRmeFT8W QTTzpTu6OCtIaWrlrGTZCIEmnpDCdNJc4i4YKfIxtfeAA8zg2FvNoXQzc0q5HAiTY5VD uS++dTAYk0DQmashyqb8LAOOF2abfx8moaQZlh2m8Y+ArzorMaCqMMDNZLNXiQiz/DgB JHrmR40f4dNh1c2fcXMlO3/YaZSS44woBci6Lb+89QtGlmEsoQlUBZn2jyecgbo1osmI 06+xDJn5t5af8xGy29IW1/I2QzLLb8sMBpWr+5LmwJYtVhAoBo056BI5KTPSdEs22kU/ hR7A==; darn=patchwork.amarulasolutions.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=P1rTM8ZD; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; t=1796318381; x=1796923181; darn=patchwork.amarulasolutions.com; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:content-type :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to:content-type; bh=aUP7/BaGYU7Xhk/7fmHZaH3SLpA6E8BnNO6JYk7I2/Q=; b=Wm+wSJ9EXLSeuH1Zl0o3acyucpHB9M/fJl+Lso+jdgTd66DZUerRDe5cz+9phB1Zv5 hWSVmgk1faRg4V+W7g/KTAjKB+fcPMbKpznWZj+bWJyZTToJCkO+0uXXJ80h1PVyfXc1 Sn96D8x1pKpiUDvH1FtTsdOhLLphCzvzwaXhk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796318381; x=1796923181; h=list-unsubscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence :content-type:x-original-authentication-results:x-original-sender :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-gg:x-beenthere:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=aUP7/BaGYU7Xhk/7fmHZaH3SLpA6E8BnNO6JYk7I2/Q=; b=P27+Pv91Qdw88rfc4hwHHfFmf9FA/nMUCCT99jXgtU50xwdiNs39d65QdTR0GUobuf FD43eno2hp5L36RDJz7xulaX3WaqgKZb0MFQr7t9/jqfDKAZlKRxCu9yEZ0xWsn5FG4V XYvq7PKynLZs9GsVGoL2UC7EWuMp6z6wrknjjDsWpjIagqV40cTM6OBxUKchDsxJc/1c fPkc5r1SXa7Dct4Qyvtw6Ei6GjfwF4/fOV/s0hj4VKv80fE1o+hZz1V4gni7noJGVli3 4xNILQOLjbWKhSm+CK+kkdID3LMkd4e70kSDkDny/oWN2yOs7G8LGkIk20rLo0ieE/3e mveQ== X-Forwarded-Encrypted: i=2; AL+hErGgv1SIIFKZ8OIx+vZvHUH7nyIN5fvnYDmsFdP3SkfixXTkd36c3B3vpl5frtF9zT8+/E9aiDVMdb/PGdrP@patchwork.amarulasolutions.com X-Gm-Message-State: APuU4Z8340+9o/RdQN/yodKZs5RjQ3On5bGg3G9yW9MuhvludAaOxkmT 1HCumigBANuUN6zrOvDp6YSNSvF3G+/oypvYpjfX+GIp+Y141RfdbHrKNHZbBtQAc6Sa4w== X-Received: by 2002:a05:600c:3b10:b0:4bb:db77:2a5f with SMTP id 5b1f17b1804b1-4bbdb7730aemr103111305e9.28.1796318381261; Thu, 03 Dec 2026 09:19:41 -0800 (PST) X-BeenThere: linux-amarula@amarulasolutions.com; h="ATskLdfXavwMwNOeB938kH2wgbXnGnGAACyqaf8qOCTMPF/nfw==" Received: by 2002:a05:600c:3b85:b0:4a7:a5ad:69e0 with SMTP id 5b1f17b1804b1-4bb88f1afe8ls6514555e9.0.-pod-prod-02-eu; Thu, 03 Dec 2026 09:19:40 -0800 (PST) X-Forwarded-Encrypted: i=2; AL+hErG4vzkCW604l5JoSKeG54Pk7YkSqC0E3PNtIKEmqCwcIyjy19t73J2wkO5O4NOTjui9CMv4AB4b/n2qQHV7@amarulasolutions.com X-Received: by 2002:a05:600c:8210:b0:4a2:1a:a116 with SMTP id 5b1f17b1804b1-4bb887865b5mr893420605e9.0.1796318379899; Thu, 03 Dec 2026 09:19:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1796318379; cv=none; d=google.com; s=arc-20260327; b=YnjVzeJgpzXk9DnAkytcDWRXiur0Ru8IfOdsAGIzsSJ89OjpPSfWVvJjrQ43ceoQle so6cd/A+sn/U/+EyHqSLpPowuDHHyvmj1Xb4ECezCenZp93fAYxLrF1ZgDAaDWczI3uS yNZfJNu8ubKoGKh1Pm5PSYxg3vb69g0Exp8KqJd1bu8lW7IHf0qzIIWQRpfIT9gBhynq 1DwGDlGJOzSKtI6AucuDXxM++xt66QsMnenFEmZZFmhV61pFDwreI6QayeO/Grweq8nB ZK5M6hfQj95zzXVYCgNJCW/7zfeGaNu3FT6KjoQGjeD1dA6wJ+YZPNdDc/hBF6ZyMAap D46g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20260327; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=Mjds9beD7hNXw4N+7dAnHrvj+mEs383a9Pss5KSkwMw=; fh=iLG4ibNp3VEFaTZJ6FbLxUoxyn3UmC+Fpd5FSodjQg8=; b=gSkLaqjXH8I+0bKv9lHc0G7HQgsOdHTzBiRRXX/pCYA6zt67EGq+yLG5DGhXTXPE3Z NKlRNWnQVBL92mHh0WVEYwUXluN7NTktQdCq4I+akncm02PHlkYS9ayeJpLL/MTtO37/ no20/+nNyH7z8P7BHkeZeZoQ4fKaqntoAAFJJhx5N+f2S81dIM9f/tyuPig5NXsRfxFa FYT1rV4p2l60BZsuwTVBbqV3wLNqRuoK1e7kEH+h3qK/wv0hyOXZfN/ajEWzp+Ai0fNW jHbOowVBhpYM4MoIlCwEl9ZPXnQ/MLeU+L9WgRIg1fgP9ZvTzN0h05NYULlBPxL4N0jX 1e/g==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=P1rTM8ZD; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Received: from mail-sor-f41.google.com (mail-sor-f41.google.com. [209.85.220.41]) by mx.google.com with SMTPS id 5b1f17b1804b1-4bb89bd6470sor84074025e9.8.2026.12.03.09.19.39 for (Google Transport Security); Thu, 03 Dec 2026 09:19:39 -0800 (PST) Received-SPF: pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) client-ip=209.85.220.41; X-Forwarded-Encrypted: i=1; AL+hErF9H1wyjthVySzDkwsf33d6cbvUKHI72F72BH7S9BY9Azf2WyGo/PBBVi1ZmQXWZGcBRvfkUTjiM6RkO00R@amarulasolutions.com X-Gm-Gg: AZFdTZdQVi9Tm7KhVZL7QVxgDLkP8Y3T9+DOldH9HSrtx8gYXQU9z7KA7kPUWzbNG9A W7r/+3dGB2dDx5Yo2wx/AuLuQWMOsL1C4lcvIGUHKS5567UvM5QRdzUhWMM6FT3MuxyG2Hjxil5 51v3MRxal8fD6FGgx7oigwbFrLMIwkPSDGFBncZ5E+canJz/0e4h+Pa/mO1wEXMBaDy+dLVPpkJ Pp26CexfE5+sZWs5duatTC7xLfVcW1p0NB4r7jmc0CuGDVf1rUCZpShdIgsupGSu5uvl2OIKr7c qJMrvnE91YduUPjZ/QP8cKE3qT2DGNcqfiikwy4ao9m4ABaXZn0rlUvo8cgmDmOKjzP9o5KNBL5 rOJv+D8pyjKmF3e7xT7BYZqTfyhnA4uLLwWpwOhxIYcWOT87zQI7nSFPNO/cA0Ni28FoRHdegIl Iastb7FItSM3Em/7TBipDlu2hGlrWBrxz2gRkqZTpk7WQFYVEUoFaXXY4UVYZTi/cVsWI+7i4At VZDlmZdN9O/uDEk4AZnhwAI1wZI7R+E3bGjQ/hnZSwpfIIErvBUs8NdwKpzz25RjMShFtrYZ8EF 5q+YEwQ2flGcPZUoN2RBCBbLJlxPNFHDnwaQAXjm5aAXSXIOnLmWMj2mxPcGmEF/3TA/48ix9QB j/goRGHHX7Lo0CtAeK105zTque1aNsQUEf7qZtqeCJSdCnwbRnktpCuAtReJYEAa8ZR9BL4joyT 6Vco8mTPrPXN6vhUgvRAMnfm0bdg== X-Received: by 2002:a05:600c:6749:b0:4bb:5f95:c014 with SMTP id 5b1f17b1804b1-4bb8880f283mr867649285e9.19.1796318379487; Thu, 03 Dec 2026 09:19:39 -0800 (PST) Received: from dario-ThinkPad-P14s-Gen-5.homenet.telecomitalia.it (host-79-14-29-58.business.telecomitalia.it. [79.14.29.58]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4d173ab8e3fsm329012f8f.42.2026.12.03.09.19.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 09:19:38 -0800 (PST) From: Dario Binacchi To: Patrice Chotard , Patrick Delaunay Cc: michael@amarulasolutions.com, Yannick Fertre , linux-amarula@amarulasolutions.com, Dario Binacchi , Kory Maincent , Tom Rini , u-boot@lists.u-boot-project.org (open list) Subject: [PATCH v4 24/29] boot: extension: allow longer overlay file names Date: Thu, 3 Dec 2026 18:18:09 +0100 Message-ID: <20261203171852.62649-25-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com> References: <20261203171852.62649-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: dario.binacchi@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=P1rTM8ZD; spf=pass (google.com: domain of dario.binacchi@amarulasolutions.com designates 209.85.220.41 as permitted sender) smtp.mailfrom=dario.binacchi@amarulasolutions.com; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com; dara=neutral header.i=@amarulasolutions.com Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The overlay file name is limited to 63 characters, which is too short for the Linux overlays named after the base devicetree, such as: st/stm32mp257d-engicam-microgea-rmm-overlay-am-1280800w8tzqw-t00h.dtbo Increase the buffer size to 128 bytes. The structure is never passed to the OS and all its users size the overlay field with sizeof() or strlen(), so the change is safe. Signed-off-by: Dario Binacchi Reviewed-by: Kory Maincent --- (no changes since v2) Changes in v2: - Add Reviewed-by tag include/extension_board.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/extension_board.h b/include/extension_board.h index 0b9fb99ad7dc..f72db21441da 100644 --- a/include/extension_board.h +++ b/include/extension_board.h @@ -62,7 +62,7 @@ struct extension { char name[32]; char owner[32]; char version[32]; - char overlay[64]; + char overlay[128]; char other[32]; };