Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5867911ioo; Wed, 1 Jun 2022 14:30:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7EJXt0Dso9Olgv4+7xj+KqZS3aGT6Pm+k0qdut7m9KHecdAt2stQbb8jxT7gzn7uTJE3S X-Received: by 2002:a63:2209:0:b0:3ab:113b:9a2b with SMTP id i9-20020a632209000000b003ab113b9a2bmr1201254pgi.235.1654119004958; Wed, 01 Jun 2022 14:30:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654119004; cv=none; d=google.com; s=arc-20160816; b=gX6v5gXqKW56Xgq/vrXtDri5xGOIO+qII3ewvt9ebq6syiZIkfwuIr+Pbv5ottCCUV W/6wXZKDdJD+ZQuRrKL6WG+TblqlRjlzgQFA44BCQQ3ORVq5n6GKq6ogV9l4B09xvSuU 7VRKMM9Eni8l9RPunzWxbwtLv+VQl4ri73v3oWSwk/KzWk4380AYZRmw0mp5GXRKyAMg iq8ybW/BSrc8z1NosjMYE1nMa4lDyUVTS/UnDL4rdGX5zJlcbXD3EkIPal31oUVs/N3A TxNGmQDLYLfrIr+5qqx9Q4+kQauO4DwIERdjDElK4DAXKYazGAfg7+SKCvvqT5JI1uZm ZFiQ== 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=Pi2zX9Fh1F2zwwd9lP/nv2QAiCHqPeUziLacnhOZdD4=; b=qOfQXaXwgMEgwds+N29wxKTSQF63fErmj21iI7OAs4b/7BwGRoLR0BN5GRsb64JQ1E LU6v2cHDWs6VEk+nNKzlCwY1BrlhAA5XUa8uKvX9xvJerkcIECQPnxXLAdXtaHeA4RUX EPuymi9ksUGLyiLdKcDaAVuD9dgqeeNkBPt5qL2y9PSAMTJAXd20cGHkT3t3IizWrmDE h3nAEa0/U8ZY77yk6voSsehuuo4GUKukRA68Y/n2fHU7T477k0KO4F9MM321oyNRiZfh EMDGUtKkQx5MlAWiea6L9ulCCtFwDyraJ/bzVopxdZgWafSsIN09NbaNMVgHo4we7++l o2XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IRNliGkr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f3-20020a635543000000b003f27cfcc9dfsi3396083pgm.828.2022.06.01.14.30.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 14:30:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=IRNliGkr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 82924317165; Wed, 1 Jun 2022 13:19:51 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347719AbiEaU0C (ORCPT + 99 others); Tue, 31 May 2022 16:26:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50688 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347720AbiEaUZ7 (ORCPT ); Tue, 31 May 2022 16:25:59 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A399956FB8 for ; Tue, 31 May 2022 13:25:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date:Message-ID:Sender :Reply-To:Content-ID:Content-Description; bh=Pi2zX9Fh1F2zwwd9lP/nv2QAiCHqPeUziLacnhOZdD4=; b=IRNliGkr/AD0ZcrTdMKn6G9E0L zdIeG585w1UAmMBIdQszzKiivEQLlj2nLyPsN1bsPRO8PtdIUnEDqt60+0xM9iwK+PT66aETliVEI QVf/TS7Mlb6T6zWOAfrKmERe2us4LxYCVD7qf0zoM2NdGBdkrgTbmzhvhXNcI4mR0Owfq0D3O+/dC Pg0bjaJrQSkTBCYifX55iIN2UWRX4kJ+SMRQ3h6btZQ6oIyALg3x2elRvntaY50TQHMqnSENninBh o2DVmPOdwogvYy0EwYezsJILSfQlT629JI7kQZ1KO8+52XwW4scAVvAzNb63PqnL2wQ3MZhExPHDe y49fff+w==; Received: from [2601:1c0:6280:3f0::aa0b] by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1nw8R9-005fl5-W5; Tue, 31 May 2022 20:25:56 +0000 Message-ID: Date: Tue, 31 May 2022 13:25:52 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: Kconfig rules (depends, imply) Content-Language: en-US To: Muni Sekhar , kernelnewbies Cc: LKML References: From: Randy Dunlap 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,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RDNS_NONE,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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-- On 5/31/22 05:14, Muni Sekhar wrote: > Hi all, > > menuconfig SOUNDWIRE > tristate "SoundWire support" > depends on ACPI || OF > > "depends on ACPI || OF" mean, SOUNDWIRE depends on both ACPI and OF modules? > "||" is logical OR, so SOUNDWIRE depends on either ACPI or OF (or both of them can be enabled). > > config SOUNDWIRE_QCOM > tristate "Qualcomm SoundWire Master driver" > imply SLIMBUS > > What does "imply SLIMBUS" mean? See Documentation/kbuild/kconfig-language.rst: - weak reverse dependencies: "imply" ["if" ] This is similar to "select" as it enforces a lower limit on another symbol except that the "implied" symbol's value may still be set to n from a direct dependency or with a visible prompt. So (in your example) SLIMBUS is desired but not required. That means that the code that is built for SOUNDWIRE_QCOM probably needs to use IS_REACHABLE(CONFIG_SLIMBUS) to see if that SLIMBUS code is available at build time. HTH. -- ~Randy