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 417CAE8FDDE for ; Wed, 4 Oct 2023 09:12:10 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C35DB86EA8; Wed, 4 Oct 2023 11:12:05 +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="8DTurcFE"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AADDF86EA3; Wed, 4 Oct 2023 11:12:03 +0200 (CEST) Received: from mx07-00178001.pphosted.com (mx07-00178001.pphosted.com [185.132.182.106]) (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 D72C086EAD for ; Wed, 4 Oct 2023 11:12:01 +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=864180acd4=patrice.chotard@foss.st.com Received: from pps.filterd (m0241204.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.17.1.22/8.17.1.22) with ESMTP id 3945SsRs022722; Wed, 4 Oct 2023 11:12:00 +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=4hWpjl9wpVIhXhG9BC1ygffrqze0ycWwQzJ5PXAWv5Y=; b=8D TurcFEwAkLoR7FQA1uC0NpO+s67rB5bdptWPnmUHb6BcP0e6t/cFgUSgwDosoWTk 4nqVSIGn8kznDiWWTsiUgiG8IQNfq1Q+YUZkR/EAyKJhaAZSCn1fFTS6OBm4OW3L CtnasjZWaUAtkCKp5nJ0cho+UPZFg9drp/z5HcIKpavQqsquMbl0mVm/IwOuFwr0 fdr99Za/4IGA6si2L51UVIpCNXPJdP6eT2gR1hv1zb/fYdRqeh86UEWuqPxGELut DEqNh2mj5Ueq/2mTcg7nir5bf5cHU4vW0rffl0YVPooIFwEcL0uJiKb5E0QHM53E Q0xQKLyFMsSdKE2kxJUQ== 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 3tggx34khd-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 04 Oct 2023 11:12:00 +0200 (MEST) Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 162B610005C; Wed, 4 Oct 2023 11:12:00 +0200 (CEST) Received: from Webmail-eu.st.com (shfdag1node1.st.com [10.75.129.69]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id F262222A6D1; Wed, 4 Oct 2023 11:11:59 +0200 (CEST) Received: from [10.201.20.38] (10.201.20.38) by SHFDAG1NODE1.st.com (10.75.129.69) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Wed, 4 Oct 2023 11:11:59 +0200 Message-ID: Date: Wed, 4 Oct 2023 11:11:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH 1/2] ram: stm32mp1: Only print RAM config with CONFIG_SPL_DISPLAY_PRINT Content-Language: en-US To: Harald Seiler , CC: , Patrick Delaunay References: <20230927124440.247726-1-hws@denx.de> From: Patrice CHOTARD In-Reply-To: <20230927124440.247726-1-hws@denx.de> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.201.20.38] X-ClientProxiedBy: SHFCAS1NODE1.st.com (10.75.129.72) To SHFDAG1NODE1.st.com (10.75.129.69) X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-04_01,2023-10-02_01,2023-05-22_02 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 9/27/23 14:44, Harald Seiler wrote: > Ensure that the RAM configuration line is only printed when > CONFIG_SPL_DISPLAY_PRINT is set. > > Signed-off-by: Harald Seiler > --- > drivers/ram/stm32mp1/stm32mp1_ram.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/ram/stm32mp1/stm32mp1_ram.c b/drivers/ram/stm32mp1/stm32mp1_ram.c > index a6c19af9722..2808d07c3ae 100644 > --- a/drivers/ram/stm32mp1/stm32mp1_ram.c > +++ b/drivers/ram/stm32mp1/stm32mp1_ram.c > @@ -126,7 +126,8 @@ static int stm32mp1_ddr_setup(struct udevice *dev) > dev_dbg(dev, "no st,mem-name\n"); > return -EINVAL; > } > - printf("RAM: %s\n", config.info.name); > + if (CONFIG_IS_ENABLED(DISPLAY_PRINT)) > + printf("RAM: %s\n", config.info.name); > > for (idx = 0; idx < ARRAY_SIZE(param); idx++) { > ret = ofnode_read_u32_array(node, param[idx].name, Reviewed-by: Patrice Chotard Thanks Patrice