Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3189794rwr; Sat, 29 Apr 2023 02:28:44 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6/Tv/fJ5XOYT2HqowZfftDQ0pmEB+B87r+GbnIb15CassAMvzTaSIDHKvKfyzGu4cjfHzp X-Received: by 2002:a17:903:124c:b0:1a6:6bdb:b548 with SMTP id u12-20020a170903124c00b001a66bdbb548mr9392337plh.1.1682760524029; Sat, 29 Apr 2023 02:28:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682760524; cv=none; d=google.com; s=arc-20160816; b=PyYQyGdt/CAEL5xkZtj/coZFvbN4E+c225tpfpfG3iX/x4bAHSJH+AA1lpJ/b0pgt0 ei8+HkjJJu34jsnfj4Nz1vl3Q4NF3jLv4H2trpX8skq+TcEN3RKDH8UKLdYNYXiwkUIH 6Y1/D6r5PC9dgN5gveccti3hujocTjL8ztonSofNYtwNq0hZUtc8HhuE6ytpA1r+8c5s QeAbd1Vp48SSfHtKDAnsirfSeRFn6QWjlvZlWNSoCYUpopcpL5mlXqoQ8CDA8Qf7gka6 RhuppvZ596/Vvov9fPdhBr7lpHFDexazVBJ2YgXSZ591ZU9sHbf+p8oR8QblMHFMK1ka dFnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=9F4ysEe0ZUJ4F+QWX4LcPUiphIoyOoY5LAq0jpn51Aw=; b=nb7+8mbfimcIXGkHxopEEwdVA1c2lj0xwsuByyNEZc7/1jPxp87ajulP03IAZRS6pQ RUdD0KAJugtKInOSA8Hq1qFnpODuAlxyRnF7Y5BgsQVaq30a2HhumbliF7e/SbSxErZE P7LQ5TXHDmou199iPyZo+AbSB0bce0mkNLdPqMf6vfCzvxvdRfC1mrOYh87Dz76uGhWM g+uBBsiRv3gAc+cE1t1McY3QvqEyDRQyZOp7BkVbK3Rp1HIZt2eU/8ZLlI0EGR+8YHFp rSWgI85yZc3nU2nmJlMu5JYeojYX9/BgkaDf+xkTBFZ3UtIEMddxue6ioGKUeurT+S4C B/pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Xw8o4gM3; 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 z18-20020a170903019200b001a522569381si23774579plg.301.2023.04.29.02.28.20; Sat, 29 Apr 2023 02:28:44 -0700 (PDT) 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=Xw8o4gM3; 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 S229948AbjD2J1f (ORCPT + 99 others); Sat, 29 Apr 2023 05:27:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36866 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229477AbjD2J1e (ORCPT ); Sat, 29 Apr 2023 05:27:34 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A67431BD2 for ; Sat, 29 Apr 2023 02:27:33 -0700 (PDT) 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 378A7611A3 for ; Sat, 29 Apr 2023 09:27:33 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 660B1C433EF; Sat, 29 Apr 2023 09:27:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682760452; bh=C7dMA9Z/iKBRGFbjoyJ2bomBnZC1VqbWRGo6yQ1QK1U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Xw8o4gM3slKEVPD0DLEt33s9B70AcPKChr00qgQtKpr/PZKiMrxklFOy7baTp3231 oHk//apL5S1GCTw9iqrVsPUGFWR56Fr2lgTUT9IMdD+ILga/uhLYMfK121jPrtjUYk WUuYacFZVScLrSVVzzpmNRGO5G1qjahKsJguMlcPWQxRSHE8/BQT+i/goWA6AACf41 nd+hqL8bjS4+FE+EvxrL7TqNtmPMqx14CWIQCR7x+reMgk2jATlwiHgK+WRsyl4PsW 1Sa0HhBuoOezZy4H+Wf7yW1mVXZ2itHXsOxMRmcpWlHuBfgIoE8ZBZSK4OPqJr19bv EAY1D4nr046fA== Received: by pali.im (Postfix) id 3821D7AC; Sat, 29 Apr 2023 11:27:29 +0200 (CEST) Date: Sat, 29 Apr 2023 11:27:29 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Michael Ellerman , linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH -next?] powerpc/fsl_uli1575: fix kconfig warnings and build errors Message-ID: <20230429092729.znfdx7tlcpz7ce63@pali> References: <20230429043519.19807-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230429043519.19807-1-rdunlap@infradead.org> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.3 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,T_SCC_BODY_TEXT_LINE 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 Friday 28 April 2023 21:35:19 Randy Dunlap wrote: > Neither FSL_SOC_BOOKE nor PPC_86xx enables CONFIG_PCI by > default, so it may be unset in some randconfigs. > When that happens, FSL_ULI1575 may be set when it should not be > since it is a PCI driver. When it is set, there are 3 kconfig > warnings and a slew of build errors > > WARNING: unmet direct dependencies detected for PCI_QUIRKS > Depends on [n]: PCI [=n] > Selected by [y]: > - FSL_PCI [=y] > > WARNING: unmet direct dependencies detected for GENERIC_ISA_DMA > Depends on [n]: ISA_DMA_API [=n] > Selected by [y]: > - FSL_ULI1575 [=y] && (FSL_SOC_BOOKE [=n] || PPC_86xx [=y]) > > WARNING: unmet direct dependencies detected for PPC_INDIRECT_PCI > Depends on [n]: PCI [=n] > Selected by [y]: > - FSL_PCI [=y] > > and 30+ build errors. > > Fixes: 22fdf79171e8 ("powerpc/fsl_uli1575: Allow to disable FSL_ULI1575 support") > Signed-off-by: Randy Dunlap > Cc: Pali Rohár > Cc: Michael Ellerman > Cc: linuxppc-dev@lists.ozlabs.org > --- > arch/powerpc/platforms/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff -- a/arch/powerpc/platforms/Kconfig b/arch/powerpc/platforms/Kconfig > --- a/arch/powerpc/platforms/Kconfig > +++ b/arch/powerpc/platforms/Kconfig > @@ -265,6 +265,7 @@ config CPM2 > config FSL_ULI1575 > bool "ULI1575 PCIe south bridge support" > depends on FSL_SOC_BOOKE || PPC_86xx > + depends on PCI > select FSL_PCI > select GENERIC_ISA_DMA > help Ok, looks like a reasonable solution for this issue. These kind of cleanups (as done in uli1575 patch series) are always problematic as they can break some unusual configuration... Reviewed-by: Pali Rohár