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 349B8C636CD for ; Fri, 10 Feb 2023 12:22:33 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 3E756857E4; Fri, 10 Feb 2023 13:22:31 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1676031751; bh=3AxBj99t0x9eGujlKwYJeBKu5rfFl2WTZZNRdY0TZUo=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=RPsUtlJR8fP1H6ossT6Jl5QzvuUX3lrZQpG+7L0u5yLUZitvYXYaxz/Fg8gBvsDUk 9mEfA+FHHvhIJSQMctVqgDiy4HMDjd7u9abIawE3mD/yjNqgwJrzTX/cskC7Wmaeh2 GfMk2g/0TI0hJmHXYEAiFAz7uNU4ShxCGv3+Gco1Kiz5LZ2M1YIBXnb5S2ljgzmTfr 15br0nTiDJFoSjb7GlpzFPGDu+ysF1WQCC34QB3yMhfGFbwErfKzDzQcKjTlFmuLKB lnLskRk6L4Gn20Xp5jNdxv6mMuQtLf+rI8DGDD2qnviDvPx/VIhIJDL5+LlJt7xIxT /NlxYUNtwUoZg== Received: by phobos.denx.de (Postfix, from userid 109) id A04F585809; Fri, 10 Feb 2023 13:22:29 +0100 (CET) Received: from mout-u-204.mailbox.org (mout-u-204.mailbox.org [80.241.59.204]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 620B8856D2 for ; Fri, 10 Feb 2023 13:22:27 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=denx.de Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sr@denx.de Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-u-204.mailbox.org (Postfix) with ESMTPS id 4PCtCj0RFqz9sWs; Fri, 10 Feb 2023 13:22:25 +0100 (CET) Message-ID: Date: Fri, 10 Feb 2023 13:22:23 +0100 MIME-Version: 1.0 Subject: Re: [PATCH v2 025/169] Correct SPL uses of ARCH_MVEBU Content-Language: en-US To: Tom Rini , Simon Glass Cc: U-Boot Mailing List References: <20230205223836.231657-1-sjg@chromium.org> <20230205223836.231657-26-sjg@chromium.org> From: Stefan Roese In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 On 2/9/23 18:23, Tom Rini wrote: > On Sun, Feb 05, 2023 at 03:36:11PM -0700, Simon Glass wrote: > >> This converts 2 usages of this option to the non-SPL form, since there is >> no SPL_ARCH_MVEBU defined in Kconfig >> >> Signed-off-by: Simon Glass >> --- >> >> (no changes since v1) >> >> drivers/mmc/mv_sdhci.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c >> index 336ebf14102..20049981473 100644 >> --- a/drivers/mmc/mv_sdhci.c >> +++ b/drivers/mmc/mv_sdhci.c >> @@ -64,7 +64,7 @@ int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks) >> host->ops = &mv_ops; >> #endif >> >> - if (CONFIG_IS_ENABLED(ARCH_MVEBU)) { >> + if (IS_ENABLED(CONFIG_ARCH_MVEBU)) { >> /* Configure SDHCI MBUS mbus bridge windows */ >> sdhci_mvebu_mbus_config((void __iomem *)regbase); >> } >> @@ -103,7 +103,7 @@ static int mv_sdhci_probe(struct udevice *dev) >> if (ret) >> return ret; >> >> - if (CONFIG_IS_ENABLED(ARCH_MVEBU)) { >> + if (IS_ENABLED(CONFIG_ARCH_MVEBU)) { >> /* Configure SDHCI MBUS mbus bridge windows */ >> sdhci_mvebu_mbus_config(host->ioaddr); >> } > > So, a number of mvebu platforms now grow their SPL here, which is (a) a > functional change and (b) implies it's intentional. I'm adding Stefan > here to start to get a better handle on if this really should be like > this, or not. I just checked this driver and it already depends on ARCH_MVEBU via Kconfig. Even when used in SPL, the mbus windows should be configured, even though I doubt that any target is using this driver in SPL. I'll send a patchset to clean up this driver shortly. This patch can be dropped then. Thanks, Stefan