Received: by 2002:ac0:b08d:0:0:0:0:0 with SMTP id l13csp4491186imc; Mon, 25 Feb 2019 05:58:50 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ8zGlG3YR6ZycwcWolsgEZIq2lIi86cAHP3NqJYhIYgdHK4z30akPuhdfouSb7ptf5Ek9s X-Received: by 2002:a63:6a07:: with SMTP id f7mr19200520pgc.118.1551103130055; Mon, 25 Feb 2019 05:58:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551103130; cv=none; d=google.com; s=arc-20160816; b=FerRBEg6REeWx1Pb7o+5p3OvoYgSSQJ0jgxjZxsTt0dqYqNx44ZbPxQtc6lT4jWO5B dBO2CmPjNkA+JodUtoBeO1wjlSXHhwOStrdVyRXbcelDP/GWsYtIbQuqXsgVenNKalw1 rFr5ePWoQwNupj5JuA+HIWDAqeimugzzDBfRNSQyvozG7YYnkD1mdapNXR06cmX7hwNR ijbh5s+VzTNUJb5pCo9T1q79vujgdJjctwTImb1aHJ/q6epbh5MyO9xLmmLCWHMDi8uY SlZBvgE2wUWFbqbOYNI4RvtolBJeRF2lFgpAsb1ogJyq9YGOQYRjYJE5hGAA9iCMP/WZ LQpA== 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=ZF8ypvyowjpYTuSw9ncbwYW/LEI/KDmk2VLfr4ypWMY=; b=tr+srghs9K4T1DBkZ9eRVkrrLdQKB/Cbhv2rUZdH/I2ylJ1C8heScDzTwZkMepO+G9 ZBBiqlRuwZW1YFnIpIDe9T99Umtp0EbIbGGKy3m+Zi99Y9+SmQ2BcVHgVndXIi/Zu5ln xsgd5uynbDUDMpo471//N4qum93mkMdP0B1PkQpmnIV0a8moaKmCw2wLOGkCWao+y6jx 5XPIZfPvv4heum7olQwxmtCLa7MWTutSvVOGubFjNEIqBko8yozhhiLpuyxrGbPU0ppY iPLJlmNl+vT/kAAQk/LfeRxG6klWJ8zfBgZwOmsGbiQWYrhlz46n0l+WSWXUSjo4snfU ugeg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="HBaDDCS/"; 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 d25si9548397pgd.88.2019.02.25.05.58.34; Mon, 25 Feb 2019 05:58:50 -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="HBaDDCS/"; 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 S1726706AbfBYN4z (ORCPT + 99 others); Mon, 25 Feb 2019 08:56:55 -0500 Received: from mail-ua1-f65.google.com ([209.85.222.65]:39722 "EHLO mail-ua1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726150AbfBYN4y (ORCPT ); Mon, 25 Feb 2019 08:56:54 -0500 Received: by mail-ua1-f65.google.com with SMTP id s15so8371945uap.6 for ; Mon, 25 Feb 2019 05:56:53 -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=ZF8ypvyowjpYTuSw9ncbwYW/LEI/KDmk2VLfr4ypWMY=; b=HBaDDCS/RhAzH+tCV2XcxU9NO+H2aLSpjDlvqPTdC6JzdOqVmUVhrAZYiAyhAMPn+e 0CFeVfjX+vSlS2Qt/yRvXFRVj9UEMX4iWFb26Kyi3fsKQzQyH5+urHtoyDqGSBXy6Nl2 TxFVyWz47MJz5N7TBxutbvnuI3vEohC0LY46I= 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=ZF8ypvyowjpYTuSw9ncbwYW/LEI/KDmk2VLfr4ypWMY=; b=Jabn2SdKEgIjXe22it7oZRoyNn0PjtszneNOJkym35i7yRTjnlwnciFZbiw1Wv6QWZ dz+Jb0bhUZhCSxKcLgPvqBbbKZ0EuA+/xHF4L9nPj91IuqmmnyBNJiMnRQ4+scwhFUu0 Bmxyj34v3eDnmfwUYEP+TQR8/Zm/XqjnoYmp2b3c6um/ecThqReZuA7GN2m/FsYrqfa4 YuO8BJ/QuLRtUzO+M1rJhWm1iBcmP+wqg42vSoMbkL8+UhjQUcr0eaH1ltVjj1MODUIl ZPjDxgxaQL5LM80hDpgZaThWg5qdEECC59L+B6khWMipMQoQtKazhxORYnJeEjHocJb1 YV9g== X-Gm-Message-State: AHQUAubBoui6nlbkTcXbCrOJ5kLH5QIMgYYvIXyTQA36UubS2K7QFg3M 9XzzvdxzFOCHzhqajoyhwa2aBmm09klYEXtOolojuQ== X-Received: by 2002:a67:1903:: with SMTP id 3mr8768610vsz.170.1551103013018; Mon, 25 Feb 2019 05:56:53 -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> <22f84fb2-73ef-d0af-0552-2512912ae000@collabora.com> In-Reply-To: <22f84fb2-73ef-d0af-0552-2512912ae000@collabora.com> From: Cheng-yi Chiang Date: Mon, 25 Feb 2019 21:56:26 +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, Stephen Rothwell , 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 8:23 PM Enric Balletbo i Serra wrote: > > Hi Cheng-yi, > > Attached the config that Randy sent. > > Thanks, > Enric Hi Enric, Thanks for the quick reply. I have posted a patch to fix it. > On 25/2/19 11:22, Cheng-yi Chiang wrote: > > 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' > >>> > >>> > >>>