Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1672354imm; Thu, 12 Jul 2018 06:04:35 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdjRICudF/oaKQavGIq9vtM04nMFitbpTUGcVrmjFeueIJpSAgKxTR98moj+xuroIOTAzY1 X-Received: by 2002:a17:902:5a83:: with SMTP id r3-v6mr2119319pli.78.1531400675067; Thu, 12 Jul 2018 06:04:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531400675; cv=none; d=google.com; s=arc-20160816; b=PObE9wu5Uh+nE9zfipO2csAXSF5km3VRBC0DALkn1vgBzeqH2WhM7be1BXPxnynBf1 1a+SjHYkiMeh9Rn4Uiz2UJT1/yhJ4I6Q8JnmKV6Uwb8gUtj+wr05Tn1aYkUMU+wdvnAQ LzSCJiIcvONLhgq1y4Y9GO2AFNoP8JvDKUW95TCRa+D7jRjfYKGfeSYamjrvbpGdOJjx 91T3nBOoDHw12oqib2cUefLviQBlx35aWGOVq2Mcy2atyDJj5gTf1wZd0qKT0U3rSr1U hU5TNrNnLiz9qlU5BFDhFUIFZ0KK1kHFwrhlMT7SnSF5JopO86cK7wMwpSsCIb97THb0 TNoA== 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=MSOIPIqe2aKgiDPnslG/1tKMBgExiIJixWic0fNK8k8=; b=ZWq1YqUchHtLDkHKG03n3iUblNhTAB1e+2ESsWuC0cTKtzYM64wqbz3KfR1MIg9s4/ NCSXZNBIdFtgUxYEi1B524x9VyrTpUFuOOoq2+FRx1fOlTBnwqJCg+RAfqzdNdjn3zEK V7wXeQRj4ii97Bse02ZQNyETTh33UJNWJtzmqGZASGK76+mLMYmJkw1ZBvjp7EW0p2sZ LGcWblISp2czDMBLFPJ5uvduH6mCICHmYeLDMoIjP0E4YDjQba1WtEOeEjvf0g6M6iU7 58hrEEa8XOVne0po8uoiT0o/FyUUSX+HB5rjTb6Yl/bMEdRBPxspvENJUGbrf4OK7Jbk BbVg== 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 b2-v6si13948389pge.114.2018.07.12.06.04.19; Thu, 12 Jul 2018 06:04:35 -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 S1732416AbeGLNLr (ORCPT + 99 others); Thu, 12 Jul 2018 09:11:47 -0400 Received: from lb1-smtp-cloud7.xs4all.net ([194.109.24.24]:47689 "EHLO lb1-smtp-cloud7.xs4all.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726650AbeGLNLr (ORCPT ); Thu, 12 Jul 2018 09:11:47 -0400 Received: from [IPv6:2001:983:e9a7:1:e05d:b6ac:3d9b:b1b1] ([IPv6:2001:983:e9a7:1:e05d:b6ac:3d9b:b1b1]) by smtp-cloud7.xs4all.net with ESMTPA id dbEcf1YGC6brUdbEdfDuxS; Thu, 12 Jul 2018 15:02:17 +0200 Subject: Re: [PATCH v8 0/6] Add ChromeOS EC CEC Support To: Neil Armstrong , Lee Jones Cc: 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: <1530716901-30164-1-git-send-email-narmstrong@baylibre.com> <20180712122645.GE4641@dell> <35fcf84e-f8a3-af79-013a-1c54ed5063ae@baylibre.com> From: Hans Verkuil Message-ID: <0aaf878e-b028-617a-86a8-434cbc45d4fc@xs4all.nl> Date: Thu, 12 Jul 2018 15:02:14 +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: <35fcf84e-f8a3-af79-013a-1c54ed5063ae@baylibre.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4wfOVAIybNQ3ZRy3ZuzowHLtCAF4qNNKOQOJrU121Anmztu5dR+u6cQ9RIYHopWgK4TT4Mfaot4SQElnr8u/+swYMpD2HK1XvaZkDrSZv+K08lZNNAvyka Acc4Y9f9yycMK2Il3/MszRx1r3Zj+NiqAzDTOA/+6fWq4LNVn6/Qla9GiQcFj2nbdTB1/qI/hCH/Uux+jDSSrzCvQkJMs/MgfohUhdXco8Qs4bOBtTJSudNu a5KGhdtsfQQT+sJ/vg5g5bt9OpQ881ntCoh15IEiwV/LMwAU9Tbl0erp5yzahZfkWzD97mI8eIuB8wNaaZKVgMlXdOVT/GxX79VVIfuDJ7yXgT133j9Gjm+f rw8ciuSfsqtC1Y5ykQ+x6mAH/fsJA1oPHAeQrvvIvQKKsIecl6lZUXwUDCTrxXeA8QUiSA4aMz46bCCwIYogU2l2ICbt5kq8BbnyxmKBFYCy7fqgr9r+gIfm +9dGWGWqdaFhtsnUNt5uAaOjLcLKam6DL+FHNddI653UPyHxBtajQoO0MFfD1geHEaw4FIi4Om4Cmbpdoqo5igNjdva0dvksDVhxrjRwSX5CPbjGRyPapkws 600I8b+TlDCvyOXy5sv9Nn9zaEp9poS3dNhXRe162+S3x7oLwiQjFy24FYdlUCdPBjTLdV4k/kXNH4ER52ddk+k3qnps8yZyCLFMQU5iktXGY21q3RzORg4B 6ed2gzDBPMKPj1PYVRrjYmJD1UMI3FC5XXQflg0tVnVeni14INYaaJtmFllmATad65CRauHBR+MmGkGXQHjihYt8+dSHoeBUozoZAXVXk2GqfvwwoAoLbsJ0 RFCW54WNWZ9uxlKRi74= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/07/18 14:42, Neil Armstrong wrote: > Hi Lee, > > On 12/07/2018 14:26, Lee Jones wrote: >> On Wed, 04 Jul 2018, 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. >>> >>> Feel free to comment this patchset ! >>> >>> Changes since v7: >>> - rebased on v4.18-rc1 >>> - Fixed whitespace issues on patch 3 >>> - Added Lee's tags >>> >>> Changes since v6: >>> - Added stable identifier comment in intel_display.h >>> - Renamed to cec_notifier in intel_hdmi.c/intel_drv.h >>> - Added Acked-by/Reviewed-By tags >>> >>> Changes since v5: >>> - Small fixups on include/linux/mfd/cros_ec_commands.h >>> - Fixed on cros-ec-cec driver accordingly >>> - Added Reviewed-By tags >>> >>> Changes since v4: >>> - Split patch 3 to move the mkbp event size change into a separate patch >>> >>> Changes since v3 (incorrectly reported as v2): >>> - Renamed "Chrome OS" to "ChromeOS" >>> - Updated cros_ec_commands.h new structs definitions to kernel doc format >>> - Added Reviewed-By tags >>> >>> Changes since v2: >>> - Add i915 port_identifier() and use this stable name as cec_notifier conn name >>> - Fixed and cleaned up the CEC commands and events handling >>> - Rebased the CEC sub-device registration on top of Enric's serie >>> - Fixed comments typo on cec driver >>> - Protected the DMI match only with PCI and DMI Kconfigs >>> >>> Changes since v1: >>> - Added cec_notifier_put to intel_hdmi >>> - Fixed all small reported issues on the EC CEC driver >>> - Moved the cec_notifier_get out of the #if .. #else .. #endif >>> >>> Changes since RFC: >>> - Moved CEC sub-device registration after CEC commands and events definitions patch >>> - Removed get_notifier_get_byname >>> - Added CEC_CORE select into i915 Kconfig >>> - Removed CEC driver fallback if notifier is not configured on HW, added explicit warn >>> - Fixed CEC core return type on error >>> - Moved to cros-ec-cec media platform directory >>> - Use bus_find_device() to find the pci i915 device instead of get_notifier_get_byname() >>> - Fix Logical Address setup >>> - Added comment about HW support >>> - Removed memset of msg structures >>> >>> Neil Armstrong (6): >>> media: cec-notifier: Get notifier by device and connector name >>> drm/i915: hdmi: add CEC notifier to intel_hdmi >>> mfd: cros-ec: Increase maximum mkbp event size >>> mfd: cros-ec: Introduce CEC commands and events definitions. >>> mfd: cros_ec_dev: Add CEC sub-device registration >>> media: platform: Add ChromeOS EC CEC driver >>> >>> drivers/gpu/drm/i915/Kconfig | 1 + >>> drivers/gpu/drm/i915/intel_display.h | 24 ++ >>> drivers/gpu/drm/i915/intel_drv.h | 2 + >>> drivers/gpu/drm/i915/intel_hdmi.c | 13 + >>> drivers/media/cec/cec-notifier.c | 11 +- >>> drivers/media/platform/Kconfig | 11 + >>> drivers/media/platform/Makefile | 2 + >>> drivers/media/platform/cros-ec-cec/Makefile | 1 + >>> drivers/media/platform/cros-ec-cec/cros-ec-cec.c | 347 +++++++++++++++++++++++ >>> drivers/mfd/cros_ec_dev.c | 16 ++ >>> drivers/platform/chrome/cros_ec_proto.c | 40 ++- >>> include/linux/mfd/cros_ec.h | 2 +- >>> include/linux/mfd/cros_ec_commands.h | 97 +++++++ >>> include/media/cec-notifier.h | 27 +- >>> 14 files changed, 578 insertions(+), 16 deletions(-) >>> create mode 100644 drivers/media/platform/cros-ec-cec/Makefile >>> create mode 100644 drivers/media/platform/cros-ec-cec/cros-ec-cec.c >> >> How would you like to handle this set? >> > > Hans proposed you take all the patches throught mfd, > then drm-intel could merge your immutable branch to avoid any conflicts. > > Rodrigo Vivi gave an ack to merge it through other trees on the v6 patchset. > > Hans, should the media tree also merge the branch ? No, there is no need for that. It's fine if it all goes through the mfd tree. Regards, Hans > > Neil >