Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4290821imc; Mon, 25 Feb 2019 02:12:33 -0800 (PST) X-Google-Smtp-Source: AHgI3IboirdOdRl3I1Rrsakd6XUZyglB1HGRLdVZeI52PcUy1sSiDVFkXN3fbXjf8QPk+Iz56gAO X-Received: by 2002:a62:2008:: with SMTP id g8mr19247049pfg.121.1551089553900; Mon, 25 Feb 2019 02:12:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551089553; cv=none; d=google.com; s=arc-20160816; b=Dhv0IBPnXY3xp2Nyj8om3LrnmHhaWu9LmWwyV4sEAcNVkCeVFhcQoTgrYOQjP9eqYx n+r6dSdxMs3qqgwrZSuCZ+YU44XhPbdbAxE3EjzFCoVbBkYdXUX/19MJfBvTGStSI5rf Xt7IOp/Cj9fA/bjej4UOfBpH9F4bFMlntAZsrUiI4VsoBlb9Sgax0s86OowI66vVdd/F HdK1+DPV2e3RlbwI0Ppu1bRuRNSPIN2TXHvLVEI+pOn+RCg37NRYOZ7WcffsRgT//MeA JHs5gn7ZChKsdZQqbbVfZ524wS6x/Oc1J1cd6gTanxi7VVtn5CXPCBF0+XPWYwOW179f 2+Lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=CLn5jpOAihcalZGoLcFAC9np7BO4BWsXvIh3no5iLSQ=; b=XRf+7ATjAW9olVSEHejmQW4aEo+GoJd8Dvxz6jgM+bJZwzzCQkqCVIIy2gMTOCh9F9 3hnPz/QdcrkNXwtT9oNwB9S92qtQCAYwN/PXzHVBB/L0zNT9ywgivVGtqVoLAH94v8I5 eHSetZecNHSsAta8gVa7oDkevesD1K1yZ7/CkZRG9QSFtgEv5vGnfHjj4vWtZW+Kq+q/ a+Q3aNQDuBb2RlhT5F/UccwxD7huoSPvarJaGI2KiqfnQ0FxvnFOhBa6TeI102ZAtGjD qA4ZfnWVADnZsdnVH77h7GVBI2+FWXuDHR4eaDhQdsy53ztNgbZnnd965WD4hG6UwDWF NfHQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o18si9316169pll.63.2019.02.25.02.12.16; Mon, 25 Feb 2019 02:12:33 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726655AbfBYKLx (ORCPT + 99 others); Mon, 25 Feb 2019 05:11:53 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:37792 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726574AbfBYKLx (ORCPT ); Mon, 25 Feb 2019 05:11:53 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 5D55E27EB98 Subject: Re: [PATCH -next] platform/chrome: Fix Kconfig dependencies for wilco_ec To: Randy Dunlap , Nick Crews , bleung@chromium.org Cc: linux-kernel@vger.kernel.org, dlaurie@chromium.org, sfr@canb.auug.org.au, cychiang@chromium.org, broonie@kernel.org, alsa-devel@alsa-project.org References: <20190220221128.48476-1-ncrews@chromium.org> <420e6e26-6270-e577-6bbc-3ebe884168b5@infradead.org> <765ebb17-4523-d915-bdce-9ecde26836f0@collabora.com> <9ac9ee8e-cd7a-10e4-e176-428344e980a6@infradead.org> From: Enric Balletbo i Serra Message-ID: Date: Mon, 25 Feb 2019 11:11:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <9ac9ee8e-cd7a-10e4-e176-428344e980a6@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Randy, Thanks for the report On 22/2/19 17:50, Randy Dunlap wrote: > On 2/20/19 11:57 PM, Enric Balletbo i Serra wrote: >> Hi, >> >> On 21/2/19 0:09, Randy Dunlap wrote: >>> On 2/20/19 2:11 PM, Nick Crews wrote: >>>> In the initial version of the Wilco EC Driver, the >>>> dependency order was wrong. It before was possible to >>>> select CONFIG_WILCO_EC and CONFIG_CROS_EC_LPC without >>>> having CONFIG_CROS_EC_LPC_MEC. This was wrong, since >>>> WILCO_EC depends upon CONFIG CROS_EC_LPC_MEC, not the >>>> other way around. >>>> >>>> Fixes: 1733c32834e5d1 ("platform/chrome: Add new driver for Wilco EC") >>>> Signed-off-by: Nick Crews >>> >>> Reported-by: Randy Dunlap >>> Acked-by: Randy Dunlap # build-tested >>> >> >> As this is [-next] material I squashed that commit and queued for 5.1 > > Hi, > > on linux-next of 20190222, I now see this build error + Kconfig warnings: > > (this is on i386; randconfig file is attached) > > WARNING: unmet direct dependencies detected for SND_SOC_CROS_EC_CODEC > Depends on [n]: SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && MFD_CROS_EC [=n] > Selected by [y]: > - SND_SOC_SDM845 [=y] && SOUND [=y] && !UML && SND [=y] && SND_SOC [=y] && QCOM_APR [=y] This error seems to be introduced by following commit. commit 74c6ecf4194ebed285b29964a950e0cd7414fe19 Author: Cheng-Yi Chiang Date: Mon Feb 18 12:18:19 2019 +0800 ASoC: qcom: Kconfig: select dmic for sdm845 sdm845 uses dmic on EC so it should select CROS_EC_CODEC. Signed-off-by: Cheng-Yi Chiang Signed-off-by: Mark Brown The problem is that this commit selects CROS_EC_CODEC but the CROS_EC_CODEC depends on MFD_CROS_EC which is not selected. A question for Cheng-Yi, I suppose that the answer is yes but worth ask because I don't know about this device. Is the sdm845 a chromebook with and embedded controller right? Thanks, Enric > > ld: sound/soc/codecs/cros_ec_codec.o: in function `ec_command_no_resp': > cros_ec_codec.c:(.text+0x50): undefined reference to `cros_ec_cmd_xfer_status' > ld: sound/soc/codecs/cros_ec_codec.o: in function `mic_gain_get': > cros_ec_codec.c:(.text+0x5a8): undefined reference to `cros_ec_cmd_xfer_status' > > >