From: Alex Deucher Subject: [PATCH 1/4] drm/dp: add flags field to drm_dp_aux_msg struct Date: Fri, 21 Mar 2014 20:13:34 -0400 Message-ID: <1395447217-1926-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-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) by gabe.freedesktop.org (Postfix) with ESMTP id CEF3E6E485 for ; Fri, 21 Mar 2014 17:13:45 -0700 (PDT) Received: by mail-qa0-f41.google.com with SMTP id j5so3197077qaq.14 for ; Fri, 21 Mar 2014 17:13:44 -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 Cc: Alex Deucher List-Id: dri-devel@lists.freedesktop.org This adds a flags field and a new flag, BARE_ADDRESS, which drivers can use for special handling when they want to set just the aux address. This is needed to properly reset the connection between i2c transactions. Signed-off-by: Alex Deucher --- include/drm/drm_dp_helper.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm/drm_dp_helper.h b/include/drm/drm_dp_helper.h index b7488c9..a006e96 100644 --- a/include/drm/drm_dp_helper.h +++ b/include/drm/drm_dp_helper.h @@ -403,6 +403,8 @@ drm_dp_enhanced_frame_cap(const u8 dpcd[DP_RECEIVER_CAP_SIZE]) * DisplayPort AUX channel */ +#define DRM_DP_AUX_MSG_FLAGS_BARE_ADDRESS (1 << 0) + /** * struct drm_dp_aux_msg - DisplayPort AUX channel transaction * @address: address of the (first) register to access @@ -417,6 +419,7 @@ struct drm_dp_aux_msg { u8 reply; void *buffer; size_t size; + u32 flags; }; /** -- 1.8.3.1