Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp54200imm; Mon, 21 May 2018 02:04:29 -0700 (PDT) X-Google-Smtp-Source: AB8JxZr379cwXt+zSfbXEiBU/l5tcpyaL/0NB3OeNYfdqquWeFQseM8w9BQzvOWBkdIXxM9NVN0b X-Received: by 2002:a63:7d19:: with SMTP id y25-v6mr9490057pgc.165.1526893469397; Mon, 21 May 2018 02:04:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526893469; cv=none; d=google.com; s=arc-20160816; b=cDmAEDPITr/Rocbs9nYRiQf7rQ5Fe2H2AFVYOLTE9f7inNBKiHyRJjSk3P1hjcYiOv Uq7lA03YyyPtHdMipZACvXGKoY1dzTKThp5s+QZV57j/gKhCcOha63wYah64OZF7X4ZM RUATofOWuvT0c4VwZhO0xgpkYbC/GqTgIrYv1YCWwm2l+z3XWoALr0xIjvtFwSJ0kmR3 uojMUGU1OYZoBwrOveU5lgM53ivrEQk0IUffdRgfFBXkNVsE/+ri0uHPEERWbMMyH15T Sz1hQKVBTF0msPcpWCuO4f3qU4MNnkYeWqEvug8WxAZ87Ib5N6ycsDX4egc/crEQx5FL t4Iw== 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=gklxDG1ssXdl7Iseag8m/4+m4PPoNefpKtLuBTaeQJM=; b=F8/kWAQ0NppF21aj6R7IEJn2L/kRIRXGN2/hH1Mk1Nf1EIcxwrYHRqRHm3x8WbMRPQ SDdQdbFxbBJ7oSLicHs1SfP2Vb2u79R57WEviir31nKuNsMtZsGbCrxzqRNsx0Sgsnff zrw9+k7IPNud17zCvF5Q7JtZbz8OoY0aaGgqnjkRtYo9VWY6Ukk6TpiNcoh/bXLUxx7Q TyAkQHPdHom9SO8xj3TIRjFc2VKO2oRsELTpyYvFbcR1rOemVnr/kwH1zad1BbH9wj2y pop1hw3Kzv61KzonjiS8euX14rhFGr/AJW+I9DdVlIkHp1lsg3Q2xN3PAP8SC56PJydZ oCQg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=cmNgAU4J; 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 u8-v6si10883130pgv.277.2018.05.21.02.04.15; Mon, 21 May 2018 02:04:29 -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=cmNgAU4J; 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 S1751645AbeEUJC3 (ORCPT + 99 others); Mon, 21 May 2018 05:02:29 -0400 Received: from mail-wm0-f66.google.com ([74.125.82.66]:55297 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751565AbeEUJCZ (ORCPT ); Mon, 21 May 2018 05:02:25 -0400 Received: by mail-wm0-f66.google.com with SMTP id a8-v6so23988890wmg.5 for ; Mon, 21 May 2018 02:02:25 -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=gklxDG1ssXdl7Iseag8m/4+m4PPoNefpKtLuBTaeQJM=; b=cmNgAU4JVNJasUzYb//q65ReRXw8fl0RJL4gUvhwlQ/eWRBBK2u9ZqVMfQfdd60txZ uKNvt0IoBwVnI/QLgXPqtJoZ3tbfqFLBAASm/Zi2ToI6Fee/WY03K9VxdZ9dpYYv69Cl oo1a0FmzbqXs8/hkoaFoDILNS12AfyqZPN/HVi1uNcTkqPmrzW2xK6pa0egBm7Y9ajd7 EkFaRbabEhq0rInmrEft/PGR9c17+Zk2U+U6R5BuQUXt+0DSo+2E5q3KslD0kozHXl/z SA0hKndrMb7f3ScGx4qktW2cDYzIhDJ6E7HwyjfxVfVC1xYlYlp38nQ721fIDtJqCtri HTQg== 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=gklxDG1ssXdl7Iseag8m/4+m4PPoNefpKtLuBTaeQJM=; b=l+6sXsE0jEvWS7rT2ICaeflseZuYHyI3ATZyvURrFBGZ8LcBs+03PV0MHbqkmZUlXs z2+zcS+ejGc6i0kZvKCRBgs+rJtC2SvSm9Osarc45a6GQqzvB19BNU1uqHpX6vZujP7z 37iM0F/LET+7bwzZ/V9eWXGvPSHlmr1YLH575TKwfdGSX24cJWkEBOKfqK/LsEY6T0n0 NQ6knSYfEJUzhPj9mzscyAiuRnZgxHiVHJ4eFlhG34Z78w7YdyL2x6hF8TSitpLtCVmX YcjuAjMmnw8nojxLKmjpqo9cs8vuziGjFCyd05cASNU8kLC0g49Rbhsiv3sN1A1YOW17 aXhQ== X-Gm-Message-State: ALKqPwdCxll74MP6ylnRpcmzlL6v/hajdTRfyZuvDuBUUb8ePXHTt4Lf YlAcdFa33VmHhTIiUqkjY221d8kVDgw= X-Received: by 2002:a1c:8645:: with SMTP id i66-v6mr10893357wmd.40.1526893344154; Mon, 21 May 2018 02:02:24 -0700 (PDT) Received: from ?IPv6:2a01:cb1d:4ce:ea00:748b:2433:2688:e1f? ([2a01:cb1d:4ce:ea00:748b:2433:2688:e1f]) by smtp.gmail.com with ESMTPSA id e7-v6sm14081341wrn.88.2018.05.21.02.02.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 May 2018 02:02:23 -0700 (PDT) Subject: Re: [PATCH v2 0/5] Add ChromeOS EC CEC Support To: Enric Balletbo Serra Cc: David Airlie , Hans Verkuil , Lee Jones , Olof Johansson , Sean Paul , sadolfsson@google.com, Felix Ekblom , Benson Leung , darekm@google.com, =?UTF-8?Q?St=c3=a9phane_Marchesin?= , Fabien Parent , dri-devel , linux-media@vger.kernel.org, intel-gfx@lists.freedesktop.org, linux-kernel References: <1526648704-16873-1-git-send-email-narmstrong@baylibre.com> 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 GyMGCwkIBwMCBhUIAgkKCwQWAgMBAh4BAheABQJXDO2CAhkBAAoJEBaat7Gkz/iubGIH/iyk RqvgB62oKOFlgOTYCMkYpm2aAOZZLf6VKHKc7DoVwuUkjHfIRXdsl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8e-bd23-61da6adf7a7d@baylibre.com> Date: Mon, 21 May 2018 11:02:22 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: 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 On 18/05/2018 16:04, Enric Balletbo Serra wrote: > Hi Neil, > > 2018-05-18 15:04 GMT+02:00 Neil Armstrong : >> 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 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 >> > > Just because I got confused when I saw two v2 in my inbox. This is v3, right? Yes, sorry it's v3... next will be v4. > >> 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 (5): >> media: cec-notifier: Get notifier by device and connector name >> drm/i915: hdmi: add CEC notifier to intel_hdmi >> mfd: cros-ec: Introduce CEC commands and events definitions. >> mfd: cros_ec_dev: Add CEC sub-device registration >> media: platform: Add Chrome OS EC CEC driver >> >> drivers/gpu/drm/i915/Kconfig | 1 + >> drivers/gpu/drm/i915/intel_display.h | 20 ++ >> 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 | 80 ++++++ >> include/media/cec-notifier.h | 27 +- >> 14 files changed, 557 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 >> >> -- >> 2.7.4 >>