From patchwork Tue Nov 13 11:16:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10680303 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7553214E2 for ; Tue, 13 Nov 2018 11:19:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 651D82A385 for ; Tue, 13 Nov 2018 11:19:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 594A72A3B8; Tue, 13 Nov 2018 11:19:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 658072A385 for ; Tue, 13 Nov 2018 11:19:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vk6L6VQmD5zwMgjkk5q4SMqcHydiZtlTz0oVxXuwaKo=; b=NeUbP08Gi9ks17 JY2Tb4+UmleoOXFJBH1sM3ccBjheuZ3dUBNrYgpLeJ8zLd36EUy2b9WRKJMUvdcxz/ZTZhWsfFC3F WPqehFHp5jYUwaiysfkAGqdif/QamOa6uA5xK/ERjD4iBlStFfPvkPSHL/71SwNC2HLsV9mWPCmjg wBb5HNldo92YWF6Fqmcbr076qrycFI+hWXo54KhdnIY/b1zbhExid9xDDHeq9HnFMdBhQTPC2Y8FS dHwIg/6nhqgnPNB54Sc39k5oaG1nY3XMekxhCd/Mp0ui7CB74gauwWjVkCYBkJO9nfYcLkrqq98X8 5M3SsvwUjhDk869owbMA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWin-0000iV-3t; Tue, 13 Nov 2018 11:19:05 +0000 Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gMWhV-0007ot-GJ for linux-arm-kernel@lists.infradead.org; Tue, 13 Nov 2018 11:17:48 +0000 Received: by mail-pf1-x443.google.com with SMTP id s9-v6so5865609pfm.13 for ; Tue, 13 Nov 2018 03:17:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0G2Cm6yl0hA4By0n3opJjvWD4CEYft0z/6JnEL+u5rs=; b=aSMmA1084sc9DatC+qE4VXG7awzpcfUKikd6oTWB7eyTrf9ODoQfuf5Etu96/qBcX+ 03cdvO1sw/9NzdFqX+8zsxaeFlk1p/LR1xaDuBsY93XKDyev69dUD3M20Adl0ZQDf0tn U+rNrxAt4RL65nJOm+HVo6d8qkSFnB/Wtqfow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0G2Cm6yl0hA4By0n3opJjvWD4CEYft0z/6JnEL+u5rs=; b=LGZ07qRD1WjEqAYgxlEaynHo0Mjx0XMdJOTLji4zHthRyhRVXh4E2d1suYOOcZuju7 LnQcn3WmNZeLnPe/DemS5VB9qE+YAKnDEJzyozx6fiirkbulnmXjU1Pbbdeak/DGgBPN 9Igwb/GRxtA8ZEqEyF3DkA0+rPuU5BPcjnwNMh80Se/ujGHQ6URG0TmtJas8JCD2NUfS yQqavM4lkJ3Fa9P1nLoosYdJL9fzAIWMm2PiHVrmVMZcOIvM3gwxL1043L+YK7PlyQbL 2UFj+j433sNJhLUMCUxpZH76z418b9Kthepl4OfeNCfOq9mTUquGiGngpDo5VWAgsq3b h8Tg== X-Gm-Message-State: AGRZ1gI4syq5Za+K+rLkrDYHoYowS3ANYhssD50ndckUBuEzKp20IC4g TVhzQTx8m2gmAziRzTjwFdfoTg== X-Google-Smtp-Source: AJdET5cDlT6XtMHcyOVsrWKniVoN+18C/4yHXDyddrOPtOPRhnF/dieOiDayun0A4sA6Bb/nn3JuPA== X-Received: by 2002:a62:3101:: with SMTP id x1-v6mr4852009pfx.204.1542107854069; Tue, 13 Nov 2018 03:17:34 -0800 (PST) Received: from localhost.localdomain ([2401:4900:3670:3f11:bc71:2ef7:4a39:e260]) by smtp.gmail.com with ESMTPSA id 27-v6sm28531377pfm.36.2018.11.13.03.17.27 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 13 Nov 2018 03:17:33 -0800 (PST) From: Jagan Teki To: Maxime Ripard , Chen-Yu Tsai , Icenowy Zheng , Jernej Skrabec , Vasily Khoruzhick , Rob Herring , Mark Rutland , Catalin Marinas , Will Deacon , David Airlie , dri-devel@lists.freedesktop.org, Michael Turquette , Stephen Boyd , linux-clk@vger.kernel.org, Michael Trimarchi , linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, linux-amarula@amarulasolutions.com Subject: [PATCH v4 07/26] drm/sun4i: sun6i_mipi_dsi: Add DSI Generic short write 2 param transfer Date: Tue, 13 Nov 2018 16:46:14 +0530 Message-Id: <20181113111633.20189-8-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20181113111633.20189-1-jagan@amarulasolutions.com> References: <20181113111633.20189-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181113_031745_545727_4279F02F X-CRM114-Status: GOOD ( 13.25 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jagan Teki Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Short transfer write support for DCS and Generic transfer types share similar way to process command sequence in DSI block so add generic write 2 param transfer type macro so-that the panels which are requesting similar transfer type may process properly. Signed-off-by: Jagan Teki --- drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c index 50f535ae57e9..cdd44a1307b3 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -871,6 +871,7 @@ static ssize_t sun6i_dsi_transfer(struct mipi_dsi_host *host, switch (msg->type) { case MIPI_DSI_DCS_SHORT_WRITE: case MIPI_DSI_DCS_SHORT_WRITE_PARAM: + case MIPI_DSI_GENERIC_SHORT_WRITE_2_PARAM: ret = sun6i_dsi_dcs_write_short(dsi, msg); break;