Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id A5091C282EC for ; Tue, 18 Mar 2025 10:51:00 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 36086805D7; Tue, 18 Mar 2025 11:50:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="nDjAeGTK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A58A480F70; Tue, 18 Mar 2025 11:50:58 +0100 (CET) Received: from lelvem-ot01.ext.ti.com (lelvem-ot01.ext.ti.com [198.47.23.234]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 30133800B6 for ; Tue, 18 Mar 2025 11:50:56 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=f-akthar@ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelvem-ot01.ext.ti.com (8.15.2/8.15.2) with ESMTPS id 52IAosRC2589392 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 18 Mar 2025 05:50:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1742295054; bh=UEVN3eon2O99NN3D4DQR2l48HeM2hxxDlxIFpWdWgIc=; h=From:To:CC:Subject:Date; b=nDjAeGTKch6M7ASWDOailvMKPc2c3Fcx4+esCVbyjEiAa1j64i64tL1iFsOtu5yN4 +sl46b/6RCc+ZBJQi92+Tr/RvE4986WSIEpotzYdQ8dtZK+Ba8SeLf+p/mj16ryD9I TZUMHVX1pua9ioNk9v73E/9c96CooVWs+bbBBi1E= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52IAosFY015027; Tue, 18 Mar 2025 05:50:54 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 18 Mar 2025 05:50:53 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Tue, 18 Mar 2025 05:50:53 -0500 Received: from localhost (fayaz-hp-z2-tower-g4-workstation.dhcp.ti.com [172.24.227.181] (may be forged)) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 52IAorUk094459; Tue, 18 Mar 2025 05:50:53 -0500 From: Harsha Vardhan V M To: CC: , , , Subject: [RFC PATCH v3 0/5] cmd: fuse: Introduce fuse writebuff sub-system and clean up Date: Tue, 18 Mar 2025 16:20:42 +0530 Message-ID: <20250318105047.256022-1-h-vm@ti.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean This patch series introduces the fuse writebuff sub-system command and makes improvements to the existing fuse implementation by removing the custom string functions. The patches are required to be applied in sequence. The series consists of the following changes: Patch 1 removes custom string functions and replaces them with standard string functions. Patch 2 introduces fuse.rst documentation for fuse commands. Patch 3 introduces the fuse writebuff sub-system command, allowing to write a structured buffer in memory to fuses, and implementing the necessary function calls. Patch 4 enables the fuse sub-system in the K3 platform. Patch 5 updates the fuse.rst documentation to include details about the new fuse writebuff command. These changes aim to improve the fuse sub-system by the removal of custom string functions and the addition of the fuse writebuff command improves fuse programming workflows by allowing to write a structured buffer in memory to efuses. Changes in v2: 1.Convert doc/README.fuse to doc/usage/cmd/fuse.rst as patch #2, as requested by trini@konsulko.com. 2.Add fuse writebuff documentation in fuse.rst in the final patch. Changes in v3: 1.Remove doc/README.fuse and add cmd/fuse index in doc/usage/index.rst in patch #2. 2.Converted strrtou32 to simple_strtoul Harsha Vardhan V M (5): cmd: fuse: Remove custom string functions doc: cmd: Add documentation for fuse command cmd: fuse: Add fuse writebuff sub-system command drivers: k3_fuse: Add fuse sub-system func calls doc: cmd: Add fuse writebuff cmd documentation cmd/Kconfig | 8 ++ cmd/fuse.c | 63 +++++++++------ doc/README.fuse | 67 ---------------- doc/usage/cmd/fuse.rst | 176 +++++++++++++++++++++++++++++++++++++++++ doc/usage/index.rst | 1 + drivers/misc/Kconfig | 7 ++ drivers/misc/Makefile | 1 + drivers/misc/k3_fuse.c | 78 ++++++++++++++++++ include/fuse.h | 9 +++ 9 files changed, 320 insertions(+), 90 deletions(-) delete mode 100644 doc/README.fuse create mode 100644 doc/usage/cmd/fuse.rst create mode 100644 drivers/misc/k3_fuse.c -- 2.34.1