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: 10837181 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 29FA01575 for ; Sun, 3 Mar 2019 17:37:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 115F829B73 for ; Sun, 3 Mar 2019 17:37:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0583D29DD0; Sun, 3 Mar 2019 17:37:01 +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,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 81E6629B73 for ; Sun, 3 Mar 2019 17:37:00 +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=eIHi9m/T7hybb2cRjD+V1umPTTLqSBGv5VvQPsx4yJI=; b=WI4WawvuWd/yey 9g5Gs/qXyYZKMpM3kezjNOm+XT8XWFlXOawFwk/onwU91STG9gfvQ3+kjaZavHwz8iyKc3o5qQrH7 WUfk9Zb7AwSPFsv0wnyX8M+6OicxemEYbsXSJFMUXpxDWbPmglFY/5NAxc18QU4VjdV7pwDcKIbLb qGidTO/eGpRW0TsTmFpmZZ+8tcar5YJjfonIBUEo8gUfPVw7BXTNvFIDOjFlSxhwaZW1VM0FidpvX i+2Q3RTqeNKwnvyaZ9/Nl8LnlLmYlf1WudqhAo0x6757uQDcvP+X79U3JjVZIjoebdfPEWuaOZ5G3 /lz4ziHPjBQEUptwdEnA==; 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 1h0V2l-0002dZ-Ex; Sun, 03 Mar 2019 17:36:55 +0000 Received: from mail-pg1-x543.google.com ([2607:f8b0:4864:20::543]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h0V2L-00021V-8k for linux-arm-kernel@lists.infradead.org; Sun, 03 Mar 2019 17:36:34 +0000 Received: by mail-pg1-x543.google.com with SMTP id r124so1366583pgr.3 for ; Sun, 03 Mar 2019 09:36:29 -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=vJPTx000oHxbopR6zSva+6PYTZChrEwYDWEdYvNHNSw=; b=SZZFDZzAKGseSn3ySk56BE72SkGB/cctCQLD2HMzWaXLItoLAUHTNv8+AKaQJtOZr6 7G94/LEMpIGOB8LeSXhKRk5v48oPEh4Bli2Q7rCzhfC1KM8eGI5kOzW/1qmb6wBJJpn9 l/7EOWAHDhpr+aUn+8i1DfnYGkCnNE/2zGKFg= 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=kHxA9sztXwnUuVQ7Bzo0jq9qjEztBcinCNA81S0gsKjULFh+oqWytAWwmJZw2UxlzB z+pGODk4k/hZEkVjlA6UPi49H0pvVlmwlt0c/yGtAz37m7IcyFJTebc6+90n9Tovbqoh NeMrajl/3TAC30VZosGqaMHPedPVRBt51XlS3ABZGPevQH2cx1RY4eh8G3MHsAECgxv2 WTbkvzVrV+3KI0fPw/pf5WCBJiwicIOp+sPumRjVT6K5pZtyq1k/J7bthzUJBcPc7iea 8R5bF7kh8+mvc2oiXZhGDKrguvblRqtMn9kjZOJGFNqOJbMmEJcKmW/TOo44F9E/pfCE O24A== X-Gm-Message-State: APjAAAW+sQSsKeCWMREDwKXu1a+zficMNAu5WN6d/DofIkMuySTR/qLZ vfg83VigJA4hcHXgrQm+184bCQ== 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-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190303_093629_755917_15FAAAA2 X-CRM114-Status: GOOD ( 11.84 ) 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: 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 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 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;