Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3803527imm; Mon, 11 Jun 2018 01:57:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJU9of+7XBcjdc4f6nzJqPzIodjOs8Y1rwWdNfoIVLfaV0+nyWi51JUqMdsqCqegTMSig50 X-Received: by 2002:a17:902:758e:: with SMTP id j14-v6mr17308952pll.160.1528707422253; Mon, 11 Jun 2018 01:57:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528707422; cv=none; d=google.com; s=arc-20160816; b=zhlFbJYGR+z2xCDXi/2SLIEdP0KXSywNVZWp31Yhd8RqeUETbkL/PHxhCVNIFP0eCR Enq+cvHg1o/hXGv5A8xPBnMPXfjkS4E7caEOg5mheJdoDmtcMu1E5ZHA/jTn8KfJYetN eERFTiKApKqdtcuTlD8p6IVOtsyIGdJPHw3RDOjFByfLORwikk4sk38NUpJe8uetI+mX 2JI5p6Mu8GCoqa25Zj+qch8d77yw/kDMCyAcGK6MZBocQEt6M10wjk72wcuZB0P9clMQ MtTC0lPEdrHH8AB11gypRuhx8Z15fB37haD7Z912GcY72ILBFKZF/hQhiqWQVpCSwGW4 5zYA== 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:organization:autocrypt:openpgp:from:references:cc:to :subject:dkim-signature:arc-authentication-results; bh=iS1GVQDZnbQLBGf37XV+6Q9fC8HHxEuh+hI/SFO7Jm0=; b=bsi1hfg1Iur1EBahj7Oq97tZHcxBBUdzhSYX+JtqzVV3LzDDzP3gIpYQnUBMasG022 916yO1OvXuyrvkvXpmBh69u2hiyax0rTX2shGntL2zBtiy16WHpva1pa2/kAE8s018XZ Sqv9FHAiNEYlhdINndE7wZCpUfue52bbJ+Xzdc0cPw00ReNp2rjcYc8EbPkWeqx4DpTM UHSjgmBl9PyQp5yO3b8YmKkL5zRHtuk3aXGCLVTMTm6D5elMw1+kSUANXx3nsiZJAXrZ eb7YUd5GHDlkS6dov5R92WiWdrg3aefvmjhDj2A7u1/Y6WmRrW67ayDhjfoFnu1EzXkV /jtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=APDWi051; 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 v69-v6si35453959pgb.609.2018.06.11.01.56.47; Mon, 11 Jun 2018 01:57:02 -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; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=APDWi051; 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 S932596AbeFKI41 (ORCPT + 99 others); Mon, 11 Jun 2018 04:56:27 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:34120 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932272AbeFKI4Z (ORCPT ); Mon, 11 Jun 2018 04:56:25 -0400 Received: by mail-wr0-f196.google.com with SMTP id a12-v6so19494186wro.1 for ; Mon, 11 Jun 2018 01:56:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:openpgp:autocrypt:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=iS1GVQDZnbQLBGf37XV+6Q9fC8HHxEuh+hI/SFO7Jm0=; b=APDWi0514Xz3Z90BlbsuK7RzPE7dHTkRZjlkLhTSN2OenrIhEeVzl/5wRsqfAvAedT ttJaMqkuHBbUvqezi3nKucSHqzdFZnG5eJ9AtYiV/g68GSYWpPsGHKl3ZewEtKi0vMFl oU1rVZx04CFaFDHAqEOyvBqUL/uPixFWOh486nhEG+D+E2S8NOvrUtWQ708CubQ/U3oZ LLbnMhVP3/13PdP6oYzwXhw/K8MmL5B6CZ4Za4QnY3FVQpVi3MzNr5skUdlPA3xf62pH 2IiOw+C0WX+BwtpSjHSfX/jS38hcfUQWxh1spvXQuyl7SmXCCqU3QYCorwz5hn02oxYc tQDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :organization:message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=iS1GVQDZnbQLBGf37XV+6Q9fC8HHxEuh+hI/SFO7Jm0=; b=j5AawrRq090tgec7z4aAAuTNvbYMzsSD0L+4SrHCkSzPylx19GOT/lH88l74euWL0C u1Gm4YMgBjiamTpzwLlKRY8TcQzIefI2cts2lRkQydkYXKwtACjWg3b8vtB9tGCPY0QO 4Ot915xbTuioqcfFtBj6f1M5TZxiu0EYv41cUZ5FLpMpAc2CtUVWOUJCKiTVjEHQkBMS vLp+y9r94lBolwmWD+in2lFIJz/+0FQcoJjwrLEzKPi7Av1wylIR8AW67LftM8brn364 RUBQJ/Ep3g+D7Dcfu1BIZ+8YWTPwMEKuX2csGysEHiGs77rLTIYpaNieCYSDeq7H0AnI D+IA== X-Gm-Message-State: APt69E1I1SwoNmUaSu7pjGlDBGE4B5yETOtSH5kxknJam8P2IpCat79i I6KL1P/U83InOWWLISKQcG66Ow== X-Received: by 2002:adf:f8c2:: with SMTP id f2-v6mr11513941wrq.237.1528707384050; Mon, 11 Jun 2018 01:56:24 -0700 (PDT) Received: from [10.1.2.12] ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id a9-v6sm7260412wmh.38.2018.06.11.01.56.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 11 Jun 2018 01:56:23 -0700 (PDT) Subject: Re: [PATCH v7 0/6] Add ChromeOS EC CEC Support To: Lee Jones , Hans Verkuil Cc: Hans Verkuil , airlied@linux.ie, hans.verkuil@cisco.com, olof@lixom.net, seanpaul@google.com, sadolfsson@google.com, felixe@google.com, bleung@google.com, darekm@google.com, marcheu@chromium.org, fparent@baylibre.com, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel@vger.kernel.org, eballetbo@gmail.com References: <1527841154-24832-1-git-send-email-narmstrong@baylibre.com> <04598b47-5099-6695-da43-6e7148145cfa@xs4all.nl> <55c2c02d-5675-0821-97ec-6a805659b807@baylibre.com> <898f025f-9c59-be61-a2b4-5fbbcbc659c2@cisco.com> <20180611060308.GB5278@dell> From: Neil Armstrong Openpgp: preference=signencrypt Autocrypt: addr=narmstrong@baylibre.com; prefer-encrypt=mutual; keydata= xsBNBE1ZBs8BCAD78xVLsXPwV/2qQx2FaO/7mhWL0Qodw8UcQJnkrWmgTFRobtTWxuRx8WWP GTjuhvbleoQ5Cxjr+v+1ARGCH46MxFP5DwauzPekwJUD5QKZlaw/bURTLmS2id5wWi3lqVH4 BVF2WzvGyyeV1o4RTCYDnZ9VLLylJ9bneEaIs/7cjCEbipGGFlfIML3sfqnIvMAxIMZrvcl9 qPV2k+KQ7q+aXavU5W+yLNn7QtXUB530Zlk/d2ETgzQ5FLYYnUDAaRl+8JUTjc0CNOTpCeik 80TZcE6f8M76Xa6yU8VcNko94Ck7iB4vj70q76P/J7kt98hklrr85/3NU3oti3nrIHmHABEB AAHNKE5laWwgQXJtc3Ryb25nIDxuYXJtc3Ryb25nQGJheWxpYnJlLmNvbT7CwHsEEwEKACUC GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BA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vbyix0lHnrCzq43WefRHI5XTTQbM0WUIBIcGmq38+OgUsMYu4NzLu7uZF Acmp6h8g Organization: Baylibre Message-ID: <87562fc8-6c5b-1c9d-4ee4-fd17b652087f@baylibre.com> Date: Mon, 11 Jun 2018 10:56:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <20180611060308.GB5278@dell> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Lee, On 11/06/2018 08:03, Lee Jones wrote: > On Fri, 08 Jun 2018, Hans Verkuil wrote: >> On 08/06/18 10:17, Neil Armstrong wrote: >>> On 08/06/2018 09:53, Hans Verkuil wrote: >>>> On 06/01/2018 10:19 AM, Neil Armstrong wrote: >>>>> Hi All, >>>>> >>>>> The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support >>>>> through it's Embedded Controller, to enable the Linux CEC Core to communicate >>>>> with it and get the CEC Physical Address from the correct HDMI Connector, the >>>>> following must be added/changed: >>>>> - Add the CEC sub-device registration in the ChromeOS EC MFD Driver >>>>> - Add the CEC related commands and events definitions into the EC MFD driver >>>>> - Add a way to get a CEC notifier with it's (optional) connector name >>>>> - Add the CEC notifier to the i915 HDMI driver >>>>> - Add the proper ChromeOS EC CEC Driver >>>>> >>>>> The CEC notifier with the connector name is the tricky point, since even on >>>>> Device-Tree platforms, there is no way to distinguish between multiple HDMI >>>>> connectors from the same DRM driver. The solution I implemented is pretty >>>>> simple and only adds an optional connector name to eventually distinguish >>>>> an HDMI connector notifier from another if they share the same device. >>>> >>>> This looks good to me, which brings me to the next question: how to merge >>>> this? >>>> >>>> It touches on three subsystems (media, drm, mfd), so that makes this >>>> tricky. >>>> >>>> I think there are two options: either the whole series goes through the >>>> media tree, or patches 1+2 go through drm and 3-6 through media. If there >>>> is a high chance of conflicts in the mfd code, then it is also an option to >>>> have patches 3-6 go through the mfd subsystem. >>> >>> I think patches 3-6 should go in the mfd tree, Lee is used to handle this, >>> then I think the rest could go in the media tree. >>> >>> Lee, do you think it would be possible to have an immutable branch with patches 3-6 ? >>> >>> Could we have an immutable branch from media tree with patch 1 to be merged in >>> the i915 tree for patch 2 ? >>> >>> Or patch 1+2 could me merged into the i915 tree and generate an immutable branch >> >> I think patches 1+2 can just go to the i915 tree. The i915 driver changes often, >> so going through that tree makes sense. The cec-notifier code is unlikely to change, >> and I am fine with that patch going through i915. >> >>> for media to merge the mfd branch + patch 7 ? >> >> Patch 7? I only count 6? >> >> If 1+2 go through drm and 3-6 go through mfd, then media isn't affected at all. >> There is chance of a conflict when this is eventually pushed to mainline for >> the media Kconfig, but that's all. > > What are the *build* dependencies within the set? Here are the hard the build dependency : Patch 2 depends on Patch 1 Patch 5 depends on Patch 4 Patch 6 depends on Patches 1 & 4 > > I'd be happy to send out a pull-request for either all of the patches, > or just the MFD changes once I've had chance to review them. > Great, thanks ! Neil