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 90961C4332F for ; Thu, 13 Oct 2022 12:30:59 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 601B284F25; Thu, 13 Oct 2022 14:30:32 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="cvzngNZQ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BFCA084F22; Thu, 13 Oct 2022 14:30:20 +0200 (CEST) Received: from mail-io1-xd2d.google.com (mail-io1-xd2d.google.com [IPv6:2607:f8b0:4864:20::d2d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8C35C84F2F for ; Thu, 13 Oct 2022 14:30:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2d.google.com with SMTP id p16so1172133iod.6 for ; Thu, 13 Oct 2022 05:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UvwVv4M/DKTUY384+k9pBdBo9HjnIPFoIPQCiBayRGE=; b=cvzngNZQCfUmFI3oaK+5grT3+wR6nhRCl+0hcJCD0tSUz16jSX6VCvuh4thiFSfYg7 Yd3d61X9hzGeoDrlHxkBDGFv7MjsnvJOKNad4tkoBy9AnDw2SssDZnMf6qAkDMHAnWep wx83m1N7WJ54aCBa9s8sGGXj/8tjdefynojNE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UvwVv4M/DKTUY384+k9pBdBo9HjnIPFoIPQCiBayRGE=; b=cQZLGTJo9L/21dSUu3MWLlfrkeIBQRuGcnK44coluZvseTfpyf61ZWFBgKWwhJ4i+l AEWDueumy5Ktxyr9dOFQdEzKECzuDi6HG7O657BS8ho+cIMgyxzZiqEjUqeqf7QngB4l jT6mQXS4TxR7Woy8xruWaHLb1s2Q5UXULZRrkdSdI9m2CbR/xymkZEmaDk9OPn7YFRKp EDPsOQ15PS4B2n3uT62W4hKwgP0SG1JA6jZtJ8PqFuWySd9Pp2jvQ21dnpdRkQcSSfpl EvWS2kItFybUGZiDR7YjCyYBD0BzrbXbjkLpGosRvCuiLc2Yij6pVgKxilCwGH6KTPUD wikQ== X-Gm-Message-State: ACrzQf1/F8KxlgPofrCRDrU5yf3xxYKrCz9S67QCuqgdljt4ZdSxXrcV CnNClY8M3IKeaD5zt68CIHbp1KejzLZnYQ== X-Google-Smtp-Source: AMsMyM5RDtWvvDursvtU2kRxRpiiFwpHw13smnyZL97U7cKfDdMAU3ckKIeCv83owxJGX2tExb9vWA== X-Received: by 2002:a05:6638:25c5:b0:363:e601:6b74 with SMTP id u5-20020a05663825c500b00363e6016b74mr3951421jat.168.1665664212717; Thu, 13 Oct 2022 05:30:12 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id a9-20020a027a09000000b003635ab4a7b7sm7321626jac.3.2022.10.13.05.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 05:30:12 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Alper Nebi Yasak , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Nathan Barrett-Morrison , =?UTF-8?q?Pali=20Roh=C3=A1r?= , Ricardo Salveti , Stefan Roese Subject: [PATCH v2 06/45] spl: Refactor controls for console output Date: Thu, 13 Oct 2022 06:28:48 -0600 Message-Id: <20221013122927.636867-7-sjg@chromium.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221013122927.636867-1-sjg@chromium.org> References: <20221013122927.636867-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.6 at phobos.denx.de X-Virus-Status: Clean The expression in boot_from_devices() is fairly long and appears to be an artefact from before we could easily call printf(...) and have the call be nop'd out. So update it to just check CONFIG_SILENT_CONSOLE. Signed-off-by: Simon Glass Suggested-by: Tom Rini --- (no changes since v1) common/spl/spl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 10475cd3d11..91b4adc4004 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -703,9 +703,7 @@ static int boot_from_devices(struct spl_image_info *spl_image, if (CONFIG_IS_ENABLED(SHOW_ERRORS)) ret = -ENXIO; loader = spl_ll_find_loader(bootdev); - if (CONFIG_IS_ENABLED(SERIAL) && - CONFIG_IS_ENABLED(LIBCOMMON_SUPPORT) && - !IS_ENABLED(CONFIG_SILENT_CONSOLE)) { + if (!IS_ENABLED(CONFIG_SILENT_CONSOLE)) { if (loader) printf("Trying to boot from %s\n", spl_loader_name(loader)); -- 2.38.0.rc1.362.ged0d419d3c-goog