Received: by 2002:ac0:a679:0:0:0:0:0 with SMTP id p54csp235974imp; Thu, 21 Feb 2019 00:00:05 -0800 (PST) X-Google-Smtp-Source: AHgI3IYc4O/PXXp0ZpHwXS7YoGZHJEQkRbAqhr+py130JM2b7kF2l4aYLjQOnIjrDgz7TqxxAD4n X-Received: by 2002:a17:902:20e9:: with SMTP id v38mr39906625plg.250.1550736005750; Thu, 21 Feb 2019 00:00:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550736005; cv=none; d=google.com; s=arc-20160816; b=RO7oaLeklwYgfW8c86ec6Wz5t8HepgXSev2SxaupuL5ySByvdgvYNtDa9bF6aDUqG+ EHdmdw8FXAOhCLVAlNdP2K5JQpkB6imQbqvZ3mM6joFf/N0TsOK97UUj8adlVg6Dw/qh h2GmRHDA731VYh3gR24hWSw/OpRdpmGpxkQ8aK5KOnTI7gr2qkgN7bcFS14Q7/dT0953 NAp+M1Wx0Bfq6M1WxvSwwX0iJecahQ7Q4gaYQUmvaZpF3bZ26pHbxGxTJs52UuLeIYOy Fyx6P00CSTYv2J4PjDw+TsbT3x8oIW33JKZ3izpYZfWvZ7Z4orOLh+vObL7L0XVT+3Ak YZeQ== 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=ze2mkodINCRStQtlKNL6udcqimjtm2r2epJMtALu2ZE=; b=Mrz7NHdkOIQ3VTxIQq7281/rwecCONog7BRWy+cfQk4p/rkFFcC4ORpKkYObjfOnBa vo+EHOGJu3FSeqwjgEHYayAS6JgxAp6YrvbFdXQ49eU+jok2oC7LVvY06s6AOt3LFLTD 5sAJJqX0nQpbfTFjVwgMBWAmxu6xDbOqXs4gmANpCITLfOqLI/coKYTx2iQnn2+i/XBr nnV5mkpFvQoEthOTNgTIcwpPTOCazPr6J7E6PQ1xFLgFJPLxs3uP9wrhbHhVGdi/g0+O G5VBgJGg/aupWnWFr5alZ6CPqXvxGGuZeL0s1u/eOJgp0aFT3n/kvnGnqflrVp3ZEG6v 9n2Q== 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 k190si8440047pgc.264.2019.02.20.23.59.50; Thu, 21 Feb 2019 00:00:05 -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 S1727131AbfBUH5s (ORCPT + 99 others); Thu, 21 Feb 2019 02:57:48 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:51128 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725831AbfBUH5s (ORCPT ); Thu, 21 Feb 2019 02:57:48 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 2339027D486 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 References: <20190220221128.48476-1-ncrews@chromium.org> <420e6e26-6270-e577-6bbc-3ebe884168b5@infradead.org> From: Enric Balletbo i Serra Message-ID: <765ebb17-4523-d915-bdce-9ecde26836f0@collabora.com> Date: Thu, 21 Feb 2019 08:57:43 +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: <420e6e26-6270-e577-6bbc-3ebe884168b5@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, 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 Thanks, Enric > Thanks. > >> --- >> drivers/platform/chrome/Kconfig | 2 +- >> drivers/platform/chrome/wilco_ec/Kconfig | 3 +-- >> 2 files changed, 2 insertions(+), 3 deletions(-) >> >> diff --git a/drivers/platform/chrome/Kconfig b/drivers/platform/chrome/Kconfig >> index 462eb9dfa4f2..b69561050868 100644 >> --- a/drivers/platform/chrome/Kconfig >> +++ b/drivers/platform/chrome/Kconfig >> @@ -95,7 +95,7 @@ config CROS_EC_LPC >> >> config CROS_EC_LPC_MEC >> bool "ChromeOS Embedded Controller LPC Microchip EC (MEC) variant" >> - depends on CROS_EC_LPC || WILCO_EC >> + depends on CROS_EC_LPC >> default n >> help >> If you say Y here, a variant LPC protocol for the Microchip EC >> diff --git a/drivers/platform/chrome/wilco_ec/Kconfig b/drivers/platform/chrome/wilco_ec/Kconfig >> index 20945a301ec6..c6bc4e8f3062 100644 >> --- a/drivers/platform/chrome/wilco_ec/Kconfig >> +++ b/drivers/platform/chrome/wilco_ec/Kconfig >> @@ -1,7 +1,6 @@ >> config WILCO_EC >> tristate "ChromeOS Wilco Embedded Controller" >> - depends on ACPI && X86 >> - select CROS_EC_LPC_MEC >> + depends on ACPI && X86 && 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 >> > >