From patchwork Thu Sep 3 17:25:15 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Otavio Salvador X-Patchwork-Id: 1356776 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ossystems.com.br Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4Bj74N0k2jz9sSP for ; Fri, 4 Sep 2020 03:25:37 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8417B81B88; Thu, 3 Sep 2020 19:25:30 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ossystems.com.br 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 DFC1781C31; Thu, 3 Sep 2020 19:25:28 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-qt1-f196.google.com (mail-qt1-f196.google.com [209.85.160.196]) (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 7A3DA81260 for ; Thu, 3 Sep 2020 19:25:26 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=ossystems.com.br Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=otavio.salvador@gmail.com Received: by mail-qt1-f196.google.com with SMTP id k25so1571660qtu.4 for ; Thu, 03 Sep 2020 10:25:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :organization:content-transfer-encoding; bh=wMDVMNjMPGNOmTvq5GDZwTMcLv6/eyZ9ecqwBbDPLiw=; b=d3Va5PrEhVRgBh/1RZyfJOEmRQ/dhjdRJNawstrDWisbwOK3GZrcO3j6YTCNCI62pw ZQQrdrJgHVvrpdhpDdx3HZ2C0dSgExPs0ZbdE7aTpqEkhIfe0AAqiZILbt3qBxFF4Bg4 CLWCv9uoZBU7aZ0ZCccAJCK3XVTriWJuLKINgffFznrsiy8Mf2ggtVqnWR+Z4h5dTrCI zRlkANprE/Z74gPARs4wugznYr5N9653mc+xyU1SIm/X5Y3xpp7q18oNZls9gpL2CkFH eWo3iP8dWRRGYqwwZL5V+q+52/5KvH4A07hmL2gwgRi8Wa1t7tz39DVv+7A09KdKfR1e l+vQ== X-Gm-Message-State: AOAM533H/a1oUxfdWGxTTG5axbzkfTKGD5v3gl/q0I2btFRkLN5NxZHf 7AiWFNDdV2aOYjam0wvEZ6AEjozl12XmYQ== X-Google-Smtp-Source: ABdhPJyhn82HrDlAfpGb1EnQc9Luw9YNrVmMuVVVQ6+D0GIFg+vJY8230ujlWbT1o9QRZDBPiKc6/w== X-Received: by 2002:ac8:498d:: with SMTP id f13mr4726311qtq.35.1599153924966; Thu, 03 Sep 2020 10:25:24 -0700 (PDT) Received: from localhost ([181.220.78.182]) by smtp.gmail.com with ESMTPSA id v185sm2742970qki.26.2020.09.03.10.25.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Sep 2020 10:25:24 -0700 (PDT) From: Otavio Salvador To: U-Boot Mailing List Cc: Otavio Salvador , Bin Meng , Giulio Benetti , Heiko Stuebner , Philippe Reynes , Simon Glass , Stefan Roese Subject: [PATCH] spl: Avoid printing boot device if silent console is enabled Date: Thu, 3 Sep 2020 14:25:15 -0300 Message-Id: <20200903172515.185232-1-otavio@ossystems.com.br> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Organization: O.S. Systems Software LTDA. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.102.3 at phobos.denx.de X-Virus-Status: Clean Signed-off-by: Otavio Salvador Reviewed-by: Tom Rini Reviewed-by: Stefan Roese --- common/spl/spl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/spl/spl.c b/common/spl/spl.c index 4840d1d367..63c48fbf33 100644 --- a/common/spl/spl.c +++ b/common/spl/spl.c @@ -552,7 +552,9 @@ static int boot_from_devices(struct spl_image_info *spl_image, struct spl_image_loader *loader; loader = spl_ll_find_loader(spl_boot_list[i]); -#if defined(CONFIG_SPL_SERIAL_SUPPORT) && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) +#if defined(CONFIG_SPL_SERIAL_SUPPORT) \ + && defined(CONFIG_SPL_LIBCOMMON_SUPPORT) \ + && !defined(CONFIG_SILENT_CONSOLE) if (loader) printf("Trying to boot from %s\n", loader->name); else