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.4 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 BC558C4338F for ; Mon, 2 Aug 2021 01:10:26 +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 41A43610A2 for ; Mon, 2 Aug 2021 01:10:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 41A43610A2 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 57A6183359; Mon, 2 Aug 2021 03:09:36 +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="jnR0Vn4+"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 8A8348339B; Mon, 2 Aug 2021 03:06:27 +0200 (CEST) Received: from mail-oo1-xc2b.google.com (mail-oo1-xc2b.google.com [IPv6:2607:f8b0:4864:20::c2b]) (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 D20C483346 for ; Mon, 2 Aug 2021 02:55:11 +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-oo1-xc2b.google.com with SMTP id t1-20020a4a54010000b02902638ef0f883so4026614ooa.11 for ; Sun, 01 Aug 2021 17:55:11 -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=y8fZ6Oa7o0aoEW3s9Y4rT3LhOEhIx2U+Fe8fzPb0lUQ=; b=jnR0Vn4+tRMEHNDUbeRouYadYiik86jAQZuXQv3pEDl+1OrORVcIK3e0s58eEdD1NA a5ppUodtOYUaqB6PV/2FHhtShmkJsCk+83dQfmaNKwevZ5dv5Jg5TtfISOm40TwGPC4F 8YeMqnBsBdZizQQ5RYERrK6DkzmlANy4Dtha8= 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=y8fZ6Oa7o0aoEW3s9Y4rT3LhOEhIx2U+Fe8fzPb0lUQ=; b=jpqwXfReFGeGNTNJIEwGgPWJO2M74xoR3Mr2Qi4DWG5UKCxnT5Yee5F+yWY6QN8Djg iOcCBZL8lFy372nMlhDqxtZ0uUkpu8SHp1+ko/jEP4sNjcZD+tx0NXNDdRnUqq4Hn4Mv 078qsrCh6wD0Gb8UrTHAfDIf+NPl9GK7jcjVw4y8w1/aaGHyO7/Y0vvVy6wcMgTyTYj0 5PuQS5CMcfrfcW1ANKQpTSFxnynme8bFKpZ2LQAOz5Lnjn0uY73ECCBeZvf2+24Fi9kD Ou4kpo7j1sF861XqtaT7oLx8qyEDeobzOPZzOrGeCMTkZzFBITFUmNI2GoyBt8ARcGXr PJ7A== X-Gm-Message-State: AOAM533JmZ6SHXvTD5ljmBvTpuSHOALikT7vN7gd62QTc6ycEC8H10Ub oel9i/Eb5jzjEYjeZ2Gv6SuOpxDdZzBI1uji X-Google-Smtp-Source: ABdhPJzDrIdMWjWG2Sct55h2O1lkPL230IqKyucuYwzR3oNPCs2Hdcf0eOKy0MC9SqxbrfYFGVoLSg== X-Received: by 2002:a4a:de08:: with SMTP id y8mr9083338oot.82.1627865710182; Sun, 01 Aug 2021 17:55:10 -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 s2sm1452616ooc.15.2021.08.01.17.55.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 01 Aug 2021 17:55:09 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass , Albert Aribaud Subject: [PATCH v2 23/32] pci: arm: mvebu: Drop DM_PCI check from Date: Sun, 1 Aug 2021 18:54:36 -0600 Message-Id: <20210802005446.2267075-24-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.554.ge1b32706d8-goog In-Reply-To: <20210802005446.2267075-1-sjg@chromium.org> References: <20210802005446.2267075-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 --- (no changes since v1) 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.554.ge1b32706d8-goog