From patchwork Mon Jan 18 00:18:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Robinson X-Patchwork-Id: 1427908 X-Patchwork-Delegate: andre.przywara@arm.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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=KQErYIP+; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 4DJspS3vYBz9sVr for ; Mon, 18 Jan 2021 11:18:45 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5937A826D4; Mon, 18 Jan 2021 01:18:32 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.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=gmail.com header.i=@gmail.com header.b="KQErYIP+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6D1E4826E8; Mon, 18 Jan 2021 01:18:30 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) (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 72444826CF for ; Mon, 18 Jan 2021 01:18:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=pbrobinson@gmail.com Received: by mail-wr1-x430.google.com with SMTP id w5so14812521wrm.11 for ; Sun, 17 Jan 2021 16:18:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=IKeunI+PQrUXog03799NsoFoqrmggA73JCVUNOU2SUU=; b=KQErYIP+TObmZDkaN56t/Wjl2XadZ4Y4TtJLGdKiZ+ZNGK+PyBXxG93+j4s+DpHqwF Lyxw7P849cIHc2gevxvObWp2aupXbfwWwRchaZdv7cN30lfIRNkdbbSCXNXYRo4hM2pi f9X5cXn8svmrvlBf1X6YTtTFHTNLC3naJlLBXpSpaTW4ZTKucE3EnQ0xGDW4iebobgtM 5VHe5jLWLQvOjbuRfE42nz9BZm73G6QsHHojyk19kp4CR/ZGA4wDCXXMKddzov0ZIo6J gTJeqcWKzWazosq5uAHuEH7nEc0VacAdnaVJmsCrpeIc2HBfJ7k7rMpUobaNrFXkGAWr t+Bw== 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 :content-transfer-encoding; bh=IKeunI+PQrUXog03799NsoFoqrmggA73JCVUNOU2SUU=; b=kga9CNo6gJCGTjIKQM8L2RJGJYUzLw76Z79h3LKVj1+x4dFWLT81KIsvOa1ov+3LpG +LInq8Kbsbo+JU2r2/UfsObLfUFnYOpi7lgt/8F93v2BZcmQ8FskCyC8F972/0lzY2hp zXZgthlEzaCgyhrO9xQVJtVENLI9U0A/MdYFbu7AAej21Dp3ZTVl8Fs+R2u2U/+qMzZQ Wb9WvpKTN6nEOnQe1NAIXbhaH+x4vDdpGwv8UmzDwmaLemHifc4j7WJADq5e4MQkhdjf h+5/L4x792jE77R/n4UaJvHneuDiDf3Aiu1wJTAyNZGlCddj2Tt5rnO2MIyWUZo7J32D 2aiQ== X-Gm-Message-State: AOAM532kl9dUP6q2B90PUUz919jKYAzNwKYqeazlHBDFRJHzG+2r4BUj Z8IDuefHV7D6Vw3GaTY2x4M= X-Google-Smtp-Source: ABdhPJy5cvrEIevfwj3zFzBwQgxpZL4Bkdjc+nGRPJKv3Ftat8i/PuaV8WuF+9HGVKZQPtk0wzspKg== X-Received: by 2002:a5d:51d2:: with SMTP id n18mr23713456wrv.92.1610929106989; Sun, 17 Jan 2021 16:18:26 -0800 (PST) Received: from morpheus.home.roving-it.com (f.c.9.1.f.e.c.d.1.e.0.0.2.b.5.5.1.8.6.2.1.1.b.f.0.b.8.0.1.0.0.2.ip6.arpa. [2001:8b0:fb11:2681:55b2:e1:dcef:19cf]) by smtp.googlemail.com with ESMTPSA id d7sm14799406wmb.47.2021.01.17.16.18.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 17 Jan 2021 16:18:26 -0800 (PST) From: Peter Robinson To: Jagan Teki , Andre Przywara , u-boot@lists.denx.de Cc: Peter Robinson Subject: [PATCH] sunxi: don't define MACPWR and SATAPWR to empty strings Date: Mon, 18 Jan 2021 00:18:23 +0000 Message-Id: <20210118001823.243392-1-pbrobinson@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 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 There's checks in board/sunxi/board.c if either MACPWR or SATAPWR are defined and they are defined by default to a empty string which means on vast majority of AllWinner boards when they're not required the code is still run and with SATAPWR we even get an unnecessary 500ms delay booting. So let's not define a default for these options so the code is only run for boards that need it. Signed-off-by: Peter Robinson --- arch/arm/mach-sunxi/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/mach-sunxi/Kconfig b/arch/arm/mach-sunxi/Kconfig index 49ef217f08..a566e10315 100644 --- a/arch/arm/mach-sunxi/Kconfig +++ b/arch/arm/mach-sunxi/Kconfig @@ -578,7 +578,6 @@ config OLD_SUNXI_KERNEL_COMPAT config MACPWR string "MAC power pin" - default "" help Set the pin used to power the MAC. This takes a string in the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of port H. @@ -969,7 +968,6 @@ endchoice config SATAPWR string "SATA power pin" - default "" help Set the pins used to power the SATA. This takes a string in the format understood by sunxi_name_to_gpio, e.g. PH1 for pin 1 of