Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp88563imm; Thu, 2 Aug 2018 23:31:37 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdwDCK+KIzMVyim2wrQ2ictVQxpMU7pmzANKtEdTW2VyHku4bw/rteEYxldAlXQblRD3B6G X-Received: by 2002:a17:902:8a92:: with SMTP id p18-v6mr2334925plo.148.1533277897702; Thu, 02 Aug 2018 23:31:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533277897; cv=none; d=google.com; s=arc-20160816; b=enjo5GIfkDBR2a0IfqaPWA7IHVSndT7yyFNIrtkhEYiGt7+KDlNpFtofmRqc3M4yJE TsZTPFw2c/679zRaP+ybbTUaqufoghwrUoiX+vEJ5+m7oIQZ5aARKJ7DVQKUNp1U1SAI IwbhDgG+Y5DlQyf1BoY6Q8sU1LI2vZNco6WRDGeIS8wmV5DBey/Er8IHXWDIqU82Yb/D H/byug5m1uZZC4g5qNwXW9qVCfWCEpQaXmoZJN3ZRuyqf12E6Tnhu0yZaS3GOWCUWhQ+ nS/Pj/lSS9mwSmpahmtDFGllqYO7Zw5N0qc1LRgn9KM9izTpgU+IZGVWCykaThH40ofX r4UA== 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:arc-authentication-results; bh=FgGEN9zzjlBvR90IkF9iv221d4cE8OyqW+hS4QKKjAY=; b=ZhNC2wfQKLvRP1L0724dhpge0WjnyRkOZu1O0oz94qqEr2DwRlni973xzTfb2v5XPr lsYgzxztfjoYjxMwOKhgRHwu1RqSc8tXh3nIqZNzrjaRvvKk9KTZCcxWk5yUWMZ4Xqlg i7FQEl3Pz3Zkc/SRTLSB7+octIbxCXjg44n5X6De7pshLDf/g8NKfRs0waY0TEO4IBAC yxlVWOcanUsWU9d78MAw+U01waNq+2/d4uZcgssMRXMnJcu/MgVO3BZMys38oh6TQCW0 ln4hzbQzu/Bk51M0FRG02e6S/949Le9ym3QNfr990jh4qSqX70DW2nMs919ibV3TQ6wc K+zA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n2-v6si3481750pge.74.2018.08.02.23.31.22; Thu, 02 Aug 2018 23:31:37 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731311AbeHCIYT (ORCPT + 99 others); Fri, 3 Aug 2018 04:24:19 -0400 Received: from lb2-smtp-cloud7.xs4all.net ([194.109.24.28]:58326 "EHLO lb2-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729946AbeHCIYS (ORCPT ); Fri, 3 Aug 2018 04:24:18 -0400 Received: from [192.168.2.10] ([212.251.195.8]) by smtp-cloud7.xs4all.net with ESMTPA id lTaYf5arK6brUlTabfBqu8; Fri, 03 Aug 2018 08:29:31 +0200 Subject: Re: [PATCH] media: platform: cros-ec-cec: fix dependency on MFD_CROS_EC To: Mauro Carvalho Chehab , Arnd Bergmann Cc: Lee Jones , Mauro Carvalho Chehab , Hans Verkuil , Jacob Chen , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180724093624.1670671-1-arnd@arndb.de> <20180802195824.26a9720a@coco.lan> From: Hans Verkuil Message-ID: Date: Fri, 3 Aug 2018 08:29:26 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <20180802195824.26a9720a@coco.lan> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfFMRO+UkJhxaU3kZSiCTtm1pFgzt5NdNwmB6WDvbtGkNhdRsRQMYXTBES8R6xrVWstEKZMTPMJYTM9qFQ0Iw2EjwK6fkxO/9YtEe5dXguWkHIyAxHKGC HJBKmCm+bXoAjxy/0IyGz5uEQ4NoGk2VwI+cbrfpO8YmIYrbzZ4jEDpp8U51V8EUb0L87MwucyDHAV/+SwMbXXniJUxhYSdND0QxaZQM6DiHMVcrCEKNQxg9 /l6bdK+z1SX7PnQnZ1+hBAITl9mVZjlmYeBTJnoDQbt8T1sYUZ7fTm0nuWhKzBdNFDFQ71aV8bRfTXywX84+rEDipy58LgvLOLyXhNrB+qAO/3ZWQ/bPvy76 DBMlJspoS10/AYwHx3g3oahj8w9d2sGfEvxyxtoiW8sROg8094JQT8BaWaJiU/+pu/YYKefMwW/PWV5SMmYcx5VUtKX4GawG2qGjnnthjRkQkGPimbw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/03/2018 12:58 AM, Mauro Carvalho Chehab wrote: > Em Tue, 24 Jul 2018 11:35:59 +0200 > Arnd Bergmann escreveu: > >> Without the MFD driver, we run into a link error: > > Weird... I'm not seeing this driver at the media tree... was it merged via > some other tree? Yes, it's going via the mfd subsystem. This driver touched on the mfd, drm and media subsystems, in the end it was decided to let the mfd subsystem take this since it had the most impact on that subsystem. Regards, Hans > >> >> drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_transmit': >> cros-ec-cec.c:(.text+0x474): undefined reference to `cros_ec_cmd_xfer_status' >> drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_set_log_addr': >> cros-ec-cec.c:(.text+0x60b): undefined reference to `cros_ec_cmd_xfer_status' >> drivers/media/platform/cros-ec-cec/cros-ec-cec.o: In function `cros_ec_cec_adap_enable': >> cros-ec-cec.c:(.text+0x77d): undefined reference to `cros_ec_cmd_xfer_status' >> >> As we can compile-test all the dependency, the extra '| COMPILE_TEST' is >> not needed to get the build coverage, and we can simply turn MFD_CROS_EC >> into a hard dependency to make it build in all configurations. >> >> Fixes: cd70de2d356e ("media: platform: Add ChromeOS EC CEC driver") >> Signed-off-by: Arnd Bergmann >> --- >> drivers/media/platform/Kconfig | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/drivers/media/platform/Kconfig b/drivers/media/platform/Kconfig >> index 92b182da8e4d..018fcbed82e4 100644 >> --- a/drivers/media/platform/Kconfig >> +++ b/drivers/media/platform/Kconfig >> @@ -535,7 +535,7 @@ if CEC_PLATFORM_DRIVERS >> >> config VIDEO_CROS_EC_CEC >> tristate "ChromeOS EC CEC driver" >> - depends on MFD_CROS_EC || COMPILE_TEST >> + depends on MFD_CROS_EC >> select CEC_CORE >> select CEC_NOTIFIER >> ---help--- > > > > Thanks, > Mauro >