Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp15865imm; Thu, 4 Oct 2018 14:40:39 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ECU5sgomwdAk0DSQM3U/ny80Q63vJ2zvtRWr39Q7uY0dlia9NRU8RarEBKGgs4PHnOIWP X-Received: by 2002:a17:902:24e7:: with SMTP id l36-v6mr8454048plg.234.1538689239563; Thu, 04 Oct 2018 14:40:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538689239; cv=none; d=google.com; s=arc-20160816; b=mOWNx3LTQlJNi3zzXMl9JCt7DNKHFoFPRqhf2UhxY3vbyg3IQae2zNK13LTYEG4Bj3 AZU8jA2OdoSp9XcjnXCFxYOBtyXoyQlf4xdpb2tyzmsyD0MnTXaQ3YrDUKG7nwEABGb4 2BXtzUUMwbxUFRLABkUVSSqKe6XQQN0jnHOrqBu4UGW3SdCWmuI6EW6hVbHSrksHT/Rf Zg4bTMXS5eK/00SW6dK8/G683xwyfxBr+51/oVzIHaET0hBMpJP6oMdvzG2V73t0zRHD 2u5ci4wNZbxemzLEtI9I5r0wts6UFix0NLlFXt+7EW/BRdj5Ffqzg9P49WTteH+/7Ney K2Dg== 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=9JkkBI6Ch30jWGVPiJlr6vhAW7BebQX7pleg3Yr1kjQ=; b=SmQej5carTvHT3k5uA7BD+ygVukeJ+kpgBbyqvmJRNVpXFKPscfADYsXCCFpErVFHX s/FDYfHgLfwQ14BisibZ+RyIhBKzFcSf5EKzcDneyCNAeWAiBUp6lq7c31K9UhwFhqJX xsgb2g77wESI/GAeXgyWw4pF8ps1fRzDIie/xtGuY73kwCHsQIX+A6yysKxXo6PmivfT 2JfFt0X+w93YCVLb+CXEYMUGDFYtS2d4USrVSqUAF2zmBfRcyUB2RnQFbnfGbMPRouHF HbxxrxD9Uo4FbSrIhsgaSo1JCnrYaouemZBPvsKac+Iihh6sOzaNnOC1TTkBfHpi1asP VF6A== 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 72-v6si6599765ple.354.2018.10.04.14.40.15; Thu, 04 Oct 2018 14:40:39 -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 S1727089AbeJEEfZ (ORCPT + 99 others); Fri, 5 Oct 2018 00:35:25 -0400 Received: from lb1-smtp-cloud8.xs4all.net ([194.109.24.21]:36352 "EHLO lb1-smtp-cloud8.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725997AbeJEEfZ (ORCPT ); Fri, 5 Oct 2018 00:35:25 -0400 Received: from [192.168.2.10] ([212.251.195.8]) by smtp-cloud8.xs4all.net with ESMTPA id 8BLigGwMl0ZZE8BLmgm5pi; Thu, 04 Oct 2018 23:40:07 +0200 Subject: Re: [PATCH 1/2] media: add SECO cec driver To: ektor5 Cc: jacopo mondi , luca.pisani@udoo.org, jose.abreu@synopsys.com, sean@mess.org, sakari.ailus@linux.intel.com, Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Andrew Morton , Arnd Bergmann , Hans Verkuil , Laurent Pinchart , Geert Uytterhoeven , Jacob Chen , Jacopo Mondi , Neil Armstrong , Todor Tomov , linux-kernel@vger.kernel.org, linux-media@vger.kernel.org References: <20181003093532.GF20786@w540> <20181004213150.rdqhwpmtza3ez57p@Ettosoft-T55> From: Hans Verkuil Message-ID: Date: Thu, 4 Oct 2018 23:39:58 +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: <20181004213150.rdqhwpmtza3ez57p@Ettosoft-T55> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfIUoiX88yabwY9Cg7RLzy7jM2UjA8NJ2sgNWy2ewYWCSBDiMZ3bjFN131L5I1aFIWdyWnKy5kt4RP8vJR+dODFQoFsPCqDNZWPBL+84FvNj//mKwDYya 6QkWLCLvM9IypBRCOg/V5Fc3DT1CiE/7ncjLqQaVwZbFH9EzxSQlLVs0DFE3OQhArZerfrCdc6je1vpQqoNE0jZ6VgrTjiwVTAMvqZWogXVjHwZ10PDKJkr2 XnfRgkZ1iZe7D6JpdtXtoSAF5PF4YYqpbz8PceiYkzm/5CX8NOB4W9vC6+bPV6dUCUE/fDjvpEe0NQOmbyF62ljoEKD4Xd6AvJRBEd/L4UbM10Y1J9oDhwON RtVEGW8udU4xJzIJrFgKM6acUjeeKuUZB672ZUFBW4ALHhcmSOj+78MzvvRdboaiAAzovaAXvgIdFI6jYBfI9SPNzrdpACLkD/xVJd8aNGWVY11g77V791v/ 2hCAsrV2Bst4F6HvSILGoFQTc1evYD4rYskcJXtSQfsd1xsPCPThiMKXBJH07Np8wjCD12Xo/IA+8fgKM7ce4+Qxm0qdL0aVtM4W0uRCkU/DGqyWnygwRxiR eEHVg0N+aVZwsHgbdkkAvKP41hyGMQtAy6LHMmn4ybCzimsVtLANpkqM1/xZoAVou4zJN7BvHvtKGZhNyH4PYL839x5gJODj9BcvyOadWHZTlEWsqfI5jfv9 l/3UG0yblkojMbCxIj5RvMbffDrvmzCSamzZO/CBeqqLvcH4kWeywD522OnxPdiU3sqnjtmsDFcJUDZ+mO5o1AofBv+ZAnW42hZkmr67D7H9aTYLspRMbu2P NCusVEY0IZ6G6zBVZaw= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/04/2018 11:31 PM, ektor5 wrote: > Hi Hans, > >>>> +static int secocec_cec_get_notifier(struct cec_notifier **notify) >> >> If you compare this driver with cros-ec-cec.c, then you'll see that >> there this function is under "#if IS_ENABLED(CONFIG_PCI) && IS_ENABLED(CONFIG_DMI)". >> >> I think you should do the same and (just like cros-ec-cec.c) add a dummy function >> in the #else part. > > I'm not sure about this. Doing so, compiling without CONFIG_PCI or > CONFIG_DMI, it will fail later when no notifier is found (now it will > probably fail at compile time). Should I select them in the Kconfig or > it is better to eventually disable the notifier and go on adding > CEC_CAP_PHYS_ADDR to device capabilities? After thinking about this some more, you can just add: depends on PCI && DMI in the Kconfig. Much easier, really. Regards, Hans