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 0319FE7B5E1 for ; Wed, 4 Oct 2023 09:58:04 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 698DE805CA; Wed, 4 Oct 2023 11:58:03 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.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=foss.st.com header.i=@foss.st.com header.b="XYgcrB+K"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B609E8654D; Wed, 4 Oct 2023 11:58:02 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 C236280422 for ; Wed, 4 Oct 2023 11:57:57 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=foss.st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=prvs=8641a2a2c4=patrick.delaunay@foss.st.com Received: from pps.filterd (m0369458.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 39450H4A026784; Wed, 4 Oct 2023 11:57:57 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foss.st.com; h= message-id:date:mime-version:subject:to:cc:references:from :in-reply-to:content-type:content-transfer-encoding; s= selector1; bh=mTklWt1yrRX98nH9sOpPsFxr9PWv1Er23Rpf5GNRva8=; b=XY gcrB+K0egid7grTT9VC6zQIxEgVQJ9w59P3Sh3VYItdgrngieQVs5sO2MnJfa4Ho NvuTq8D4blj9lf6GAOjrMjCBkFtum1P+6m4ukYkX6MEplR9/XgS0TwpZWrfrtAej Yw67HEMsB9+t+JRjqjMZCrd0KufGZFDSVOvDNiD51nHxMfZNsSKQU30375btrtLI KvW6RdSlEp4LYd/vGrOSMHKcM2kAVYHfdjd0G6MY8EVMqGmrN2h7a6wYMs00AsIh JR+fnQRDvVg9BhjYoIYHDbLV36eYT79TWrJMa9NkHViyUp2vzjL19r2zh3bU/2hr lsX1icHSSi9b/s2aPs2g== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com (PPS) with ESMTPS id 3tew80p0kb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 11:57:57 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 02812100053; Wed, 4 Oct 2023 11:57:57 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id EE5ED22F7A5; Wed, 4 Oct 2023 11:57:56 +0200 (CEST) Received: from [10.201.22.165] (10.201.22.165) by SHFDAG1NODE3.st.com (10.75.129.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 11:57:56 +0200 Message-ID: <8a5daa34-e50a-2f2d-7ce2-9879e64e881d@foss.st.com> Date: Wed, 4 Oct 2023 11:57:55 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v1 6/6] board: st: common: cleanup dfu support Content-Language: en-US To: Patrice Chotard , CC: Fabrice Gasnier , References: <20230926150924.1150082-1-patrice.chotard@foss.st.com> <20230926150924.1150082-7-patrice.chotard@foss.st.com> From: Patrick DELAUNAY In-Reply-To: <20230926150924.1150082-7-patrice.chotard@foss.st.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.22.165] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_01,2023-10-02_01,2023-05-22_02 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 Hi, On 9/26/23 17:09, Patrice Chotard wrote: > From: Patrick Delaunay > > split the file stm32mp_dfu.c in two files to simplify the Makefile > - stm32mp_dfu.c: required by CONFIG_SET_DFU_ALT_INFO > - stm32mp_dfu_virt.c: required by CONFIG_DFU_VIRT for stm32prog > command or VIRT device for PMIC for CONFIG_SET_DFU_ALT_INFO. > > This patch also remove some remaining #ifdef CONFIG > and avoid compilation error when CONFIG_SET_DFU_ALT_INFO is not > activated. > > Signed-off-by: Patrick Delaunay > Signed-off-by: Patrice Chotard > --- > > board/st/common/Makefile | 1 + > board/st/common/stm32mp_dfu.c | 103 ++--------------------------- > board/st/common/stm32mp_dfu_virt.c | 99 +++++++++++++++++++++++++++ > 3 files changed, 104 insertions(+), 99 deletions(-) > create mode 100644 board/st/common/stm32mp_dfu_virt.c > Reviewed-by: Patrick Delaunay Thanks Patrick