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 F3966C433FE for ; Wed, 26 Oct 2022 12:53:54 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 4E03D84F43; Wed, 26 Oct 2022 14:53:52 +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="8Bc8LAxU"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 0D82484D43; Wed, 26 Oct 2022 14:53:51 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (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 B001E84FEC for ; Wed, 26 Oct 2022 14:53:47 +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=62983435ce=patrick.delaunay@foss.st.com Received: from pps.filterd (m0046660.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 29QCENPx020320; Wed, 26 Oct 2022 14:53:45 +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=muJBgknRVUh3cs2imtnraVVd9PFzh9jR8mBFTWIggyQ=; b=8Bc8LAxU0geMI/xXf16LpWkUD7RIHVKyeDj9rIhxZ2SL9TwkN4a5WsH3joo2At15SoRc 9hIu7ajnZmNVYG292A9ZuBO7rxZS0VRKzw5NcVlM5A98gUTVroSC0RDL7s0KUVC5buke qA5JDnKgtyBQ4AHG0cLma7bBWcQcspB1ByUFzur6mdgvc+wli1D0PoKDKIa+VWbWHAPi 2LMW7GpeHexG6Ku5DOFhAug/3JCDeX9OG/Stfm6zecQfly8Nc4fwiuzH6I4HX93SGbxv jDJfypzkprc2ayTzYojm5aFm9jS9uYCZhJFkdOlmXM60PmsQpkeD/zHigAvEpmOR/hFd xQ== 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 3kebqtt6gt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 26 Oct 2022 14:53:45 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 0D1D5100034; Wed, 26 Oct 2022 14:53:39 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node3.st.com [10.75.129.71]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 4639C226FB8; Wed, 26 Oct 2022 14:53:39 +0200 (CEST) Received: from [10.48.0.157] (10.48.0.157) 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.2375.31; Wed, 26 Oct 2022 14:53:36 +0200 Message-ID: Date: Wed, 26 Oct 2022 14:53:35 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.2.2 Subject: Re: [PATCH v2 2/4] treewide: Use NULL for script image name Content-Language: en-US To: Sean Anderson , Simon Glass , CC: Tom Rini , Rasmus Villemoes , Patrice Chotard , Stefan Agner , Stefano Babic , =?UTF-8?Q?=c5=81ukasz_Majewski?= References: <20221020192404.2500251-1-sean.anderson@seco.com> <20221020192404.2500251-3-sean.anderson@seco.com> From: Patrick DELAUNAY In-Reply-To: <20221020192404.2500251-3-sean.anderson@seco.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.48.0.157] X-ClientProxiedBy: SHFCAS1NODE2.st.com (10.75.129.73) To SHFDAG1NODE3.st.com (10.75.129.71) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-10-26_06,2022-10-26_01,2022-06-22_01 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 Hi, On 10/20/22 21:24, Sean Anderson wrote: > Two callers of image_source_script specify an image name. However, both > use the deprecated @ syntax, indicating that they have not been updated > in a while. If CONFIG_FIT_SIGNATURE is enabled, we will reject such > names outright. Back in commit 152576a598c ("stm32mp: stm32prog: handle > U-Boot script in flashlayout alternate"), we even renamed one of the > nodes. Instead of hard-coding a script image name, just use the default > image. > > Signed-off-by: Sean Anderson > Reviewed-by: Simon Glass > --- > This has a non-zero chance of breaking something, especially for SDP. > It's not strictly necessary for the following patches, so I can drop it > if there are any issues. > > (no changes since v1) > > arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c | 2 +- > drivers/usb/gadget/f_sdp.c | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c > index f59414e716f..9b4098da461 100644 > --- a/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c > +++ b/arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c > @@ -154,7 +154,7 @@ static int do_stm32prog(struct cmd_tbl *cmdtp, int flag, int argc, > do_bootz(cmdtp, 0, 4, bootm_argv); > } > if (data->script) > - image_source_script(data->script, "script@stm32prog"); > + image_source_script(data->script, NULL); > > if (reset) { > puts("Reset...\n"); > diff --git a/drivers/usb/gadget/f_sdp.c b/drivers/usb/gadget/f_sdp.c > index 0fa7230b992..c80698663cd 100644 > --- a/drivers/usb/gadget/f_sdp.c > +++ b/drivers/usb/gadget/f_sdp.c > @@ -868,7 +868,7 @@ static int sdp_handle_in_ep(struct spl_image_info *spl_image, > jump_to_image_no_args(&spl_image); > #else > /* In U-Boot, allow jumps to scripts */ > - image_source_script(sdp_func->jmp_address, "script@1"); > + image_source_script(sdp_func->jmp_address, NULL); > #endif > } > > Reviewed-by: Patrick Delaunay for the stm32mp part: arch/arm/mach-stm32mp/cmd_stm32prog/cmd_stm32prog.c Thanks Patrick