Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3252498imb; Tue, 5 Mar 2019 05:00:45 -0800 (PST) X-Google-Smtp-Source: APXvYqyAR2Fk/1GTqTHi9Dp56yBV9PSZ2gQvXEGmiDWRRPzctnTybh4EkIsAYiAuTabz7PRc1FDf X-Received: by 2002:a17:902:5ac9:: with SMTP id g9mr1079529plm.205.1551790845083; Tue, 05 Mar 2019 05:00:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551790845; cv=none; d=google.com; s=arc-20160816; b=qIOEHDgRNBL90bYOl7i5gMXOLtXteCwzAQuYXGWw5wBnoVX1kx4MUXyeasmSL+2Zha H0Zet9ZLHsuIoeXCpRYAsd8Sn3lxp3Uh4dgKhQcQH/Tx64cK0vlpcXHKsLrCMCEv/KQj W8ENtbxHc1bLkQjbTgFA5o6p8fHYj8eKwh0OZnr3ehh9UmIKH4zAAXki16tSaJUZrsRQ UWqFapIGjBdhKbw5KpXXiYgDukuJl0INlFBa1rMUFHgAwV5k01JwCa9YoZyonyLUu0Ld qLLtJXlEec19YjCwTF3Bviw1MuGQeN8x2v/MEBAIfwp4TM1h5LmFXK9u8SHSzn9ZFcA+ Xv1A== 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=mG9Du/mJhOhHBOH4Cvy4yZqm70EVPUo0v80bkHX7GH0=; b=NkAmEWAGoUHShtK8w8MIVTIsWw/GtwLKkA801XRGvTKjLIiZ9Vnig5QhhxZ+j85JzW n/QsGm56Zi2Ae+pT6Lpjg5zotOOYFTURcoT+Wkks1tHWqA4pnLuLpN/uArfR4qo1vJqU xuNwLw5dpvVVf9/OM0qbqENGTzn2OoTbsB7VHws5o/I+c69AHy/Utj1IOlOnwANe7qoG K50HbYIufvu6ut6CRuwHpi9sX4r00C8nhPM4KyoHUJxjMkgcu2HWY7SwOI2/TERhYX+L zXua8PGt/5YS2jJcw+XvOnM/Xxa1Vp0YrNjC4y42P2j6Y3okxxajao5XnGrKRDbJoEI0 66iQ== 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 b8si8523536ple.5.2019.03.05.05.00.29; Tue, 05 Mar 2019 05:00:45 -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 S1727692AbfCELQM (ORCPT + 99 others); Tue, 5 Mar 2019 06:16:12 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:53900 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727435AbfCELQL (ORCPT ); Tue, 5 Mar 2019 06:16:11 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id B0900260648 Subject: Re: [PATCH] platform/chrome: fix wilco-ec dependencies To: Arnd Bergmann , Benson Leung Cc: Duncan Laurie , Nick Crews , Wei Yongjun , linux-kernel@vger.kernel.org References: <20190304200719.1382717-1-arnd@arndb.de> From: Enric Balletbo i Serra Message-ID: <21f89413-2d05-565c-eca9-2e9a8c65f3ef@collabora.com> Date: Tue, 5 Mar 2019 12:16:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <20190304200719.1382717-1-arnd@arndb.de> 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, On 4/3/19 21:06, Arnd Bergmann wrote: > When CROS_EC_LPC is set to =m, we get a link failure for a > builtin wilco-ec module: > > drivers/platform/chrome/wilco_ec/core.o: In function `wilco_ec_remove': > core.c:(.text+0x26): undefined reference to `cros_ec_lpc_mec_destroy' > drivers/platform/chrome/wilco_ec/core.o: In function `wilco_ec_probe': > core.c:(.text+0x18c): undefined reference to `cros_ec_lpc_mec_init' > core.c:(.text+0x224): undefined reference to `cros_ec_lpc_mec_destroy' > drivers/platform/chrome/wilco_ec/mailbox.o: In function `wilco_ec_mailbox': > mailbox.c:(.text+0x104): undefined reference to `cros_ec_lpc_io_bytes_mec' > > The problem with the existing CROS_EC_LPC_MEC dependency is that this > is only for a 'bool' symbol, so the information about the exported > functions being in a module is lost on the way, and we actually have > to depend on both CROS_EC_LPC and CROS_EC_LPC_MEC. > > Fixes: 7b3d4f44abf0 ("platform/chrome: Add new driver for Wilco EC") > Signed-off-by: Arnd Bergmann > --- > drivers/platform/chrome/wilco_ec/Kconfig | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/chrome/wilco_ec/Kconfig b/drivers/platform/chrome/wilco_ec/Kconfig > index 4a119ced4d0c..e09e4cebe9b4 100644 > --- a/drivers/platform/chrome/wilco_ec/Kconfig > +++ b/drivers/platform/chrome/wilco_ec/Kconfig > @@ -1,6 +1,6 @@ > config WILCO_EC > tristate "ChromeOS Wilco Embedded Controller" > - depends on ACPI && X86 && CROS_EC_LPC_MEC > + depends on ACPI && X86 && CROS_EC_LPC && CROS_EC_LPC_MEC > help > If you say Y here, you get support for talking to the ChromeOS > Wilco EC over an eSPI bus. This uses a simple byte-level protocol > Applied as a fix to our chrome-platform-5.1 branch. Thanks, Enric