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 67288CAC598 for ; Tue, 16 Sep 2025 10:36:35 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id AA28080325; Tue, 16 Sep 2025 12:36:05 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ti.com header.i=@ti.com header.b="QVq7H9zK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AD55C80325; Tue, 16 Sep 2025 12:35:59 +0200 (CEST) Received: from lelvem-ot02.ext.ti.com (lelvem-ot02.ext.ti.com [198.47.23.235]) (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 75D2B8318E for ; Tue, 16 Sep 2025 12:35:56 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=anshuld@ti.com Received: from fllvem-sh03.itg.ti.com ([10.64.41.86]) by lelvem-ot02.ext.ti.com (8.15.2/8.15.2) with ESMTP id 58GAZrDi1771113; Tue, 16 Sep 2025 05:35:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1758018953; bh=CVokullzBeUX4lhNYmkEqJOdjnpDbXkBmsXrbvXhGAk=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=QVq7H9zKk95gSwFq7yJavhGDhh2OX1GxhOWreUfTdNlL+TIG0sjnT+7W4/1mLELEI x5aP49nxmlp+75RLQAij92pyqliOIw7Hbwz4uq2wjRA8Iq2vO47lVdk0OR6mu+lQLT OxpWlMLBWRljLgHUMf+p59N/zN30rDjsZZ6lB8s8= Received: from DFLE106.ent.ti.com (dfle106.ent.ti.com [10.64.6.27]) by fllvem-sh03.itg.ti.com (8.18.1/8.18.1) with ESMTPS id 58GAZqAY653606 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA256 bits=128 verify=FAIL); Tue, 16 Sep 2025 05:35:53 -0500 Received: from DFLE204.ent.ti.com (10.64.6.62) by DFLE106.ent.ti.com (10.64.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.55; Tue, 16 Sep 2025 05:35:52 -0500 Received: from lelvem-mr05.itg.ti.com (10.180.75.9) by DFLE204.ent.ti.com (10.64.6.62) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.2562.20 via Frontend Transport; Tue, 16 Sep 2025 05:35:52 -0500 Received: from localhost (dhcp-172-24-233-105.dhcp.ti.com [172.24.233.105]) by lelvem-mr05.itg.ti.com (8.18.1/8.18.1) with ESMTP id 58GAZpSt1480255; Tue, 16 Sep 2025 05:35:51 -0500 From: Anshul Dalal To: CC: Anshul Dalal , , , , , , , , , , , , Subject: [PATCH v2 4/4] spl: ext, fat: cleanup use of CONFIG_SPL_LIBCOMMON_SUPPORT Date: Tue, 16 Sep 2025 16:05:41 +0530 Message-ID: <20250916103542.104773-5-anshuld@ti.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250916103542.104773-1-anshuld@ti.com> References: <20250916103542.104773-1-anshuld@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-C2ProcessedOrg: 333ef613-75bf-4e12-a4b1-8e3623f5dcea 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 Minor cleanup of spl_ext and spl_fat files, removing the outdated CONFIG_SPL_LIBCOMMON_SUPPORT symbols similar to the commit 1847129025e0 ("spl: mmc: Drop checks for CONFIG_SPL_LIBCOMMON_SUPPORT") and adding a few extra failure reports. Reviewed-by: Tom Rini Signed-off-by: Anshul Dalal --- common/spl/spl_ext.c | 10 ++++------ common/spl/spl_fat.c | 14 ++++++-------- 2 files changed, 10 insertions(+), 14 deletions(-) diff --git a/common/spl/spl_ext.c b/common/spl/spl_ext.c index 80bd084db4e..a3925d38d52 100644 --- a/common/spl/spl_ext.c +++ b/common/spl/spl_ext.c @@ -47,9 +47,7 @@ int spl_load_image_ext(struct spl_image_info *spl_image, err = ext4fs_mount(); if (!err) { -#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT printf("%s: ext4fs mount err - %d\n", __func__, err); -#endif return -1; } @@ -63,11 +61,9 @@ int spl_load_image_ext(struct spl_image_info *spl_image, err = spl_load(spl_image, bootdev, &load, filelen, 0); end: -#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT if (err < 0) printf("%s: error reading image %s, err - %d\n", __func__, filename, err); -#endif return err < 0; } @@ -144,8 +140,10 @@ defaults: ext4fs_set_blk_dev(block_dev, &part_info); ext4fs_mount(); err = ext4fs_open(CONFIG_SPL_FS_LOAD_ARGS_NAME, &filelen); - if (err < 0) - puts("spl: ext4fs_open failed\n"); + if (err < 0) { + puts("spl: ext4fs_open failed on args\n"); + return err; + } err = ext4fs_read((void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0, filelen, &actlen); if (err < 0) { diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c index 2c8eee01272..80e800b4755 100644 --- a/common/spl/spl_fat.c +++ b/common/spl/spl_fat.c @@ -98,11 +98,9 @@ int spl_load_image_fat(struct spl_image_info *spl_image, err = spl_load(spl_image, bootdev, &load, size, 0); end: -#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT if (err < 0) printf("%s: error reading image %s, err - %d\n", __func__, filename, err); -#endif return err; } @@ -116,8 +114,10 @@ int spl_load_image_fat_os(struct spl_image_info *spl_image, __maybe_unused char *file; err = spl_register_fat_device(block_dev, partition); - if (err) + if (err) { + printf("%s: fat mount err - %d\n", __func__, err); return err; + } if (!CONFIG_IS_ENABLED(ENV_SUPPORT)) goto defaults; @@ -157,11 +157,9 @@ defaults: err = file_fat_read(CONFIG_SPL_FS_LOAD_ARGS_NAME, (void *)CONFIG_SPL_PAYLOAD_ARGS_ADDR, 0); if (err <= 0) { -#ifdef CONFIG_SPL_LIBCOMMON_SUPPORT - printf("%s: error reading image %s, err - %d\n", - __func__, CONFIG_SPL_FS_LOAD_ARGS_NAME, err); -#endif - return -1; + printf("%s: error reading image %s, err - %d\n", __func__, + CONFIG_SPL_FS_LOAD_ARGS_NAME, err); + return err; } return 0; -- 2.51.0