Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp5857138iob; Tue, 10 May 2022 05:27:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzQRRUbzXUUPxt7lsYJsq26ftWUfDSfXdQGrK+AHC66mBl4ohQXr+7tT/kQPlS0XyX9eCmW X-Received: by 2002:a05:6402:3208:b0:427:d928:e3d2 with SMTP id g8-20020a056402320800b00427d928e3d2mr23241212eda.240.1652185624412; Tue, 10 May 2022 05:27:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652185624; cv=none; d=google.com; s=arc-20160816; b=oxLQudhWvnegonUPqFgVifG/LVuO2T+6Ak2i6JRXmBV/L6HZggCiA73Aj3f6dmceEL Cz+QdsOznHgxv4h4JQ0ppQFg2XjqCJIC7iwb9wIGJyO6lP2OVNlwd4cNv0nJp8HzDwzS Fcete1kk7Iu/RZXKH2RwZmPDb5C9wkSFMHxYL0qfVQDRV0ksRGm1JWqg/F2dfcJg1bcp RqOLpZ05cs1LrV6JWDsgAUhnniZvA4JTvo2g4PcfZNmdVwZCAVfD0WP77jhRwsBJqeu8 Exw/VbFqAIKaOgjNyE4a/Jtwp2MAQq7EMLxFye6Iqw0txeucn8yzG5njrjGNDlnH7qxt v1CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=6RZWCbAFEodD2+2XSMEoagvUogOze2cw3QzyxFw/BDQ=; b=hlBNP67mBCckvkmL7xsTQwYB4O3u0l0itlrcCyWKS8AIrBEfb27ovaOW8Lof2aVXKf AGoS7wFP09u5O4Z57owjSsCq10xhr2hdSp7V5e9mjENhGGpgcWFxh1ITzeeA0GmSTZst T1Mt5YGWbf+mt9YOG6omT7UTwyVOXJIlPOv4i4TKSh/ff3BGRgwtuBKrdmnZzlocdcbK BQMDFOcgupnv7vuE3dUina1HGFsS3ZjUwjcW1RdOUzJXNV43LYA9ympfDXI/3XftzJAT HsJt5GbiO7DymzvJ7IvoJKdQ3ye7gysI57kivdqm2QiGjYYL6c6JyIpvAaVMps1saNm/ zwMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tgeEd74z; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y14-20020a170906448e00b006f379b8cc27si17345893ejo.184.2022.05.10.05.26.40; Tue, 10 May 2022 05:27:04 -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=@linaro.org header.s=google header.b=tgeEd74z; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235672AbiEJHsS (ORCPT + 99 others); Tue, 10 May 2022 03:48:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51562 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235464AbiEJHpw (ORCPT ); Tue, 10 May 2022 03:45:52 -0400 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5942CF29D9 for ; Tue, 10 May 2022 00:37:00 -0700 (PDT) Received: by mail-ed1-x533.google.com with SMTP id g23so18930233edy.13 for ; Tue, 10 May 2022 00:37:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=6RZWCbAFEodD2+2XSMEoagvUogOze2cw3QzyxFw/BDQ=; b=tgeEd74zRUA5aO1Do8LwMzp/J1ozn+9YH1LrXvTSv/C+z7ex3kM0d2ODIFPoyr17PP nrH1NlExLYf0J6IkMJUpZzAXHDjo3dbx2UIzk3LVeQxQUiLKXnBmD24avQgq7JIUpUNv BvQASI3UfasFBVTdby7HX4OHej8bHtsCSM0BxXvZsmj6d008CgdRuHFVAh2yqvIoOsnz Q+Y2qy0IokBsZRt75QRHC/eb84dCwkozQd1A9z3ZjPOxDw86e8NyvVmr2f/tkvTOKyyC nLQw9fD75PV/1fIdAgXHIJ5xinRE5+m4Mm10+dc29VSAuRdTXGA9cap1t7tqu9j61Mgm 5TqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=6RZWCbAFEodD2+2XSMEoagvUogOze2cw3QzyxFw/BDQ=; b=MtIIXdNqbNso9fD3IGFz2G0RVOaOPKR8p2APfCjlCk0MACctW2hmYstMI5c2QAEw8M 2pe1jUxtBRTW4P03bc703vjDTMIGVhXi1brLyxHneQmfg9wYVzYEBwdhPI0bzbrIRUji HEpw5MofS3+SuC9FKaBMguBD54b8/ifX7w8nE1J+ffQ21bHFndHjIxCAZZ6CW0EqMfQj MxR6LniH5+m0FaJrW3SMoVooI+h929B+7E6gxnfpK5Bwcl1Cu5gJfWI5B8SEUZls5CUP 8TWoN/hZjYLOwjnoQxg3jfxaebfY6ZaBJGtiWPETR1uDQzTRo8ZEPpMJC5LmBa+ComQq kd8g== X-Gm-Message-State: AOAM531doquib3gXAGW0jzlRgkX2Hl75Mqp6M3qCTKdkAHpRmLeJqUIH htdxBJjIP28ERMpP1Q17ZhMwobAMsdq1wuw1 X-Received: by 2002:a05:6402:4301:b0:427:c8e4:4acd with SMTP id m1-20020a056402430100b00427c8e44acdmr21961658edc.230.1652168218886; Tue, 10 May 2022 00:36:58 -0700 (PDT) Received: from [192.168.0.250] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id hx15-20020a170906846f00b006f3ef214e4csm5964412ejc.178.2022.05.10.00.36.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 10 May 2022 00:36:58 -0700 (PDT) Message-ID: Date: Tue, 10 May 2022 09:36:57 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH] memory: OMAP_GPMC should depend on ARCH_OMAP2PLUS || ARCH_K3 Content-Language: en-US To: Geert Uytterhoeven , Roger Quadros Cc: Tony Lindgren , "open list:TI ETHERNET SWITCH DRIVER (CPSW)" , Linux Kernel Mailing List References: <2b7d411b4a7913335082c858cb0d63b9e4bf7c5b.1652103920.git.geert+renesas@glider.be> <20fd1a74-c0f5-d8e9-4903-b74c185d5aa3@kernel.org> From: Krzysztof Kozlowski In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 10/05/2022 09:30, Geert Uytterhoeven wrote: > Hi Roger, > > On Tue, May 10, 2022 at 9:22 AM Roger Quadros wrote: >> On 09/05/2022 16:48, Geert Uytterhoeven wrote: >>> The Texas Instruments OMAP General Purpose Memory Controller (GPMC) is >>> only present on TI OMAP2/3/4/5, AM33xx, AM43x, DRA7xx, TI81xx, and K3 >>> SoCs. Hence add a dependency on ARCH_OMAP2PLUS || ARCH_K3, to prevent >>> asking the user about this driver when configuring a kernel without >>> OMAP2+ or K3 SoC family support. >>> >>> Fixes: be34f45f0d4aa91c ("memory: omap-gpmc: Make OMAP_GPMC config visible and selectable") >>> Signed-off-by: Geert Uytterhoeven > >>> --- a/drivers/memory/Kconfig >>> +++ b/drivers/memory/Kconfig >>> @@ -105,6 +105,7 @@ config TI_EMIF >>> config OMAP_GPMC >>> tristate "Texas Instruments OMAP SoC GPMC driver" >>> depends on OF_ADDRESS >>> + depends on ARCH_OMAP2PLUS || ARCH_K3 || COMPILE_TEST >>> select GPIOLIB >>> help >>> This driver is for the General Purpose Memory Controller (GPMC) >> >> Is there any possibility that CONFIG_IRQ_DOMAIN is not set while both >> OF_ADDRESS and COMPILE_TEST are set? >> >> That particular case will lead to build failures. >> >> e.g. >> https://krzk.eu/#/builders/63/builds/162 > > So it needs an additional dependency on IRQ_DOMAIN. > That is a pre-existing problem, not caused by my patch (which adds > more dependencies, and doesn't remove any). Is this really a case here? The failure reported above was for earlier version of Roger's patch which was changing to: depends on OF_ADDRESS || COMPILE_TEST Here, OF_ADDRESS will be always a dependency. If it builds in current configuration (having only OF_ADDRESS), then adding dependencies should not cause more issues.... It only restricts the config, not widens it. Therefore the patch looks actually correct, but some testing would be nice that we don't hit the same issues as before. Best regards, Krzysztof