From patchwork Thu Apr 26 05:58:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?Q0sgSHUgKOiDoeS/iuWFiSk=?= X-Patchwork-Id: 10364689 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 A70B0602DC for ; Thu, 26 Apr 2018 05:59:12 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96C23289BB for ; Thu, 26 Apr 2018 05:59:12 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B85C29001; Thu, 26 Apr 2018 05:59:12 +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=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, MAILING_LIST_MULTI, UNPARSEABLE_RELAY 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 DBBF1289BB for ; Thu, 26 Apr 2018 05:59:11 +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: Date:To:From:Subject:Message-ID:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=GSM1Lxom70W7AdtuhDgZFHQeZo3tuq8Qinxde5BRySU=; b=bgogTnoAvi5++a G+UJkXmltcXc5cx6sfrkq0lgVcN5sBsrunYK2seMuSBkGESV6J+xormsL8n/GanKBvtIMwHKKvlPP 2yDTeA61N2IqI6ks0FgL+zPoKX3QsMD3GVHuC4t+7MIWv/IJ8eot9XTzJZWoypdo/F2eeC+diIDsR DYofnVzYV/F/9JSPomBzbHiKB83kX4JsBanXYOnbOg/XAaVmgWhmZYnJzUL8qQzfdqll2uGOV1/tR IIA233kZ7MEUyejbJySb6PZdPopwUT2CSrOypGR1QlJIvUea9Vkkzk9RGFYW+mkKFjA2CZ+KtUSDt YaH/4bEZlF2bIPmhovyQ==; 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 1fBZvt-0006ZZ-4t; Thu, 26 Apr 2018 05:59:05 +0000 Received: from [210.61.82.183] (helo=mailgw01.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fBZvo-0006YB-KO; Thu, 26 Apr 2018 05:59:02 +0000 X-UUID: afcefeb9fd404850b9714e2a80f2cb44-20180426 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw01.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 1166035880; Thu, 26 Apr 2018 13:58:43 +0800 Received: from mtkcas09.mediatek.inc (172.21.101.178) by mtkmbs01n2.mediatek.inc (172.21.101.79) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 26 Apr 2018 13:58:40 +0800 Received: from [172.21.77.4] (172.21.77.4) by mtkcas09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Thu, 26 Apr 2018 13:58:33 +0800 Message-ID: <1524722313.6240.8.camel@mtksdaap41> Subject: Re: [PATCH] [DRM][KMS][MODE][MEDIATEK] Using the function drm_display_mode_to_videomode From: CK Hu To: Satendra Singh Thakur Date: Thu, 26 Apr 2018 13:58:33 +0800 In-Reply-To: <1522507712-22763-1-git-send-email-thakursatendra2003@yahoo.co.in> References: <1522507712-22763-1-git-send-email-thakursatendra2003@yahoo.co.in> X-Mailer: Evolution 3.2.3-0ubuntu6 MIME-Version: 1.0 X-MTK: N X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180425_225900_945837_60164649 X-CRM114-Status: GOOD ( 18.99 ) 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: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, Philipp Zabel , Matthias Brugger , 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 Hi, Satendra: I've applied this patch to my branch mediatek-drm-next-4.18, and I've added below modification in this patch to prevent build error, Regards, CK On Sat, 2018-03-31 at 20:17 +0530, Satendra Singh Thakur wrote: > 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