drm/dp: Allow registering AUX channels as I2C busses
authorThierry Reding <treding@nvidia.com>
Thu, 12 Dec 2013 08:57:53 +0000 (09:57 +0100)
committerThierry Reding <treding@nvidia.com>
Wed, 26 Feb 2014 16:21:34 +0000 (17:21 +0100)
commit88759686c702f1fbbb8e737e6231b64a9880db73
treeb803c33c31865165a95de0a7bfe68fb42082c1e3
parent516c0f7c0a608833cc01d3f5b2a357ee806b78a1
drm/dp: Allow registering AUX channels as I2C busses

Implements an I2C-over-AUX I2C adapter on top of the generic drm_dp_aux
infrastructure. It extracts the retry logic from existing drivers, which
should help in porting those drivers to this new helper.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
---
Changes in v5:
- move comments partially to to header file
- keep MOT set between I2C messages
- return -EPROTO on short reads

Changes in v4:
- fix typo "bitrate" -> "bit rate"

Changes in v3:
- add back DRM_DEBUG_KMS and DRM_ERROR messages
- embed i2c_adapter within struct drm_dp_aux
- fix typo in comment
drivers/gpu/drm/drm_dp_helper.c
include/drm/drm_dp_helper.h