From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Deucher Subject: [PATCH 0/3] Reset i2c connection between xfers Date: Fri, 4 Apr 2014 10:40:55 -0400 Message-ID: <1396622458-2092-1-git-send-email-alexander.deucher@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173]) by gabe.freedesktop.org (Postfix) with ESMTP id 4FB5E6ED9F for ; Fri, 4 Apr 2014 07:41:05 -0700 (PDT) Received: by mail-qc0-f173.google.com with SMTP id r5so3495462qcx.4 for ; Fri, 04 Apr 2014 07:41:04 -0700 (PDT) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: dri-devel@lists.freedesktop.org, jani.nikula@linux.intel.com Cc: Alex Deucher List-Id: dri-devel@lists.freedesktop.org When switching to the new common i2c over aux code, I ran into problems fetching the EDID on certain DP monitors. I tracked this down to the lack of bare address packets being sent between i2c transfers. This patch set adds that functionality which brings it back inline with the old drm dpm i2c algo. Originally, I added flags to note a bare address packet, but after review switched to sending a zero sized packet instead. Note that I'm not sure the other drivers that use these helpers currently handle zero sized packets properly. I had to fix up radeon to do so. Alex Deucher (3): drm/radeon/dp: handle zero sized i2c over aux transactions drm/dp/i2c: send bare addresses to properly reset i2c connections drm/radeon/dp: switch to the common i2c over aux code drivers/gpu/drm/drm_dp_helper.c | 53 +++++++----- drivers/gpu/drm/radeon/atombios_dp.c | 132 ++++++----------------------- drivers/gpu/drm/radeon/radeon_connectors.c | 44 ++-------- drivers/gpu/drm/radeon/radeon_display.c | 11 ++- drivers/gpu/drm/radeon/radeon_i2c.c | 60 +++---------- drivers/gpu/drm/radeon/radeon_mode.h | 12 +-- 6 files changed, 85 insertions(+), 227 deletions(-) -- 1.8.3.1