Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5749458ioo; Wed, 1 Jun 2022 11:44:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDF7rhzwsGztYv+MoD6ITYG4h9aXwvpBNn+F9MKTuc4iL6RYZS98c4Uw0GIgX5CsiUKpJr X-Received: by 2002:a05:6a00:1348:b0:518:6ef5:ac3 with SMTP id k8-20020a056a00134800b005186ef50ac3mr61197166pfu.69.1654109099528; Wed, 01 Jun 2022 11:44:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654109099; cv=none; d=google.com; s=arc-20160816; b=0LIUULfdNN3zDNc1u1YdxiqdFz+TIILeQMxVL7oq3uVKFd/Bp06/yH9aLPJIrXSXJj jryuqIPsJdhPgLGwTxm/9w6yscvHjG75F/zvjLRkjcH1WtWijFblda+WQmPgPH8feaDM YOBKo9OnBEj3tWtRRniTxBDJPNZdWx7BqmJIjl5dkqYVmiqIAJFZs6coJcJyZBduzNvQ js6ceg1ejKlsTmodQkNu9eU9Ub4bH/kMzt+IvJ/oBpK7nHhrS0NoLCKBe7bMb47G+B+r 5A2no6PPZqcJA4IEQtDpHMhBNoxVfCXZKsWWbPL6m1iV6IRR3gurXu79Hz2zCzf6JipN jRSw== 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:dkim-signature; bh=P0Xr/Fd9GfBK15ltB/N2CHCzT7+ewsuClkQQSJZqHtc=; b=rBuWqD4nLPLbQUBwQnss7EaqKl59NqJbn/JK0HC9mtpTX/4vbsaBYnSfVKjtENXBgn 8dOmfn+Z3lBbDVgWbI9cAVHOf2tKndWdBc1lnAqmwmIEzozZFfX8VpoQXahgYqV54azG 1hTFw0/hBF3+BFnfgHpk47q6yuw4jQDc3aSD+4Z4Tk2Rbe6mURWute9kOpF3ng6YRg97 509F+Wj0D31U5DqhdX23mmkDutMLgGiJtT4FITC2l+X8plo51qQ9tOyNTeEB1gb6bAqc 1WKmpfwc0CPFkCe98rrZmnp7BX2h+EmJNfYH3r8xjrtI0PDQLcjIxdxuLETlu/ZsM61C k6rA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=aQ1r6OuB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q15-20020a17090311cf00b0015cdeea3a8dsi3847887plh.374.2022.06.01.11.44.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Jun 2022 11:44:59 -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=@gmail.com header.s=20210112 header.b=aQ1r6OuB; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id EE84254BC9; Wed, 1 Jun 2022 11:40:24 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241485AbiFAGd2 (ORCPT + 99 others); Wed, 1 Jun 2022 02:33:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35184 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349887AbiFAGd0 (ORCPT ); Wed, 1 Jun 2022 02:33:26 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E4693123B for ; Tue, 31 May 2022 23:33:25 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id u23so1123347lfc.1 for ; Tue, 31 May 2022 23:33:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=P0Xr/Fd9GfBK15ltB/N2CHCzT7+ewsuClkQQSJZqHtc=; b=aQ1r6OuBcEQh/Zfkd0fVtZoce3M2+shUJb2nsWPjY2p+p4SjwgYlan9v2jwSgDXlRU zwW1nZ880mcEhC7zy80rZwexRn2UjfCBjnoIxN65fJWUL7RfU4Q2Q3mBCkXRgxlR7T91 U6l8RQZkED6r/nMMFPMpyiu6VtO77u/Jp+pSPiH7sFgIaFiP82hL9RKABNJ8R7FUhRYA YuBSKrQ4NzMXm2OvIId2q2j4L/yZvwnJBd4w11cBm6hzhcI9OMpMOIWgHxIW66wEbrf/ 6E6EqkOFNgnAxLhfq76YXAF4ZXYV/NqyallAKDLbxzc12ugTi0vMmsIpwLHacowHzNkT Rr2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=P0Xr/Fd9GfBK15ltB/N2CHCzT7+ewsuClkQQSJZqHtc=; b=4B73lovm6rhSGgLKkeKfbJWkZYkIAjlf3EeXIjeP/s4sgaS43hJw/sN2Tg+OEcRe3+ 6MOqb/R6UfSLyh8Fp9jL8w47JdOyQeKUOS3OcE1laisfN4YDa+N7+SGZTpddXhxQJAx8 ESqvv+l/DeDsy4w3WkknqT3ASRrOyXbhrf85w8etkpvqmVNbelwpcXAMDFEXxYZ0MUv9 ArHuaHH63dOg51mCZ12vsvGPbFJhO6hf0XrWh/f9QtDKZUQq8/S/vdK78JHo5pV2r2I0 sxvCp6N4tiOGrnB3oYaiB4cutDye6PgiXv7GQ6iC9RoE8AI8cAs0CuIh9smH5sZ+Ku+h Y9Aw== X-Gm-Message-State: AOAM531reYACGajuIqKFIlAZXy3i2F1yebQ1Nj2IJLFmi1yGybxa4mFq TtF22p9W75Sd/A7t5JEXXRhCu16xYHsFcwIcnon+sxB3 X-Received: by 2002:ac2:4c22:0:b0:478:7c35:a023 with SMTP id u2-20020ac24c22000000b004787c35a023mr32234471lfq.484.1654065203454; Tue, 31 May 2022 23:33:23 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Muni Sekhar Date: Wed, 1 Jun 2022 12:03:11 +0530 Message-ID: Subject: Re: Kconfig rules (depends, imply) To: Randy Dunlap Cc: kernelnewbies , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE 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 Thank you for the clarification. On Wed, Jun 1, 2022 at 1:55 AM Randy Dunlap wrote: > > 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 -- Thanks, Sekhar