From mboxrd@z Thu Jan 1 00:00:00 1970 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 B4408C61DA4 for ; Sun, 5 Feb 2023 03:03:01 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 81D6785918; Sun, 5 Feb 2023 04:02:59 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="FWs1C91S"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 5DCC785918; Sun, 5 Feb 2023 04:02:34 +0100 (CET) Received: from mail-ot1-x334.google.com (mail-ot1-x334.google.com [IPv6:2607:f8b0:4864:20::334]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 6D40D85922 for ; Sun, 5 Feb 2023 04:02:15 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=jassisinghbrar@gmail.com Received: by mail-ot1-x334.google.com with SMTP id e21-20020a9d5615000000b006884e5dce99so2425050oti.5 for ; Sat, 04 Feb 2023 19:02:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=F4F/5tLpi11fP2TYIT99+4aUTwZRrkQm3TRAYkx8XPw=; b=FWs1C91SjmLe+XjhxV+T0TzrwETXu1nrueevs5Erg/kR7DVcoxHa7BT7HWVKY1oHbP 8T3cylTkUET0Kk/8yQLuYD6hQaTtQ/cR/uSkFbFntwi9eH2mpaQviiCLbjpXJHUsvrdD ZAJ8RsWzgjbK8xs60PCZNZ2k36KPvhxVoRQ3VsP2to7QbdGv2xosnzP4MBux3pHw4A7Q wGcrHuhgN/A25J5RRi7hnYurjVImq/bE4PlfW4eXJ1DbwATZcg+mRj/2MjcMSMvQGJ68 /LjONV+DUZFHjBZggxRON/bxy8i2l34ZybZunE2N9CvgKhXSuYdZnHGMoy/oAr0tePV5 4I3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=F4F/5tLpi11fP2TYIT99+4aUTwZRrkQm3TRAYkx8XPw=; b=ZaxuiO36h3AH0b2+4rJEH4/ZK+D6jRlzz9EhLyxgRoKStPF3eBhKnAYFJFQaFeCNLY q9FYAzstPTgCyOLP8X7CyWTFqzvbjeBzUBKRnHjbiZj5zYFU/1NLfDWh8sa32HV3HhQ+ rva+QqVCYjzPuQ3sUq3KYhoSU5Uno0SKaEMt7bhoRWiJWHZvMr3QUs1pXJvyEO8E+TW9 rRtnPJ7IMrMSgtKO3tNwd6nfRw4spTmvM1KeHYz5503TDyAXHoeWzkFWRVgBxYNJKhK1 gWZ0C1/SWdZaUk77nBgy7efZZ6TO/cklqCELzRAgOSPtvFCmB9Ioi+UDr/UegJRrO8Jt Gi6g== X-Gm-Message-State: AO0yUKXt0xeSpzjrT6UkBrXD8Vr90f++Qm/c6bJZ1JirDByeimXG2v87 6cBB85/mvpGsYBOwrlb1vr7IxaDPu8Q= X-Google-Smtp-Source: AK7set9SZM2jJCMdy100qNaPN3iueMVlcsdF/Ja0vtp002Bzn6YBY/9cWerqFGkt0jdVAy/VwPo71Q== X-Received: by 2002:a05:6830:836:b0:68b:e0bc:c533 with SMTP id t22-20020a056830083600b0068be0bcc533mr8439549ots.20.1675566133624; Sat, 04 Feb 2023 19:02:13 -0800 (PST) Received: from jassi-Alienware-x17-R2.. (wnpgmb0311w-ds01-45-177-228.dynamic.bellmts.net. [206.45.177.228]) by smtp.gmail.com with ESMTPSA id e27-20020a0568301e5b00b0068bdfa56717sm2993278otj.36.2023.02.04.19.02.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Feb 2023 19:02:13 -0800 (PST) From: jassisinghbrar@gmail.com To: u-boot@lists.denx.de Cc: ilias.apalodimas@linaro.org, etienne.carriere@linaro.org, trini@konsulko.com, sjg@chromium.org, sughosh.ganu@linaro.org, xypron.glpk@gmx.de, patrick.delaunay@foss.st.com, patrice.chotard@foss.st.com, Jassi Brar Subject: [PATCHv4 5/5] fwu: rename fwu_get_verified_mdata to fwu_get_mdata Date: Sat, 4 Feb 2023 21:02:10 -0600 Message-Id: <20230205030210.61486-1-jassisinghbrar@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230205030056.61345-1-jassisinghbrar@gmail.com> References: <20230205030056.61345-1-jassisinghbrar@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean From: Jassi Brar fwu_get_mdata() sounds more appropriate than fwu_get_verified_mdata() Signed-off-by: Jassi Brar Reviewed-by: Etienne Carriere Reviewed-by: Ilias Apalodimas --- cmd/fwu_mdata.c | 2 +- include/fwu.h | 4 ++-- lib/fwu_updates/fwu.c | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/cmd/fwu_mdata.c b/cmd/fwu_mdata.c index 9b70340368..5ecda455df 100644 --- a/cmd/fwu_mdata.c +++ b/cmd/fwu_mdata.c @@ -46,7 +46,7 @@ int do_fwu_mdata_read(struct cmd_tbl *cmdtp, int flag, int ret = CMD_RET_SUCCESS, res; struct fwu_mdata mdata; - res = fwu_get_verified_mdata(&mdata); + res = fwu_get_mdata(&mdata); if (res < 0) { log_err("Unable to get valid FWU metadata\n"); ret = CMD_RET_FAILURE; diff --git a/include/fwu.h b/include/fwu.h index 23bd97fe86..ea25aca2cd 100644 --- a/include/fwu.h +++ b/include/fwu.h @@ -80,7 +80,7 @@ int fwu_read_mdata(struct udevice *dev, struct fwu_mdata *mdata, bool primary); int fwu_write_mdata(struct udevice *dev, struct fwu_mdata *mdata, bool primary); /** - * fwu_get_verified_mdata() - Read, verify and return the FWU metadata + * fwu_get_mdata() - Read, verify and return the FWU metadata * * Read both the metadata copies from the storage media, verify their checksum, * and ascertain that both copies match. If one of the copies has gone bad, @@ -88,7 +88,7 @@ int fwu_write_mdata(struct udevice *dev, struct fwu_mdata *mdata, bool primary); * * Return: 0 if OK, -ve on error */ -int fwu_get_verified_mdata(struct fwu_mdata *mdata); +int fwu_get_mdata(struct fwu_mdata *mdata); /** * fwu_get_active_index() - Get active_index from the FWU metadata diff --git a/lib/fwu_updates/fwu.c b/lib/fwu_updates/fwu.c index 9c0a8e2bb1..cf7e0ad078 100644 --- a/lib/fwu_updates/fwu.c +++ b/lib/fwu_updates/fwu.c @@ -182,7 +182,7 @@ static inline int mdata_crc_check(struct fwu_mdata *mdata) } /** - * fwu_get_verified_mdata() - Read, verify and return the FWU metadata + * fwu_get_mdata() - Read, verify and return the FWU metadata * * Read both the metadata copies from the storage media, verify their checksum, * and ascertain that both copies match. If one of the copies has gone bad, @@ -190,7 +190,7 @@ static inline int mdata_crc_check(struct fwu_mdata *mdata) * * Return: 0 if OK, -ve on error */ -int fwu_get_verified_mdata(struct fwu_mdata *mdata) +int fwu_get_mdata(struct fwu_mdata *mdata) { int err; bool pri_ok, sec_ok; @@ -621,7 +621,7 @@ static int fwu_boottime_checks(void *ctx, struct event *event) return ret; } - ret = fwu_get_verified_mdata(NULL); + ret = fwu_get_mdata(NULL); if (ret) { log_debug("Unable to read meta-data\n"); return ret; -- 2.34.1