From patchwork Sat Aug 26 09:06:30 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sughosh Ganu X-Patchwork-Id: 717227 Delivered-To: patch@linaro.org Received: by 2002:a5d:688a:0:b0:317:ecd7:513f with SMTP id h10csp294632wru; Sat, 26 Aug 2023 02:07:22 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH6R0jLcRsaibxT+lKyxepi2ALgk+AJ/4Z2bY/tieRQqHDt4ufpDP80JojL7hIgoLpeOn5p X-Received: by 2002:a5d:498e:0:b0:317:50b7:2ce3 with SMTP id r14-20020a5d498e000000b0031750b72ce3mr15310137wrq.51.1693040842720; Sat, 26 Aug 2023 02:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693040842; cv=none; d=google.com; s=arc-20160816; b=cx1qsH9IdvJ6nUkQtj6SwzCIvmJSK636Mzc44Ctxohs37B1SVqeVwdkFVcbDkrKtnC X5OagIS+N553aNC6K8Ca/QQWpHBi2kyd8nXzsx24r8OTZHLBPC6xIccoC6qAxcK3vYuZ wRcnuYpoGJvoQv06LtVZioPgo4TZuoxCeyZdS51KNhM9DPANNWgOoyvJEqlwsK3lpWQ3 1YNN8bAde8SjznoH63aoMS6qQPaj/HX5ggGujT0tYTn4xU/oFIBuJws2G3++P9LaTo1Y FrXAcl4GVQmqCMZF7JSWNb5sf7czeFTeoMU+NUaka58l8mysrnUhiBtARigRjWmYb/9P q05w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=blPj5cwzzeBnaGYZJ7VbUZ5MJgpuv+NDggPCip26Sg8=; fh=wxXZJCQRz/XgBTfKhuJFfNV+eZ/MzU8zncY23uTJ9bU=; b=cPLdrdSMClhtp0YhrK/lOdvPdWo6qa1ah4UUZuUCuh5KIvKARBigaWo1ruzMENztn9 uTNwQGm6E60xQFjDvvPvvTgLHQPmc/cDlI6x+uH+VTdO2av0w/ETspV3LMTdnw4Y7Hd/ A1RpBOIBaKvDy6fujf2m5gMsRbfXHM31XNidLSPvpGImrC+HyoxvJ3B5xKLcMGqiSqFo /mcsStba7qLawz7ZDJHPfFaGaSWQnZ6MTvwj82hUtm4o98KdTTMPIqYqF+xtOL/wZ+Pb 8rtxkrFerMgTE8JqpRcNJ0x7WWfNg2didzFZd/ZkooyqHO6eW2v0nJeJRX2shRvzl9Pe +VmA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id d14-20020adfef8e000000b003196afc7a39si28665wro.449.2023.08.26.02.07.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 26 Aug 2023 02:07:22 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3C67786B39; Sat, 26 Aug 2023 11:07:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id DD6E086B48; Sat, 26 Aug 2023 11:07:07 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_SOFTFAIL autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 4BFA586B34 for ; Sat, 26 Aug 2023 11:07:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0DEC91FB; Sat, 26 Aug 2023 02:07:45 -0700 (PDT) Received: from a076522.blr.arm.com (a076522.blr.arm.com [10.162.46.7]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C0EB03F740; Sat, 26 Aug 2023 02:07:02 -0700 (PDT) From: Sughosh Ganu To: u-boot@lists.denx.de Cc: Tom Rini , Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Sughosh Ganu Subject: [RFC PATCH 2/5] fwu: Add the fwu-mdata node for removal from devicetree Date: Sat, 26 Aug 2023 14:36:30 +0530 Message-Id: <20230826090633.239342-3-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230826090633.239342-1-sughosh.ganu@linaro.org> References: <20230826090633.239342-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 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 The FWU metadata devicetree node points to the device which stores the metadata structure. This node is relevant only in U-Boot, and is not to be passed to the OS. Register for purging this node from the devicetree, before passing it to the OS. Signed-off-by: Sughosh Ganu --- drivers/fwu-mdata/fwu-mdata-uclass.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/fwu-mdata/fwu-mdata-uclass.c b/drivers/fwu-mdata/fwu-mdata-uclass.c index 0a8edaaa41..71411d9c19 100644 --- a/drivers/fwu-mdata/fwu-mdata-uclass.c +++ b/drivers/fwu-mdata/fwu-mdata-uclass.c @@ -7,6 +7,7 @@ #include #include +#include #include #include #include @@ -53,3 +54,7 @@ UCLASS_DRIVER(fwu_mdata) = { .id = UCLASS_FWU_MDATA, .name = "fwu-mdata", }; + +DT_NON_COMPLIANT_PURGE(fwu_mdata) = { + .node_path = "/fwu-mdata", +};