All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/5] Add ChromeOS EC CEC Support
@ 2018-05-15 12:46 ` Neil Armstrong
  0 siblings, 0 replies; 22+ messages in thread
From: Neil Armstrong @ 2018-05-15 12:46 UTC (permalink / raw)
  To: airlied, hans.verkuil, lee.jones, olof, seanpaul
  Cc: Neil Armstrong, sadolfsson, felixe, bleung, darekm, marcheu,
	fparent, dri-devel, linux-media, intel-gfx, linux-kernel

Hi All,

The new Google "Fizz" Intel-based ChromeOS device is gaining CEC support
throught 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 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_drv.h                 |   2 +
 drivers/gpu/drm/i915/intel_hdmi.c                |  10 +
 drivers/media/cec/cec-notifier.c                 |  12 +-
 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 | 336 +++++++++++++++++++++++
 drivers/mfd/cros_ec_dev.c                        |  16 ++
 drivers/platform/chrome/cros_ec_proto.c          |  42 ++-
 include/linux/mfd/cros_ec.h                      |   2 +-
 include/linux/mfd/cros_ec_commands.h             |  80 ++++++
 include/media/cec-notifier.h                     |  30 +-
 13 files changed, 530 insertions(+), 15 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

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2018-05-16  0:32 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-15 12:46 [PATCH 0/5] Add ChromeOS EC CEC Support Neil Armstrong
2018-05-15 12:46 ` Neil Armstrong
2018-05-15 12:46 ` [PATCH 1/5] media: cec-notifier: Get notifier by device and connector name Neil Armstrong
2018-05-15 12:46   ` Neil Armstrong
2018-05-15 12:54   ` Hans Verkuil
2018-05-15 12:46 ` [PATCH 2/5] drm/i915: hdmi: add CEC notifier to intel_hdmi Neil Armstrong
2018-05-15 12:46   ` Neil Armstrong
2018-05-15 12:56   ` Hans Verkuil
2018-05-15 14:07     ` Neil Armstrong
2018-05-15 14:07       ` Neil Armstrong
2018-05-15 12:46 ` [PATCH 3/5] mfd: cros-ec: Introduce CEC commands and events definitions Neil Armstrong
2018-05-15 12:46   ` Neil Armstrong
2018-05-15 12:47 ` [PATCH 4/5] mfd: cros_ec_dev: Add CEC sub-device registration Neil Armstrong
2018-05-15 12:47   ` Neil Armstrong
2018-05-15 12:47 ` [PATCH 5/5] media: platform: Add Chrome OS EC CEC driver Neil Armstrong
2018-05-15 12:47   ` Neil Armstrong
2018-05-15 13:04   ` Hans Verkuil
2018-05-15 13:04     ` Hans Verkuil
2018-05-16  0:31   ` [Intel-gfx] " kbuild test robot
2018-05-16  0:31     ` kbuild test robot
2018-05-15 13:03 ` ✗ Fi.CI.CHECKPATCH: warning for Add ChromeOS EC CEC Support (rev2) Patchwork
2018-05-15 13:22 ` ✓ Fi.CI.BAT: success " Patchwork

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.