From patchwork Sat Mar 31 14:47:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Satendra Singh Thakur X-Patchwork-Id: 10318955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 92B4760380 for ; Sat, 31 Mar 2018 14:52:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E5802943B for ; Sat, 31 Mar 2018 14:52:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6F01029443; Sat, 31 Mar 2018 14:52:34 +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=-1.9 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FROM autolearn=unavailable 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 B96132943B for ; Sat, 31 Mar 2018 14:52:33 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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:In-Reply-To: References:List-Owner; bh=xQphZuGnXjzDhmY3G5AOiPfNszF3Zj/lv2uPfhcfz34=; b=Opl cz0pNZDpvbfscqGuVTj6SkKtQdZCcR0CHsu1QQ+I7DWBmANzCun0vuJ9JjAWzkxfleAI2ahwevqIK 5ZP6+1lx2w0AlcLL+DClwgt/xk8NLS4SJ1pcJ16VVqZ18vZEZnWBb7IjLr9vXoR9UQ6/Eu3qlaSG0 SSrUA5mC3WsaOye/GtrOFyHLIJTAubvg583du4CVB6+fcujOB/I8sHwKw6DvG3OJV/cVsJOJIigC/ JUlA0hRCJwczuwsC6sbtu2yt4MhY0ZlC7c+ci5Z1A2zOYxfQXlV6I3ttsIC6NfjpO+/0BpdguraMD L4qJLsyvJby06VSLOuQojJOwkWUSIcA==; 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 1f2Hrp-0007uH-Le; Sat, 31 Mar 2018 14:52:29 +0000 Received: from sonic302-20.consmr.mail.sg3.yahoo.com ([106.10.242.140]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1f2Hr4-0007TO-Je for linux-mediatek@lists.infradead.org; Sat, 31 Mar 2018 14:51:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s2048; t=1522507886; bh=tU/4eFWj6z8JZrduKZKKVow3+LR/CWScnMCAoRqg5tw=; h=From:To:Cc:Subject:Date:From:Subject; b=oNIZdRmn/GC+0lP/9LK4FRmqzn3INn1QJik9YKJtEp7yH6hI0znjvgRdI8YXa86UmlIydx4ClBAZffkwyQEaiIU8/b3O2k0aUYRYDSnTk5uSeWwrniYIAKH4zebVJlzixIs+AMLI63ihW8odCKF5DEG7mSW3dtRFoO8R2JsAJsc7z9x1HO01sq3NpS6kN0ylBV4aVUiZUdwYQ1FCT5RfeFMCwbjZaEZmLWbX46szqFwQnV7CSOmgznfgZ55FazihWJKyxSMSTaIh+NPAoXJS6D1zQzAMs/DkWn5PlA8PsfTiCnWeC6Mwm5feANQkD832+i6uFMawrdhSqGNhq4ha4g== X-YMail-OSG: hlhLg5kVM1kp9ihSnyAg8F2bKxx0R09P7SlRO2n4YDiW._Mn4M78zdAZGo7.zSx HkRo27Zd6supLp3W7EHRVE9p0KfsyHhVXvx9x1KxLbuFe13BpkulDm_ZNs1NCfxhUbCHBWwjXr2G Ui2MiMIAhfIq5t5gOg3Mna0x25H.whkGkMZTybMwxVlACk4PbwVbSJrEBp113J8NrzDiQKvgQ4oQ 0XTNpXo1SmkDm5qZp9pF3OM7y4YKzOSkBqKzEqaqQRZbNO.VtFRaJQ87fAAHeQh2vTzz_TVU6aNW LL1RV1C_r8XsleKIjrMarnnfNjtL.SW4fZYaozB0_UwLPAtvwmNPyG8pz1RDJORSA1Ndgewt7L3V rebM8S58QBwsKPE.H2k0C21exUc0SHkDGJpciCLFXY5wyuTwHJUl4hZHLB9_OlEc0diIbD5aaVxD iRyMwMfystOgRAW6H8MtsIuygZ852kayWaxK_8yHhu.3fXdimxNG0GAB7zewNIo1ow6XnIr_NOs9 FwThx7wC9tHB0D_dW2_sGW64FS_rzMDrib95moj3jz5nIjdrEVN5te4YLkA-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic302.consmr.mail.sg3.yahoo.com with HTTP; Sat, 31 Mar 2018 14:51:26 +0000 Received: from 45.251.50.241 (EHLO localhost.localdomain) ([45.251.50.241]) by smtp423.mail.sg3.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 9e725800f61c57fc54c4eb5f6fee85c3; Sat, 31 Mar 2018 14:51:26 +0000 (UTC) From: Satendra Singh Thakur To: linux-kernel@vger.kernel.org Subject: [PATCH] [DRM][KMS][MODE][MEDIATEK] Using the function drm_display_mode_to_videomode Date: Sat, 31 Mar 2018 20:17:58 +0530 Message-Id: <1522507712-22763-1-git-send-email-thakursatendra2003@yahoo.co.in> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180331_075142_924487_B1BABE12 X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-mediatek@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , dri-devel@lists.freedesktop.org, Matthias Brugger , linux-mediatek@lists.infradead.org, Satendra Singh Thakur , Philipp Zabel , CK Hu , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "Linux-mediatek" Errors-To: linux-mediatek-bounces+patchwork-linux-mediatek=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This patch uses existing method drm_display_mode_to_videomode for calculating front/back porches, sync lengths for mediatek dsi/dpi drivers; instead of manually calculating them Signed-off-by: Satendra Singh Thakur --- drivers/gpu/drm/mediatek/mtk_dpi.c | 60 +++++++++++++++++++------------------- drivers/gpu/drm/mediatek/mtk_dsi.c | 14 ++------- 2 files changed, 32 insertions(+), 42 deletions(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index e80a603..6c0ea39 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -22,6 +22,7 @@ #include #include #include +#include