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 C50D3C2BA4C for ; Mon, 24 Jan 2022 12:14:13 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D3C1982F03; Mon, 24 Jan 2022 13:14:11 +0100 (CET) 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="LJTkDpBZ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C1EA882F87; Mon, 24 Jan 2022 13:14:10 +0100 (CET) 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 6B05681DB4 for ; Mon, 24 Jan 2022 13:14:08 +0100 (CET) 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=7023871c0e=patrice.chotard@foss.st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id 20O8b1CP016957; Mon, 24 Jan 2022 13:14:07 +0100 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=d/hDKpzVOu7w0NfTwLtzrNuoQUt8mE/ONLjD+fHTMgQ=; b=LJTkDpBZjnxif8VIm2jxAeMe/mwDlPT2d+hWPtPSY5Ey+cMedpXKNSYJuiCA2pcQpQIR jBxS8dfMvr0GUWIT/0JzigL/rRDCpA3rXpkfWWICrDWLZSK7U6fe2ZFkfjQeN2P4U4XV zI8K5MCjUQK/hXPUW/OSJzTFTSaX5VRwkcWX2VmT1diIxrLW/zNNr46+nleaPmYSvXGD kArOMmfwCUcafZQlTEENkyoE/Mv0bZK5cfYR6nIovZtXrrV8DZuPxldysBrBRJ7s9Ap7 bopmSRGeW9UPkROaLf/Bqz/pqygFjIWhcPuUZWUxHii8B6JNs5qUavdVYvy0hV5mf308 Eg== 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 3dsrru13wj-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 24 Jan 2022 13:14:07 +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 AA07210002A; Mon, 24 Jan 2022 13:14:06 +0100 (CET) Received: from Webmail-eu.st.com (sfhdag2node2.st.com [10.75.127.5]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 8E46A214D1A; Mon, 24 Jan 2022 13:14:06 +0100 (CET) Received: from [10.201.21.201] (10.75.127.48) by SFHDAG2NODE2.st.com (10.75.127.5) with Microsoft SMTP Server (TLS) id 15.0.1497.26; Mon, 24 Jan 2022 13:14:05 +0100 Message-ID: <8bdb0b11-ccd8-f066-e4e5-032d4fa0fc9f@foss.st.com> Date: Mon, 24 Jan 2022 13:14:04 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Subject: Re: [PATCH 1/2] arm: stm32mp: Fix USB boot device report Content-Language: en-US To: Marek Vasut , CC: Patrick Delaunay References: <20211206205809.20486-1-marex@denx.de> From: Patrice CHOTARD In-Reply-To: <20211206205809.20486-1-marex@denx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.75.127.48] X-ClientProxiedBy: SFHDAG2NODE1.st.com (10.75.127.4) To SFHDAG2NODE2.st.com (10.75.127.5) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.816,Hydra:6.0.425,FMLib:17.11.62.513 definitions=2022-01-24_06,2022-01-24_01,2021-12-02_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.5 at phobos.denx.de X-Virus-Status: Clean Hi Marek On 12/6/21 21:58, Marek Vasut wrote: > In case the SoC reports the boot device type is USB, it means the SPL was > loaded via BootROM DFU mode. Currently the spl_boot_device() returns boot > device as USB host, change it to DFU instead, so the SPL can continue the > DFU boot and load U-Boot via DFU. > > Signed-off-by: Marek Vasut > Cc: Patrice Chotard > Cc: Patrick Delaunay > --- > arch/arm/mach-stm32mp/spl.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-stm32mp/spl.c b/arch/arm/mach-stm32mp/spl.c > index 405eff68a3b..51fe0698fab 100644 > --- a/arch/arm/mach-stm32mp/spl.c > +++ b/arch/arm/mach-stm32mp/spl.c > @@ -43,7 +43,7 @@ u32 spl_boot_device(void) > case BOOT_SERIAL_UART_8: > return BOOT_DEVICE_UART; > case BOOT_SERIAL_USB_OTG: > - return BOOT_DEVICE_USB; > + return BOOT_DEVICE_DFU; > case BOOT_FLASH_NAND_FMC: > return BOOT_DEVICE_NAND; > case BOOT_FLASH_NOR_QSPI: Applied to u-boot-stm/master Thanks Patrice