From patchwork Sun Mar 3 17:35:26 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 10837173 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 7540A1575 for ; Sun, 3 Mar 2019 17:36:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5C64429B73 for ; Sun, 3 Mar 2019 17:36:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5060A29CBF; Sun, 3 Mar 2019 17:36:32 +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=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0EDED29B73 for ; Sun, 3 Mar 2019 17:36:32 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2667689A44; Sun, 3 Mar 2019 17:36:31 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10E7989A44 for ; Sun, 3 Mar 2019 17:36:29 +0000 (UTC) Received: by mail-pg1-x541.google.com with SMTP id h11so1371975pgl.0 for ; Sun, 03 Mar 2019 09:36:29 -0800 (PST) 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=vJPTx000oHxbopR6zSva+6PYTZChrEwYDWEdYvNHNSw=; b=ExhpnWrfrPDy9XOOaJAZFi6lEODNsXxw7UJpqxjW4L1HQb0kIPyFWfTwqIrrp2kprY eZvNAgDUyRwbY836x9zONQ70fwmAgTKiVoItGdx49gGF/WCaYzKCsfrid9HAlSDf3AEd 5+ErBNcjBsls++GtBdCfPAOh5edqMDG3uopwutOEAFSfpZsQwe9/56D7aW0sK2H+jc7I QQ4Nbu4njGA/9STSJRpG65AFFTRZly0uOzmnCYbAdqC1Hw75l3wCj2MNmBTg90wCEQee +PSjA3q4CHsI0NI68K1QIMkhi/Plkfo1+77P91jaQG0Iqb3FPmLI3epn9vv85GzR4ptf 4G9A== X-Gm-Message-State: APjAAAXI8P9M9NEngVl3e0qMI/chgT2idzp2ZNDCdFwkSYE/Hn2Cx+Z6 MTmhToF3inWdxu+Y2ydjhTKimEwE8cg= X-Google-Smtp-Source: APXvYqxPgxhRSykWz7+/csq2o3JggZowiY4OEPnJlGnRLSmE+fk/rSEqeuGKOjGVBBzGgGe2M3gKNQ== X-Received: by 2002:a63:e752:: with SMTP id j18mr14560664pgk.313.1551634588608; Sun, 03 Mar 2019 09:36:28 -0800 (PST) Received: from localhost.localdomain ([115.97.184.151]) by smtp.gmail.com with ESMTPSA id d129sm5614737pgc.59.2019.03.03.09.36.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Mar 2019 09:36:28 -0800 (PST) From: Jagan Teki To: Maxime Ripard , David Airlie , Daniel Vetter , Chen-Yu Tsai Subject: [PATCH v9 4/5] drm/sun4i: sun6i_mipi_dsi: Support DSI GENERIC_SHORT_WRITE_2 transfer Date: Sun, 3 Mar 2019 23:05:26 +0530 Message-Id: <20190303173527.31055-5-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190303173527.31055-1-jagan@amarulasolutions.com> References: <20190303173527.31055-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Mailman-Original-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=vJPTx000oHxbopR6zSva+6PYTZChrEwYDWEdYvNHNSw=; b=SZZFDZzAKGseSn3ySk56BE72SkGB/cctCQLD2HMzWaXLItoLAUHTNv8+AKaQJtOZr6 7G94/LEMpIGOB8LeSXhKRk5v48oPEh4Bli2Q7rCzhfC1KM8eGI5kOzW/1qmb6wBJJpn9 l/7EOWAHDhpr+aUn+8i1DfnYGkCnNE/2zGKFg= X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sunxi@googlegroups.com, Jagan Teki , Michael Trimarchi , linux-amarula@amarulasolutions.com, linux-arm-kernel@lists.infradead.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP 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 b38358465d87..31ec4048804d 100644 --- a/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c +++ b/drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c @@ -993,6 +993,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;