Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 598D1C43214 for ; Mon, 26 Jul 2021 13:41:25 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id CBA4960241 for ; Mon, 26 Jul 2021 13:41:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org CBA4960241 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8448E80EC5; Mon, 26 Jul 2021 15:40:50 +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="bg9yGMMK"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C709B83385; Mon, 26 Jul 2021 15:39:07 +0200 (CEST) Received: from mail-ot1-x32c.google.com (mail-ot1-x32c.google.com [IPv6:2607:f8b0:4864:20::32c]) (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 BD84183349 for ; Mon, 26 Jul 2021 15:35:21 +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-ot1-x32c.google.com with SMTP id 48-20020a9d0bb30000b02904cd671b911bso10023875oth.1 for ; Mon, 26 Jul 2021 06:35:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HG9aVmX6dc0bYjINKvHu94iEU907+vmTNMYsVhFNXaY=; b=bg9yGMMKcAt4hvqacKA7noh0IpXN+Mi3iIDYjvEe8tgQN9OsGqGa9DErZTV2uYUVi8 dxuTsCI3H665copY1GvfODPIE8U+bMMHmgBl0LC2gZH+f746cdOA1gPx9M33WUmJCEUv 9Zh8M5dO/L+yIjdngVQgHZn+n0KodfmFCK3PM= 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=HG9aVmX6dc0bYjINKvHu94iEU907+vmTNMYsVhFNXaY=; b=QJrtphPXpgoNRTH7biTaafATaXuFFcxd53x11Z9UycuYKevGMvDnRmAmbW2gkisBg3 DZCJ1U+qEb1GDkpLCzAf+2xO86QCWaELybl3Qgte9R7iwwKsjUi48KQCC7tAslidSgKM AqLOgTqolnME7HYxjXDYhTMMcw3bM0Scrw2lHKodAVq8zr0BOauUlccPKlgqw1Dp+qOF kW61qujR9ttEfhK7ZeTxIOTv+YC5Xw4JLT5OlRlYToQWqdPEPGECHsng6XRIvCqo5+d0 eMn3WTLM/g/yIf+fVCgNvT+AGZ3/qChVakSzUsktv+nTPpXHqLSZwhrBHKN9807lkQc9 lxKg== X-Gm-Message-State: AOAM531dRQjGW9ZIHP46+zrc3Def81qnNid/46Dww3YzK8PI2v/bC1+a lkFgJ/AtZctplGqBm83qBVjO593w5QONvprp X-Google-Smtp-Source: ABdhPJxi71rgvnyj/2VDBDi69YACvqLe8biCQ31tFbkIHo4qVNVNuuHVmwWyOrnCo+SDmXIyLIj1mQ== X-Received: by 2002:a05:6830:18cd:: with SMTP id v13mr11913307ote.13.1627306520155; Mon, 26 Jul 2021 06:35:20 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id t141sm6591527oot.40.2021.07.26.06.35.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Jul 2021 06:35:19 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Albert Aribaud Subject: [PATCH 24/33] pci: arm: mvebu: Drop DM_PCI check from Date: Mon, 26 Jul 2021 07:34:30 -0600 Message-Id: <20210726133440.634682-25-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.432.gabb21c7263-goog In-Reply-To: <20210726133440.634682-1-sjg@chromium.org> References: <20210726133440.634682-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.103.2 at phobos.denx.de X-Virus-Status: Clean We don't need this check anymore since when PCI is enabled, driver model is always used. Use CONFIG_PCI instead. Signed-off-by: Simon Glass --- arch/arm/mach-mvebu/arm64-common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mvebu/arm64-common.c b/arch/arm/mach-mvebu/arm64-common.c index fa687d8abbb..06c4994e065 100644 --- a/arch/arm/mach-mvebu/arm64-common.c +++ b/arch/arm/mach-mvebu/arm64-common.c @@ -104,10 +104,9 @@ int arch_early_init_r(void) /* Cause the SATA device to do its early init */ uclass_first_device(UCLASS_AHCI, &dev); -#ifdef CONFIG_DM_PCI /* Trigger PCIe devices detection */ - pci_init(); -#endif + if (IS_ENABLED(PCI)) + pci_init(); return 0; } -- 2.32.0.432.gabb21c7263-goog