Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4391015yba; Sun, 12 May 2019 11:45:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy1QG070c3cgyOHCoVHtGcT+39SWWKRgekCikOZd42hJqKNZ1gnCYB9amD0+KmvLJ8dvpU X-Received: by 2002:a17:902:363:: with SMTP id 90mr26670479pld.131.1557686720933; Sun, 12 May 2019 11:45:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557686720; cv=none; d=google.com; s=arc-20160816; b=l0VzlLlXCxtHlKarr+zNRxXO2SuAPJ7VBpJYwiFVYQE0FXU5ywzWli+3uJ8/hXXszJ f3uZ8EepD+XjwFMXnAgCmZ0b6KI+hT8ywvFr+NBynkrc+EnpUz1yDpvu1m6ZLEayteFJ arkEC7lDZQ5uIP9xqAVx8hcgKHQg+D4WXrmQ66VH5RKK3k2OCEABM8FSBxaei0lJX5kE cuM4615v9+qz1n7kg0A1RJfDXeqZTskro+O0yFnF/jaLjwSFhmTn+fMMSxnnJNWrrMa8 RABiqvmYDs2+2rJU3xibkhP58i5fJ5p0KtRvvs4RBina7NZjK18KxzF5kGvdjQiMVnEn rBtg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=X/tiqLBXOZvXdZPkWEHxuqsfybmaWhHqaUojJWwn//o=; b=ZPjQr7I4gRtR0nw5v56P17bfMhjKpZdER4GP5raqJfzLhpz1/DhMQv77Umnbobi+GS XN0QNdD2Uen3Btp20Y7o8s0uCP31i9+JYxQDQGXjXLDkAmBYD6vjxgMXSiCXqNrOYLgt St0RIJbO7FJq4dxIvD1VJUAsy3NrCFrDPiOM3aFLe7dKOrAgvd00i6nOOX5nbJ3iLizl TBWr2ZXlT/i+jZA19zC+vDi+pMGTxKLfSx2Bztg4TbsLxBwJyMeFKZroX4Fj1CTmCQn4 E/WsCbrWL/W/i3VOP3EyubPXo4DsWqniZKldknhyHjTYfuS6+O7epQGybcjApHbKshDs ycMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gmE7gAbS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b5si14128044pge.550.2019.05.12.11.45.04; Sun, 12 May 2019 11:45:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=gmE7gAbS; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726529AbfELSlw (ORCPT + 99 others); Sun, 12 May 2019 14:41:52 -0400 Received: from mail-pl1-f195.google.com ([209.85.214.195]:44152 "EHLO mail-pl1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726958AbfELSlw (ORCPT ); Sun, 12 May 2019 14:41:52 -0400 Received: by mail-pl1-f195.google.com with SMTP id d3so5264185plj.11 for ; Sun, 12 May 2019 11:41:52 -0700 (PDT) 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=X/tiqLBXOZvXdZPkWEHxuqsfybmaWhHqaUojJWwn//o=; b=gmE7gAbSlzGEhZ8LpGR33W5phzB49ia1QW0WhEOtOQV4k2UM+5pRETcVfWCpKKNILw cgDKa+e0YZK+3bK/PXSD01TnlI0nZLmqs/H6hXf77K1sJ5EEbzgDeiNjoWyIB0J/QXCB UX5Ea+tsVIzso1qwvUxryk/+dq/YdCVEM5Cn4= 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=X/tiqLBXOZvXdZPkWEHxuqsfybmaWhHqaUojJWwn//o=; b=QqJ4pnY5JaZGFpD2E0HLJfhb27k3vey9GwlOCstoghkRp6fA159TT0YVUYWBNXGUHE db/bBaHLz8njvWtueey3kpR6VNsXpVuu4h+exAqXaVzbetw8TMb6tYscDniMecG5MKA9 1XokE6U+JHJz1qJhRCVTTrDOZGXRMWlmJz9aDcuEbbcTYro0HrPUOwUnVtSmJVwdh5MF orCUIs0sF5aV/HDZIDNsNBeADPNBDp6VGgor8lCaUuhxDgxlvcF9w++e4YXHLXLrhFhP VCxV2sMCoeOqI6SxB2ugbcPpEmPmmeSzoDh6Gp4VqygasNA+axJ/HE1ZDwoEhSRVbnFf lI/Q== X-Gm-Message-State: APjAAAXi+2UQJAetBk+g7fcMo1fCSmM1sMGuPN6D5yuXPDk9PclRfYiv XCXg5gPVLBMSJK/5zQx+nL7AGA== X-Received: by 2002:a17:902:9a9:: with SMTP id 38mr26647580pln.10.1557686511560; Sun, 12 May 2019 11:41:51 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id 37sm11041291pgn.21.2019.05.12.11.41.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 May 2019 11:41:51 -0700 (PDT) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai Cc: michael@amarulasolutions.com, linux-amarula@amarulasolutions.com, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com, Jagan Teki Subject: [PATCH v10 2/2] drm/sun4i: sun6i_mipi_dsi: Support DSI GENERIC_SHORT_WRITE_2 transfer Date: Mon, 13 May 2019 00:11:27 +0530 Message-Id: <20190512184128.13720-3-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190512184128.13720-1-jagan@amarulasolutions.com> References: <20190512184128.13720-1-jagan@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some DSI panels do use GENERIC_SHORT_WRITE_2 transfer protocol to host DSI driver and which is similar to GENERIC_SHORT_WRITE. Add support for the same transfer, so-that so-that the panels which are requesting similar transfer type will process properly. Signed-off-by: Jagan Teki Tested-by: Merlijn Wajer --- 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 bfa7e2b146df..a1fc8b520985 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -980,6 +980,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; -- 2.18.0.321.gffc6fa0e3