Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4299051imc; Mon, 25 Feb 2019 02:23:39 -0800 (PST) X-Google-Smtp-Source: AHgI3IbGT4HJSit4iV51AToCgVeR7tB852h/L5Nuhmcu1MfpTMrL8liBreY15zNJjIhyHLgQHpJd X-Received: by 2002:a62:1851:: with SMTP id 78mr20015531pfy.206.1551090219176; Mon, 25 Feb 2019 02:23:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551090219; cv=none; d=google.com; s=arc-20160816; b=z1NurD/JZulOL2V/EQV9Zsaf19T382A6liF3doyHV7Nt6xlhGkHglcXI4AcB+LXnA7 qJdVGgSuVaBv/ziEMUUKjUx96HdHHXZkJ4UgIqXUyLA3pIzjJiVBmRI/0f/OcX1/LSgm gzVOPzUInSx1JAx5kS8CSECQJEdlkT8chJAcMXjKVkhRzGt/6nlLGBjB6r73Z4ixl6Fx 2PvDKS3/N7LwQxje/g+u7vLrJ+eFgvGzFq/LJOXh8Slb1FswS0ZUfxBYgwIPU5fcVZLI LArw0g4Q1/r91UU3Dfap8M4Zvg32vqIoCnmudMxgFrP23Kz/wQm2mmFoYlETaKLLBovV Bclg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=qUkIpELYBmxLaXwxNlfgdMu/MAEYJr77m6IW4A6U7ok=; b=l2PR2aZ9oyvP79T+885Bk1Ff0Rlz7vZvD3lOry2P50xz8SibU/DqSRuF/KLTUv23fx zVq49UWBK0OWSJ98iCRLf2brZTwSFsFGhZtaWjgKs3mdnIqJ6lEJpnaaq1cuXxXxRCQV RKZNf0fA4Dk4rA7gVg3mlZEhpAPmysRVrPr+qFMhf314wohvqXNXmXbE23mpj+Sayp7Z NukVlM4t0YXYr03ZgidgvlpHuIMPCz3gbXOmUDxjn9MNaBY31yY2LAOwi20cT5rR7skn fCT36K9IQfAsxme3uQKT91s6fhvsWDQxt8PcEyl08XfqTAHvCtRAH12bD+RvsCx7xRFF SU+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Y4SnZoY3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 33si9803997plu.169.2019.02.25.02.23.21; Mon, 25 Feb 2019 02:23:39 -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; dkim=pass header.i=@chromium.org header.s=google header.b=Y4SnZoY3; 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=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726667AbfBYKW7 (ORCPT + 99 others); Mon, 25 Feb 2019 05:22:59 -0500 Received: from mail-vk1-f194.google.com ([209.85.221.194]:41692 "EHLO mail-vk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726617AbfBYKW7 (ORCPT ); Mon, 25 Feb 2019 05:22:59 -0500 Received: by mail-vk1-f194.google.com with SMTP id b6so1971091vkf.8 for ; Mon, 25 Feb 2019 02:22:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=qUkIpELYBmxLaXwxNlfgdMu/MAEYJr77m6IW4A6U7ok=; b=Y4SnZoY3bJz+hgLpuSqguwzmgP6vjamZpf8Ofwl90xPzfvIQjrw3uX0GykmD/Rln+E iwC/jIDVnDw8+mQwHoaD/6hWDoaDTyQhTisf7qhY2vJIfGiOTlRSotTFxYyF11GQR6CX k99LO9rzPAVx3MHdTATORgQcSGxTPjBQZDykk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=qUkIpELYBmxLaXwxNlfgdMu/MAEYJr77m6IW4A6U7ok=; b=o3PZTLf1NoJI+S0MfYSWhopIkNwPyHOektEzrnUowefqgxzGWfB/i7Xn02aI4nyXmF zC6NHJsKaT+R9zcMPN759FSTpd0dyn4P7l0flx6HEhtnxE8Rr2qewTosSs+zddaDk3x2 c5c0oRUWpX38oWptGd4bSyBgI56xlsLuu2ViPX/yiwr1SZDlvWSvmIywvfNsXcyo9tam m01/x0wYpjSzvyTOERAb6oN3akqYvRwJrGo/dt9KjjpBVjghg4VtcarXHZItlayAu0VJ RMm0eVoPRtt4CnnQkaIXHeA+ppXe5OU+a/bYeU0x+wBFCDYZK+Jof73LbCw1kxAAlfaw xiWg== X-Gm-Message-State: AHQUAua2vZfcQhKaq/JlTSLtZnSXmII6R+xk89MRjuH2IcXNNG55mhIL gI2N7DzhUBp9YaG4Dp51rvKLOZ1gNEcwC9dDQvS40g== X-Received: by 2002:a1f:5e96:: with SMTP id s144mr8730556vkb.74.1551090177364; Mon, 25 Feb 2019 02:22:57 -0800 (PST) MIME-Version: 1.0 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> In-Reply-To: From: Cheng-yi Chiang Date: Mon, 25 Feb 2019 18:22:31 +0800 Message-ID: Subject: Re: [PATCH -next] platform/chrome: Fix Kconfig dependencies for wilco_ec To: Enric Balletbo i Serra Cc: Randy Dunlap , Nick Crews , Benson Leung , linux-kernel , dlaurie@chromium.org, sfr@canb.auug.org.au, Mark Brown , alsa-devel@alsa-project.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 25, 2019 at 6:11 PM Enric Balletbo i Serra wrote: > > 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 > Hi Enric, Yes you are right. Sorry for causing the trouble. I will post a patch to fix it. Could you please let me know what is the command for your build ? Currently I am using command like ARCH=x86_64 make allyesconfig ARCH=x86_64 make -j64 to verify the build, which is not useful to catch bug like this. If you have any other good tip for checking this kind of error please kindly let me know. Thanks! > > > > 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' > > > > > >