From patchwork Tue Apr 16 14:58:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Wunderlich X-Patchwork-Id: 10904693 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 CDE53922 for ; Wed, 17 Apr 2019 07:04:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B85312624D for ; Wed, 17 Apr 2019 07:04:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC2DE2872F; Wed, 17 Apr 2019 07:04:30 +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 232D72624D for ; Wed, 17 Apr 2019 07:04:30 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 8243689EF7; Wed, 17 Apr 2019 07:03:58 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3E66F89E32 for ; Tue, 16 Apr 2019 15:00:10 +0000 (UTC) X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([185.53.43.193]) by mail.gmx.com (mrgmx102 [212.227.17.168]) with ESMTPSA (Nemesis) id 0LsOsW-1grxln1gwy-01242I; Tue, 16 Apr 2019 16:59:11 +0200 From: Frank Wunderlich To: CK Hu , Philipp Zabel , David Airlie , Daniel Vetter , Matthias Brugger , dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Mark Rutland , devicetree@vger.kernel.org, chunhui dai , Ryder Lee , Bibby Hsieh Subject: [PATCH v1 4/4] drm/mediatek: fix possible_crtcs Date: Tue, 16 Apr 2019 16:58:48 +0200 Message-Id: <20190416145848.11932-5-frank-w@public-files.de> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190416145848.11932-1-frank-w@public-files.de> References: <20190416145848.11932-1-frank-w@public-files.de> X-Provags-ID: V03:K1:9GPlP7IlVWKnFgYWpkxNnSyxoKqbdPAOhYPuzOGEhvtnm/dnvDc u0aZ6E09ZQ+c0lL/CBmKiBqESl128QUe38K6t0MlPeCuzA8eJMORcnnA2iNslAeyJ+0Z2lC I36MEpQImXtGi5bdpUsnPLatQQ8f2w+RitysYEOi3Q7SqESYkKXRwwvHzoL8heMo24QY9+D Fe0s0ddS+mVFkZU3RW9HQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:DkHhuo31RME=:aT6nZd241Pbf2Q68hLlW5Q 1sAycQMEUyvfRYBu4tlZaNvCtCuyAnZbrQQuyVX81aFSGpUquUUN6fRq4lAJT7jxJS3/hl2aA g5RNwVqDuHudo05/VFmXaanMGZyKwuNObCl3GxKV8NV9XTkse1pgh60qgWoPS+R5i8HhqF5Kf BwTMV/O8oLLr2NwMcW+bXaPfhrVKAddPONP92fUnKylRCyjME983xSEuiHUW/AhXv7Bh7e8yM 09t04hA8w6D8BNYRGegwiLNgbwwaDVEA9H2LcNLLruJt+wOtqg5aE2vFxd0KFpD4HV/30uTBk qiVYr0qL2pyrZoFVrE2Gu2UufFua6WflqO0TYtmh5fV9N8c7ppXTSHY64QsFf5LETAR3ViORq FVoO0l+tIZwcub6ou0AyT4jr+t8cO41us/x5CpIhYHb5R5N4Kt2Imnmpk0cKXVHlKY1p35Fit s19b+9kgE2x6nJM/8TnlzVYYYMnBlObiQf8b3+hNy5wtnS7KHuliRKgBFH0wGwIRz2EtUZ1ZP FQo8o5f51FhsuaG6ZWnhP0kmRjzkSkcsWBQF9LDGQ2Ruy0b0Qh6nvFWrApGQ26AJ+MgdNNtWe +/axL6j6a6WYY7De1RV6bmP/015ZRIwi7xaRF8FnNFdeG4jqQpEhqSX5IYYyTcSMPtzvX0nCC e6isWms/iHqothv3VHKqBYZLfD45U5agN+H8uT4i7fJB4aIedctt7F7FQIkIC/rVJs7V8i3ql 8L8hXJJVQfzfIOvshcrnMMdjr/v/gxp9wxyXogrdSPTVPI08xgxZgxNtmSC9u3W4GX/5GjVKo 0kBLVvAPwyCWV6CtN2g17Db0kbiaS3IayyPYoI6i7xKEzbym9xiUVcIv1Va60FUod0bQEw+3P BVnZ3htBKHknyboSs6oIl+Oy8AHyuRrI63jYsOAq8heGlSLETeZNJGk+Pfxvdm X-Mailman-Approved-At: Wed, 17 Apr 2019 07:03:29 +0000 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1555426751; bh=Y8YBUeQRMwzr7J9CrhokVN2JmnDLZgiR6/FvJ8s0awA=; h=X-UI-Sender-Class:From:To:Subject:Date:In-Reply-To:References; b=hFSnZtrhJMFyrkK+OSxZKbZteH751XTq6PflO4v0YcuSASZUH2TtO0xLW287EFMMn rTdbm8p8VlG45xwHNIvqRb8fiDOUv0Srpt4y7QXORrv0uQxqPUOwTkAhKyw4ImRLMW yAnOlcvey2JUxg6r48gBmZxZawsKBabbuuxQtiV0= 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: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Ryder Lee without this patch there is purple stretched font on fbconsole source: http://forum.banana-pi.org/t/kernel-4-19-rc1-for-testers/6618/52 Signed-off-by: Ryder Lee Tested-by: Frank Wunderlich --- drivers/gpu/drm/mediatek/mtk_dpi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index 5d333138f913..c171b01f77e0 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -610,7 +610,7 @@ static int mtk_dpi_bind(struct device *dev, struct device *master, void *data) drm_encoder_helper_add(&dpi->encoder, &mtk_dpi_encoder_helper_funcs); /* Currently DPI0 is fixed to be driven by OVL1 */ - dpi->encoder.possible_crtcs = BIT(1); + dpi->encoder.possible_crtcs = BIT(0)|BIT(1); ret = drm_bridge_attach(&dpi->encoder, dpi->bridge, NULL); if (ret) {