From patchwork Fri Mar 28 11:52:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrzej Hajda X-Patchwork-Id: 3902581 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 EFFEABF540 for ; Fri, 28 Mar 2014 11:53:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3B342202FF for ; Fri, 28 Mar 2014 11:53:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DF70E202EC for ; Fri, 28 Mar 2014 11:53:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752076AbaC1Lx1 (ORCPT ); Fri, 28 Mar 2014 07:53:27 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:63428 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752053AbaC1Lx0 (ORCPT ); Fri, 28 Mar 2014 07:53:26 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0N3500IONACZBEA0@mailout4.w1.samsung.com>; Fri, 28 Mar 2014 11:53:23 +0000 (GMT) X-AuditID: cbfec7f4-b7f796d000005a13-a4-533562b4a218 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id FA.29.23059.4B265335; Fri, 28 Mar 2014 11:53:24 +0000 (GMT) Received: from AMDC1061.digital.local ([106.116.147.88]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0N3500JZBACMH5A0@eusync4.samsung.com>; Fri, 28 Mar 2014 11:53:24 +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 , Inki Dae , Marek Szyprowski Subject: [PATCH v3 01/12] drm/mipi_dsi: add flags to DSI messages Date: Fri, 28 Mar 2014 12:52:36 +0100 Message-id: <1396007567-4015-2-git-send-email-a.hajda@samsung.com> X-Mailer: git-send-email 1.8.3.2 In-reply-to: <1396007567-4015-1-git-send-email-a.hajda@samsung.com> References: <1396007567-4015-1-git-send-email-a.hajda@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrLLMWRmVeSWpSXmKPExsVy+t/xa7pbkkyDDfb/Z7S4te4cq8X8I0Di ytf3bBb9bxayWhz4s4PR4tyrlYwWk+5PYLE42/SG3WLG+X1MFmuP3GW3WHr9IpPFhOlrWSxa 9x5ht7i74SyjA5/HmnlrGD1mN1xk8bjc18vksXL5FzaPTas62TzuXNvD5nG/+ziTR9+WVYwe nzfJBXBGcdmkpOZklqUW6dslcGVs+dnNWvCFo2LzkocsDYzL2LsYOTkkBEwkVvT/ZYKwxSQu 3FvP1sXIxSEksJRR4lXLVTaQhJBAH5PE+n4ZEJtNQFPi7+abYHERAWWJvxNXMYI0MAu8Z5bY e2UyI0hCWMBR4vStBWBFLAKqEh2fmlhAbF4BJ4lN29+wQGxTkFj2ZS0ziM0p4Cyx6u1EqGVO EneeNzJPYORdwMiwilE0tTS5oDgpPddQrzgxt7g0L10vOT93EyMkiL/sYFx8zOoQowAHoxIP 7wwrk2Ah1sSy4srcQ4wSHMxKIrxLbE2DhXhTEiurUovy44tKc1KLDzEycXBKNTBOKbQslvDj jOVdf/3qGs77ZWpy++ZveVW+IuKUT7KAYJ+fx86/kWmH05mf1NvPzFLI2tbyobhkR8LSdeen 2u308ZvesPfG6V9MSx+7vIg90bbi36JP8o6Vf/bE7Ba5NG9zZcnzhTw9nLErPuhPylhVMcG2 bF+y2PlUj7++Zc1FnTv2lfzzniSmxFKckWioxVxUnAgARudA5kACAAA= 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=-7.3 required=5.0 tests=BAYES_00, 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;