Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7201853rwb; Tue, 15 Nov 2022 08:57:11 -0800 (PST) X-Google-Smtp-Source: AA0mqf5se8rrNaFArm7w4yNZcIV3aljREcXnco2lOuThHAYAKKb6My4bzBOR6KQUWelukKvsSRQO X-Received: by 2002:a17:906:82c9:b0:7ad:aedb:140b with SMTP id a9-20020a17090682c900b007adaedb140bmr15035180ejy.477.1668531430875; Tue, 15 Nov 2022 08:57:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668531430; cv=none; d=google.com; s=arc-20160816; b=ptitPtVHUoJNO8gaDny11W7GXAdrRuDda62gbK1x+ZUG2fxYb6oMu26eovXFJGLHZw ABRz5GUfaj7DuwVDznq4sZVn0q+k+IT3QKlBgZtQEc56kPxwCy1br9cPeMAGCJOhZZGy NTH8OoH8XlGR3C8QEYbWovBYNPSLASfT3zrp2nqi3PCr68HyGciN42za66Dj0D7Eu0Oj oPU3iTLK7cQLU3KGMtnatqMMLeNWqIs/L4/ejjmavNoT0acZt3xq1sKuwc/P2v/4gMmg BBJy6Us3Gpqllo1fFZ2uslBTgdXgM8ZPrnk6AOG7BDaaPE2QrfRQ9D9S5CcAKw3qDcxr FpBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version; bh=H013QBKjRovKMY+J7sz4b+GT3yfcFXzKqi34BAfCqyI=; b=Ep72Y6fy4HeF9x9fQJ1bInH8utqD1t6FF3wvJuHMwRWNPOjyDGATGhcPjIp8wFeN+2 5EZ93f7lPzwvuBvQyxMsrVMBYlLDc60UojqQIR5uIqIaIjEk0Bqp7HsRCRQXSgiILkP0 tfBxoFq4Xr6sCQ+kUkt5se80ah0Se7vEfQ0S5WiQ+yqabTYi/VgShlJYX+MTAHEqwCp1 e9bazGRQ6s6bVFwfcJlaAX/IoN6+dAfZA66lp2qJCvrvql1iP1APO2WmA/pY+YXvonGe /wR3sRx3yq4cIt7xKeqVA1ADyOIfX+JZjuM9hY8gkIKlBgPz0S1akrvtWPJpU6zaWJPI WZmQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x7-20020a05640226c700b004520e27e5b9si14149616edd.626.2022.11.15.08.56.48; Tue, 15 Nov 2022 08:57:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231168AbiKOP40 (ORCPT + 90 others); Tue, 15 Nov 2022 10:56:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51486 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230420AbiKOP4Y (ORCPT ); Tue, 15 Nov 2022 10:56:24 -0500 Received: from mail-qt1-f180.google.com (mail-qt1-f180.google.com [209.85.160.180]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AA092CE0A; Tue, 15 Nov 2022 07:56:24 -0800 (PST) Received: by mail-qt1-f180.google.com with SMTP id e15so8974792qts.1; Tue, 15 Nov 2022 07:56:24 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=H013QBKjRovKMY+J7sz4b+GT3yfcFXzKqi34BAfCqyI=; b=dLqj0zeDnOpbSJUgLCfH9nDX8IH+iD54WrkNsglQ5M5ZKK7XxfiuZmM0x7gFCf2qLl VcOydFOEco+LCbuPn9qPWPpzSoSFBvCHGb43ejOpTZoPFahFT5pf2YEyUkDu4H3FCDNl x0o9O77uJ6PhxhiRk6cgZL6m4pTDMu/4btk1UzSm1/4DsnzhNLaicrby5X1s9UB3X0gk HkwVFWqBEpgqYnp8HBVGV8sPzDEcw6tQxyKMzz9fEusdZZ/XD3AVmVol21Wd142lZCw3 nOvJj78tt9uNwVwu3OJJr88VHK0ZSMPboPyod6FpNLFMTi2BTY8AEpx3VHqE9XLE5kBG ZWTg== X-Gm-Message-State: ANoB5pkijuqxPqFUEM3BMjmNkC9/JuUW3YjkUyYxNTzJ/RF4YRH+xEB0 pogIg3LsEa7zMqXY10jvQe/JlGG3nw5S+w== X-Received: by 2002:a05:622a:4ccc:b0:3a5:9370:ccf4 with SMTP id fa12-20020a05622a4ccc00b003a59370ccf4mr16769589qtb.376.1668527783115; Tue, 15 Nov 2022 07:56:23 -0800 (PST) Received: from mail-yb1-f179.google.com (mail-yb1-f179.google.com. [209.85.219.179]) by smtp.gmail.com with ESMTPSA id t19-20020ac865d3000000b003a527d29a41sm7299870qto.75.2022.11.15.07.56.22 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Nov 2022 07:56:22 -0800 (PST) Received: by mail-yb1-f179.google.com with SMTP id i131so17496350ybc.9; Tue, 15 Nov 2022 07:56:22 -0800 (PST) X-Received: by 2002:a25:18c5:0:b0:6de:6183:c5c3 with SMTP id 188-20020a2518c5000000b006de6183c5c3mr17442157yby.89.1668527781626; Tue, 15 Nov 2022 07:56:21 -0800 (PST) MIME-Version: 1.0 References: <20221025191339.667614-1-helgaas@kernel.org> <20221025191339.667614-3-helgaas@kernel.org> In-Reply-To: <20221025191339.667614-3-helgaas@kernel.org> From: Geert Uytterhoeven Date: Tue, 15 Nov 2022 16:56:10 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] PCI: Drop controller CONFIG_OF dependencies To: Bjorn Helgaas Cc: Lorenzo Pieralisi , Rob Herring , =?UTF-8?Q?Krzysztof_Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bjorn, On Tue, Oct 25, 2022 at 9:16 PM Bjorn Helgaas wrote: > From: Bjorn Helgaas > > Many drivers depend on OF interfaces, so they won't be functional if > CONFIG_OF is not set. But OF provides stub functions in that case, so drop > the OF dependencies so we can at least compile-test the drivers. > > This means we can compile-test the following drivers even without CONFIG_OF > enabled (many still require either CONFIG_COMPILE_TEST or the relevant > arch): > > aardvark > al > apple > brcmstb > cadence-host > cadence-platform-host > cadence-ep > dra7xx-host > dra7xx-ep > dw-rockchip > ftpci100 > hisi > intel-gw > ixp4xx > j721e-host > j721e-ep > kirin > layerscape-host > layerscape-ep > mediatek > microchip-host > mobiveil > mvebu > qcom-host > qcom-ep > rockchip-host > rockchip-ep > rockchip-dwc > pci-host-generic > uniphier-host > uniphier-ep > v3-semi > xilinx > > Signed-off-by: Bjorn Helgaas Thanks for your patch, which is now commit 51dfb612ab3becf9 ("PCI: Drop controller CONFIG_OF dependencies") in pci/next. > --- a/drivers/pci/controller/Kconfig > +++ b/drivers/pci/controller/Kconfig > @@ -8,7 +8,6 @@ config PCI_MVEBU > depends on ARCH_MVEBU || ARCH_DOVE || COMPILE_TEST > depends on MVEBU_MBUS > depends on ARM > - depends on OF This is exactly why we have the COMPILE_TEST symbol. There is no point in bothering all users who configure kernels with questions about drivers that won't function anyway due to missing dependencies, unless the user explicitly wants to do compile-testing. So all of these should become: depends on OF || COMPILE_TEST > select PCI_BRIDGE_EMUL > help > Add support for Marvell EBU PCIe controller. This PCIe controller > @@ -98,7 +94,6 @@ config PCI_HOST_GENERIC > > config PCIE_XILINX > bool "Xilinx AXI PCIe host bridge support" > - depends on OF || COMPILE_TEST This one was fine. > depends on PCI_MSI_IRQ_DOMAIN > help > Say 'Y' here if you want kernel to support the Xilinx AXI PCIe Thanks in advance for reverting or fixing! Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds