Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7554396rwb; Tue, 15 Nov 2022 14:13:50 -0800 (PST) X-Google-Smtp-Source: AA0mqf4ewG2xNXaXL4GaljRllSzFPS/qD2yRxnBZ5UrC9xEvPn1cYuwvdpBuHLPbwcb1lvZ2YCTS X-Received: by 2002:a63:2347:0:b0:476:d128:a973 with SMTP id u7-20020a632347000000b00476d128a973mr2508965pgm.469.1668550430416; Tue, 15 Nov 2022 14:13:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668550430; cv=none; d=google.com; s=arc-20160816; b=xHPCMdxKwJ5KlUnmgY/UxDDCxzDIhvpqiQ/ibGKbjxDcteKaNpRMPOyrUnGhVySvo7 EkEEQHmdnwyT/lfCn9pTpaZo8KLWoBtUyIeWjBDKwstiCqfmVkh6F8ca8KvvXwrMtWzV 9iJrsRmDkMaG7ws2ij2HOgtWDFHglzaI06CSM152NJAHu0llAe19mBp9ok07j++SNJFv Y/7OTTpNQ5R0A6q+RYekjRFc7er8zwkA2zs2OwPqvR8Z0S9aDIcYW7ygAGEtLvZfF6+E jQENmnKzv2xNVX5vrvt3O7PbZIiIDC7EeyOLzbQq/O8XhhkmXq+4z6XIikwY/RzpF/Gr jsHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:message-id:subject:cc:to:from:date :dkim-signature; bh=b00dzLaSP3Q+AqLq9cUvQ7iobAhINEWh+8es5r0YdkI=; b=zy+841zxoqZOQzblofa6P8icrdjscbSjW7tuOocgC3sQlwu5i8cjGR86bfzCR7fZ8o slI9AvtHM/jPXocwh0SnetqHWEVCs0SRJlLt+ahDoZWfonLuSuFHm00BFoKOTqy4a0IU c3tQqUMVD80rxIODPnrOYnNml6CCV5bL0MCS1i/0GzBRWhflJ7Ron28evHczUfK0nrux WVeaq8VRJ5QQnlUpACt6Nwk3PS24Q77n2o0nNV/hrzWPuqG3gFq/IhLJXn1dmFQFlk1r QsTZgrGtJn3jQxbF/g6IxrtK1tOgJXCNLne/eS11JnjkrqCtP12gXAUT8Q+xP/qPeBRA 7qTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nIg4L4bx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu16-20020a17090b1b1000b0020b304225b4si129997pjb.104.2022.11.15.14.13.38; Tue, 15 Nov 2022 14:13:50 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=nIg4L4bx; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238500AbiKOUx6 (ORCPT + 90 others); Tue, 15 Nov 2022 15:53:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238598AbiKOUxq (ORCPT ); Tue, 15 Nov 2022 15:53:46 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45DCAE51; Tue, 15 Nov 2022 12:53:45 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 76696619F4; Tue, 15 Nov 2022 20:53:45 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id B461BC433C1; Tue, 15 Nov 2022 20:53:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668545624; bh=QtEMXmU7rn5ebyaLLdCAgveTJ9apGDanAfmeQR5mDqw=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=nIg4L4bxNYzRM4/zjuO1mZ8QdSy7qK9WvzdtoOQDHm8PK4a3YNEniblOzzgI5vgPP sWV2keulBuZ72DytYmxrlX+5odfNRbrJxWJKBwRXPqenf4OL9VFJdnWEGSN8IX658v tEHugTVr3zNdI+r+mTAsFHlUleYAp3UlXJ65zOvXzu7J5wNH19hQxuo3LNUOo+81fm koxnMc45Jk1ndKYbfCATfDszOtvxal9gN2VpE9bENX4zAZYnKcgB0M2DKTdSsMPX7J DIjf/3vZTDoLrc8rYxMfQHZ0MQVgBF6ztq5Qi+JLGMnOOp/0NIWILG9pfm9IGIBVMS OYWXHQHqO+lpw== Date: Tue, 15 Nov 2022 14:53:43 -0600 From: Bjorn Helgaas To: Pali =?iso-8859-1?Q?Roh=E1r?= Cc: Geert Uytterhoeven , Lorenzo Pieralisi , Rob Herring , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , linux-pci@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Bjorn Helgaas Subject: Re: [PATCH 2/2] PCI: Drop controller CONFIG_OF dependencies Message-ID: <20221115205343.GA1038784@bhelgaas> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20221115193155.mqdh6pzhiba4v4pa@pali> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 On Tue, Nov 15, 2022 at 08:31:55PM +0100, Pali Roh?r wrote: > On Tuesday 15 November 2022 12:07:34 Bjorn Helgaas wrote: > > On Tue, Nov 15, 2022 at 04:56:10PM +0100, Geert Uytterhoeven wrote: > > > 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. > > > > > > --- 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 > > > > Oh, yes, thanks for pointing this out, I totally blew it here. I > > dropped this while we figure it out. > > I agree too, it really makes sense to not provide pci-mvebu driver to > end users without OF - it would not work. > > Anyway, it is needed to declare "depends on ARM" for pci-mvebu? > Both supported architectures (mvebu and dove) are ARM. If you're asking whether "depends on ARM" can be removed for PCI_MVEBU, I don't know the answer. I do see that CONFIG_ARCH_MVEBU is mentioned in arch/arm64, which doesn't seem to set CONFIG_ARM. In any event, I would consider a change like that to be a separate patch. Here I just want to focus on CONFIG_OF. Bjorn