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 50DFBEB64DD for ; Sat, 12 Aug 2023 02:52:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C5848868D9; Sat, 12 Aug 2023 04:52:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 99C438693D; Sat, 12 Aug 2023 04:52:32 +0200 (CEST) Received: from mail-m127102.qiye.163.com (mail-m127102.qiye.163.com [115.236.127.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 80BE3867A8 for ; Sat, 12 Aug 2023 04:52:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=rock-chips.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kever.yang@rock-chips.com Received: from [192.168.1.30] (unknown [120.36.75.98]) by mail-m127102.qiye.163.com (Hmail) with ESMTPA id 1C0496C01D1; Sat, 12 Aug 2023 10:52:11 +0800 (CST) Message-ID: Date: Sat, 12 Aug 2023 10:52:10 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v2 07/10] ARM: mach-rockchip: spl-boot-order: add possibility to DFU Content-Language: en-US To: Eugen Hristev , u-boot@lists.denx.de Cc: marex@denx.de, jonas@kwiboo.se, jagan@edgeble.ai, kernel@collabora.com References: <20230801072811.10354-1-eugen.hristev@collabora.com> <20230801072811.10354-8-eugen.hristev@collabora.com> From: Kever Yang In-Reply-To: <20230801072811.10354-8-eugen.hristev@collabora.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-HM-Spam-Status: e1kfGhgUHx5ZQUpXWQgPGg8OCBgUHx5ZQUlOS1dZFg8aDwILHllBWSg2Ly tZV1koWUFITzdXWS1ZQUlXWQ8JGhUIEh9ZQVlDHxkeVklDThhMGUsdQh5IHVUTARMWGhIXJBQOD1 lXWRgSC1lBWUpJS1VITVVMTlVCQ1lXWRYaDxIVHRRZQVlPS0hVSk5MSUpJVUpLS1VKQlkG X-HM-Tid: 0a89e7a89082b280kuuu1c0496c01d1 X-HM-MType: 1 X-HM-Sender-Digest: e1kMHhlZQR0aFwgeV1kSHx4VD1lBWUc6K1E6Gjo6ET0BEhYsM0MQL0gS IUIKCQpVSlVKTUJKQ0tDTEhKTU1IVTMWGhIXVRAeDR4JVQIaFRw7CRQYEFYYExILCFUYFBZFWVdZ EgtZQVlKSUtVSE1VTE5VQkNZV1kIAVlBSUhMSTcG 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 On 2023/8/1 15:28, Eugen Hristev wrote: > Add DFU as a possible SPL boot media if the boot device is a > gadget device. > > Signed-off-by: Eugen Hristev Reviewed-by: Kever Yang Thanks, - Kever > --- > arch/arm/mach-rockchip/spl-boot-order.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/arm/mach-rockchip/spl-boot-order.c b/arch/arm/mach-rockchip/spl-boot-order.c > index 93b8e7de4d0d..89bbe449e86c 100644 > --- a/arch/arm/mach-rockchip/spl-boot-order.c > +++ b/arch/arm/mach-rockchip/spl-boot-order.c > @@ -66,6 +66,9 @@ static int spl_node_to_boot_device(int node) > } else if (!uclass_get_device_by_of_offset(UCLASS_SPI_FLASH, node, > &parent)) { > return BOOT_DEVICE_SPI; > + } else if (!uclass_get_device_by_of_offset(UCLASS_USB_GADGET_GENERIC, > + node, &parent)) { > + return BOOT_DEVICE_DFU; > } > > /*