Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp467880pxb; Thu, 2 Sep 2021 08:07:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQyK0aE/h7GAZEu4gebT+7Ij6+Eq0C40U6Ge9FVLVCRK6G9ZE10KJ0XzhVP/usq0kaiKkD X-Received: by 2002:a17:906:f92:: with SMTP id q18mr4398626ejj.353.1630595219806; Thu, 02 Sep 2021 08:06:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630595219; cv=none; d=google.com; s=arc-20160816; b=rnqfUsJ0w72UP7KfXo7NVL1TdI0YurPNwD82sxYwOLuQb0Ok3tQoKykgfnQ7Lozbry OPpz1rlr3j3/2IeKM9VdsF/HIrbbXLIQI/eBjbndweLj9z3Zw7wIt9B0q57gcq8A9MCI UlVc6I71zuAVVcYb2aeUrE76v52NQST+rHLiK0Id9/zPjryGZCavOkAodWWBKWs+t+X/ bKSlAhmtu21anLtdK4pNebmaH6gHdm2jNtGQpSn3XmG9RdzEwpFrj5l3Xd1boZx1V8sm kQx4IfOpyFZEwSIOXR5FInA6o3S8/9/BopYWE731Dv2rIxIXNIBPPcB2n/Z8/+xH27XK oIHA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=gMcxpjuGsNFnCXtuw9DaZHfBW3X0dXUC7HXcFVsudy0=; b=TWJ4/AdPhjf4oDJVq9SzHzBNE7n/h94sBYgJ6hoRsL9hgE2lw3b90noRu7av3PyAVR /nXAUqmOaC/YJ8D+6kUykugyMUDPQtubfeaswqyzI++plbFhQ5zg4JDQC8XMKf21E20W J66yDeQwTQ76icvpHdh0CVSOCj4cXOUNhw3LxHzEIFvqPscNCiPpf5LkXol25pZv5Gc+ d8g6BOiZe4D2QvPDQeBwbmXcKYYXa/Nkn7lCddKrdf+xBTnsZTTdsW19q047Abc52vaT 4AA2veLCyfJZUc4Goqr8eU/ZywncRg4543DzpN6AzMCA2v3ggKqlycBjmYD2K7vh6yDR 7f8A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k24si2263456edv.610.2021.09.02.08.05.54; Thu, 02 Sep 2021 08:06:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345668AbhIBPDe (ORCPT + 99 others); Thu, 2 Sep 2021 11:03:34 -0400 Received: from mga05.intel.com ([192.55.52.43]:4229 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235049AbhIBPDd (ORCPT ); Thu, 2 Sep 2021 11:03:33 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10094"; a="304708106" X-IronPort-AV: E=Sophos;i="5.85,262,1624345200"; d="scan'208";a="304708106" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2021 08:02:20 -0700 X-IronPort-AV: E=Sophos;i="5.85,262,1624345200"; d="scan'208";a="689144054" Received: from elee5-mobl.amr.corp.intel.com (HELO [10.212.50.6]) ([10.212.50.6]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Sep 2021 08:02:19 -0700 Subject: Re: [PATCH v2] ASoC: Intel: boards: Fix CONFIG_SND_SOC_SDW_MOCKUP select To: Nathan Chancellor , Cezary Rojewski , Liam Girdwood , Jie Yang , Mark Brown , Fabio Aiuto Cc: linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, Takashi Iwai References: <20210802190351.3201677-1-nathan@kernel.org> <20210802212409.3207648-1-nathan@kernel.org> From: Pierre-Louis Bossart Message-ID: Date: Thu, 2 Sep 2021 10:02:18 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.13.0 MIME-Version: 1.0 In-Reply-To: <20210802212409.3207648-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/21 4:24 PM, Nathan Chancellor wrote: > When CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH is enabled without > CONFIG_EXPERT, there is a Kconfig warning about unmet dependencies: > > WARNING: unmet direct dependencies detected for SND_SOC_SDW_MOCKUP > Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && > EXPERT [=n] && SOUNDWIRE [=y] > Selected by [y]: > - SND_SOC_INTEL_SOUNDWIRE_SOF_MACH [=y] && ... > > Selecting a symbol does not account for dependencies. There are three > ways to resolve this: > > 1. Make CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH select > CONFIG_SND_SOC_SDW_MOCKUP only if CONFIG_EXPERT is set. > > 2. Make CONFIG_SND_SOC_SDW_MOCKUP's prompt depend on CONFIG_EXPERT so > that it can be selected by options that only depend on > CONFIG_SOUNDWIRE but still appear as a prompt to the user when > CONFIG_EXPERT is set. > > 3. Make CONFIG_SND_SOC_INTEL_SOUNDWIRE_SOF_MACH imply > CONFIG_SND_SOC_SDW_MOCKUP, which will select > CONFIG_SND_SOC_SDW_MOCKUP when its dependencies are enabled but still > allow the user to disable it. > > Go with the third option as it gives the most flexibility while > retaining the original intent of the select. > > Fixes: 0ccac3bcf356 ("ASoC: Intel: boards: sof_sdw: add SoundWire mockup codecs for tests") > Suggested-by: Pierre-Louis Bossart > Signed-off-by: Nathan Chancellor This patch was missed, maybe because I didn't provide a formal ack on my own suggestion, so here goes: Acked-by: Pierre-Louis Bossart Mark, can you add it to 5.15 fixes please? Thank you. -Pierre