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 47DCCCDB474 for ; Tue, 17 Oct 2023 04:53:51 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6B3EF86BDB; Tue, 17 Oct 2023 06:53:49 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.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 38CCD86BF7; Tue, 17 Oct 2023 06:53:48 +0200 (CEST) Received: from ex01.ufhost.com (ex01.ufhost.com [61.152.239.75]) by phobos.denx.de (Postfix) with ESMTP id 8AA23863CF for ; Tue, 17 Oct 2023 06:53:44 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=starfivetech.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=kuanlim.lee@starfivetech.com Received: from EXMBX166.cuchost.com (unknown [175.102.18.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "EXMBX166", Issuer "EXMBX166" (not verified)) by ex01.ufhost.com (Postfix) with ESMTP id A254C24E289 for ; Tue, 17 Oct 2023 12:53:41 +0800 (CST) Received: from EXMBX068.cuchost.com (172.16.6.68) by EXMBX166.cuchost.com (172.16.6.76) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 17 Oct 2023 12:53:41 +0800 Received: from EXMBX066.cuchost.com (172.16.7.66) by EXMBX068.cuchost.com (172.16.6.68) with Microsoft SMTP Server (TLS) id 15.0.1497.42; Tue, 17 Oct 2023 12:53:41 +0800 Received: from EXMBX066.cuchost.com ([fe80::5947:9245:907e:339f]) by EXMBX066.cuchost.com ([fe80::5947:9245:907e:339f%17]) with mapi id 15.00.1497.044; Tue, 17 Oct 2023 12:53:41 +0800 From: KuanLim.Lee To: "u-boot@lists.denx.de" CC: Cheehong Ang , WeiLiang Lim Subject: RE: [PATCH] spl: mmc: Resolve emmc not load image after switched hw partition Thread-Topic: [PATCH] spl: mmc: Resolve emmc not load image after switched hw partition Thread-Index: AQHZ9bCNy1u6JRMnxUuVKA8o7Cp387BNf65Q Date: Tue, 17 Oct 2023 04:53:40 +0000 Message-ID: <34eb71bbf47348e1b8916a80cbd03cc0@EXMBX066.cuchost.com> References: <20231003041720.893-1-kuanlim.lee@starfivetech.com> In-Reply-To: <20231003041720.893-1-kuanlim.lee@starfivetech.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [202.190.98.67] x-yovoleruleagent: yovoleflag Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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 maintainers, Could anyone of you help to review the patch? > -----Original Message----- > From: KuanLim.Lee > Sent: Tuesday, October 3, 2023 12:17 PM > To: u-boot@lists.denx.de > Cc: Cheehong Ang ; WeiLiang Lim > ; KuanLim.Lee > > Subject: [PATCH] spl: mmc: Resolve emmc not load image after switched hw > partition >=20 > When selecting MMCSD_MODE_EMMCBOOT as boot_mode, emmc do not > load U-boot proper image after switched hardware partition. >=20 > Signed-off-by: Kuan Lim Lee > Reviewed-by: Chee Hong Ang > Reviewed-by: Wei Liang Lim > --- > common/spl/spl_mmc.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/common/spl/spl_mmc.c b/common/spl/spl_mmc.c index > 20f687e138..dc8a45222b 100644 > --- a/common/spl/spl_mmc.c > +++ b/common/spl/spl_mmc.c > @@ -447,6 +447,9 @@ int spl_mmc_load(struct spl_image_info *spl_image, > #endif > return err; > } > + err =3D mmc_load_image_raw_sector(spl_image, bootdev, mmc, > 0); > + if (!err) > + return err; > /* Fall through */ > case MMCSD_MODE_RAW: > debug("spl: mmc boot mode: raw\n"); > -- > 2.34.1