From patchwork Wed Oct 30 13:38:32 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabien DESSENNE X-Patchwork-Id: 1186718 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=st.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=st.com header.i=@st.com header.b="ZWY9yU14"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 4738lS6HWtz9sPJ for ; Thu, 31 Oct 2019 00:42:28 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 84F4EC21E2F; Wed, 30 Oct 2019 13:40:12 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8709DC21E60; Wed, 30 Oct 2019 13:39:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5C163C21E53; Wed, 30 Oct 2019 13:38:54 +0000 (UTC) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [62.209.51.94]) by lists.denx.de (Postfix) with ESMTPS id C0159C21E12 for ; Wed, 30 Oct 2019 13:38:51 +0000 (UTC) Received: from pps.filterd (m0046037.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id x9UDbrs2008227; Wed, 30 Oct 2019 14:38:51 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=ZkpRiHR0AkeqoVaVD0xekGfCk5rRtR/pUONndyIgAN0=; b=ZWY9yU149YatQoU8bAegFYGAYnkDGHboSha5mdLLb44bZ+nO9BJWEuKQhrRA3HjbntE1 br2ys5zC7j7cCAdPoihwpyaCM6EJ9AiZcmRv5tSS1o4mHwnpLJiUWpX5DEfihu0iSwR/ YmrJNo2pJBs6SaBPJQ1n/5qjlyRLmoxEf+iv/yV3xWJmQLSSl6PkHKlmXuD2K1nXa1B1 py5awXHpKem8psSenE6HG1LSvULVCydZ5iTZAWrIVH36kyTunG/FnkIs+lgDVss7qfK5 +CD7Wv0An8vQ1vM65SIJJ7bsMsAGvW7wr/s2Qi7wJ8/CwZgdBg4hx1CXCbcX51QdcLdt 5Q== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 2vxwhe3xuw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 30 Oct 2019 14:38:51 +0100 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id B9AC3100038; Wed, 30 Oct 2019 14:38:49 +0100 (CET) Received: from Webmail-eu.st.com (Safex1hubcas23.st.com [10.75.90.46]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id AF8792BEC75; Wed, 30 Oct 2019 14:38:49 +0100 (CET) Received: from SAFEX1HUBCAS24.st.com (10.75.90.95) by SAFEX1HUBCAS23.st.com (10.75.90.46) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 30 Oct 2019 14:38:49 +0100 Received: from localhost (10.201.23.25) by webmail-ga.st.com (10.75.90.48) with Microsoft SMTP Server (TLS) id 14.3.439.0; Wed, 30 Oct 2019 14:38:49 +0100 From: Fabien Dessenne To: Simon Glass , Patrick Delaunay , Patrice Chotard , "Lokesh Vutla" , Suman Anna Date: Wed, 30 Oct 2019 14:38:32 +0100 Message-ID: <1572442713-26353-6-git-send-email-fabien.dessenne@st.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1572442713-26353-1-git-send-email-fabien.dessenne@st.com> References: <1572442713-26353-1-git-send-email-fabien.dessenne@st.com> MIME-Version: 1.0 X-Originating-IP: [10.201.23.25] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.95,1.0.8 definitions=2019-10-30_06:2019-10-30,2019-10-30 signatures=0 Cc: uboot-stm32@st-md-mailman.stormreply.com, u-boot@lists.denx.de, Arnaud Pouliquen , Loic Pallardy , Fabien Dessenne Subject: [U-Boot] [PATCH v2 5/6] stm32mp1: remove copro_state environment variable X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" Since the coprocessor state is tracked in a backup register, there is no more need for tracking it in an environment variable : remove it. Signed-off-by: Fabien Dessenne Acked-by: Patrick Delaunay --- board/st/stm32mp1/stm32mp1.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/board/st/stm32mp1/stm32mp1.c b/board/st/stm32mp1/stm32mp1.c index 126af30..ea9afb6 100644 --- a/board/st/stm32mp1/stm32mp1.c +++ b/board/st/stm32mp1/stm32mp1.c @@ -935,10 +935,8 @@ static void board_copro_image_process(ulong fw_image, size_t fw_size) printf("Load Remote Processor %d with data@addr=0x%08lx %u bytes:%s\n", id, fw_image, fw_size, ret ? " Failed!" : " Success!"); - if (!ret) { + if (!ret) rproc_start(id); - env_set("copro_state", "booted"); - } } U_BOOT_FIT_LOADABLE_HANDLER(IH_TYPE_COPRO, board_copro_image_process);