From patchwork Wed Feb 12 11:31:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3637341 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 45F91BF13A for ; Wed, 12 Feb 2014 11:32:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B7F67201ED for ; Wed, 12 Feb 2014 11:32:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F122820127 for ; Wed, 12 Feb 2014 11:32:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751868AbaBLLcK (ORCPT ); Wed, 12 Feb 2014 06:32:10 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:24978 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbaBLLcI (ORCPT ); Wed, 12 Feb 2014 06:32:08 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N0V0026LS1I5H00@mailout1.w1.samsung.com>; Wed, 12 Feb 2014 11:32:07 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-92-52fb5bb5b15b Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 17.97.23059.5BB5BF25; Wed, 12 Feb 2014 11:32:05 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01 (7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0N0V00CLBS14OO70@eusync2.samsung.com>; Wed, 12 Feb 2014 11:32:05 +0000 (GMT) From: Andrzej Hajda To: dri-devel@lists.freedesktop.org Cc: Andrzej Hajda , Mark Rutland , devicetree@vger.kernel.org, linux-samsung-soc@vger.kernel.org, Pawel Moll , Ian Campbell , Kyungmin Park , Rob Herring , Kumar Gala , Grant Likely , Sean Paul , Marek Szyprowski Subject: [RFC PATCH v2 01/21] drm_mipi_dsi: add flags to DSI messages Date: Wed, 12 Feb 2014 12:31:08 +0100 Message-id: <1392204688-4591-2-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1392204688-4591-1-git-send-email-a.hajda@samsung.com> References: <1392204688-4591-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrBLMWRmVeSWpSXmKPExsVy+t/xK7pbo38HGbxvMLW4te4cq8X8I0Di ytf3bBb9bxayWhz4s4PR4tyrlYwWZ5vesFvMOL+PyWLtkbvsFkuvX2SymDB9LYtF694j7BZ3 N5xldOD1WDNvDaPH7IaLLB6X+3qZPFYu/8LmsWlVJ5vHnWt72Dzudx9n8ujbsorR4/MmuQDO KC6blNSczLLUIn27BK6MLT+7WQu+cFRsXvKQpYFxGXsXIyeHhICJxNyDi5khbDGJC/fWs3Ux cnEICSxllDi/4wcrhNPHJHFl3xcmkCo2AU2Jv5tvsoHYIgLKEn8nrmIEKWIWOMMsce3tBLCE sICrxMX9q8FWsAioSnybs4IFxOYVcJL4sqKRCWKdgsSyL2uBVnNwcAo4Sxzu1gEJCwGVbJ1+ j3ECI+8CRoZVjKKppckFxUnpuYZ6xYm5xaV56XrJ+bmbGCGh+2UH4+JjVocYBTgYlXh4GTx/ BQmxJpYVV+YeYpTgYFYS4Q2K+h0kxJuSWFmVWpQfX1Sak1p8iJGJg1OqgbGx1n7bqhjJhNs5 j6a/5mn4J5H7wfr33t17j1/acumT6bwZO1lqXmQ+NVhs1eKhf2VWukf7+riPUxPDWsMl/iZ0 HpmQWXxceEEoV0rBAe5J8WUMRj/C2VOrD3z4X1Xm/CCf5YpkxLELSx6rLfxbdt67542j7MJT i+aWJpfLPN52o3pGvf7CBlElluKMREMt5qLiRAA1MwXhOwIAAA== Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00,KHOP_BIG_TO_CC, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch adds flags field to mipi_dsi_msg structure and two flags: - MIPI_DSI_MSG_REQ_ACK - request ACK from peripheral for given message, - MIPI_DSI_MSG_USE_LPM - use Low Power Mode to transmit message. The first flag is usually helpful during DSI diagnostic, the second flag is required by some peripherals during configuration phase. Signed-off-by: Andrzej Hajda --- include/drm/drm_mipi_dsi.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/drm/drm_mipi_dsi.h b/include/drm/drm_mipi_dsi.h index d32628a..7209df1 100644 --- a/include/drm/drm_mipi_dsi.h +++ b/include/drm/drm_mipi_dsi.h @@ -17,6 +17,11 @@ struct mipi_dsi_host; struct mipi_dsi_device; +/* request ACK from peripheral */ +#define MIPI_DSI_MSG_REQ_ACK BIT(0) +/* use Low Power Mode to transmit message */ +#define MIPI_DSI_MSG_USE_LPM BIT(1) + /** * struct mipi_dsi_msg - read/write DSI buffer * @channel: virtual channel id @@ -29,6 +34,7 @@ struct mipi_dsi_device; struct mipi_dsi_msg { u8 channel; u8 type; + u16 flags; size_t tx_len; const void *tx_buf;