From patchwork Mon Nov 21 17:16:30 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 9439861 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 776CE6075D for ; Mon, 21 Nov 2016 17:18:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BB1A28B20 for ; Mon, 21 Nov 2016 17:18:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6C27B28B32; Mon, 21 Nov 2016 17:18:41 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0ECB028B26 for ; Mon, 21 Nov 2016 17:18:41 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1c8sDW-0001ln-Uk; Mon, 21 Nov 2016 17:17:18 +0000 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1c8sDA-0001YO-PN for linux-arm-kernel@lists.infradead.org; Mon, 21 Nov 2016 17:16:58 +0000 Received: by mail-wm0-x22f.google.com with SMTP id g23so159288747wme.1 for ; Mon, 21 Nov 2016 09:16:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=BAjS8amTJemH4muRUa4UFh6r7Nqdx7hpxyrQ7j8pE2k=; b=T8XrKSR5dHo9dcBPJxNsWp6YaY/V0AmTs0HK1PY4InXDpxRH/GfqKNAOBFH+46Xm62 M204udLW7zGT7TpIjaq7ydJHDmFkjFRnHYW0Rk7gFzPAofnGF2WASCiL/UY2yAOS6Qa4 cR+HMOGa1/2WTecN+uA73ZnU6DzmGpvSwVb9AGRXar0ln5WvggRL7o4vqBvvE/WoRw+O F2ymhV3G44lXmpOdOpMT6+HThcMcRI7WOuaWG76lsoJYERbs718XDybyCGVaKHESJXse ol23QKNCB/QFq0qTlVc/3VRpZEWqo6KriDTnkbkCLG8pk1bgOsL7aq30N0RFYq5Dgugx h2hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=BAjS8amTJemH4muRUa4UFh6r7Nqdx7hpxyrQ7j8pE2k=; b=MraV+qjMLdI7XbOWL2bERqr5dyAKcYXvQXPuoAQBJMaEhmB5rJ3oL2Ek6N/u5Fkb81 B9GeMONaSsuBu/XOrP/A3dOB4Yboh0rdiOxssY65+anp4tjsVBg1o6UzEqnRHdFwi2T3 RJJ/mklCrYL9p/MQTdlxjHMvex8qjRxnk/VP2DQ1NPFzRlwj9Ss2SQJ6fMkRkwtx41/5 DeUtAezG4iIt0jv0HYAVTvjei3V2H1WReJsjXkVsG0G2KnyePqT5a90DSNCF1fiVM0aK 82ItoclSDmqw9ZwLRf2aUqjGmjbS+olUH6YUOUN2StBl2oBp578UVGLSQdUTNFc0I6km r1Jg== X-Gm-Message-State: AKaTC00CYEfK/j1lclTsSHbwOoYYN9AqE1cpqQVsmgr3DmDev69b/Mb9usMKV9G7PGuDCunp X-Received: by 10.28.19.67 with SMTP id 64mr15119177wmt.111.1479748595167; Mon, 21 Nov 2016 09:16:35 -0800 (PST) Received: from localhost.localdomain ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id ct7sm7839599wjc.2.2016.11.21.09.16.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 21 Nov 2016 09:16:34 -0800 (PST) From: Bartosz Golaszewski To: Jyri Sarha , Tomi Valkeinen , David Airlie , Kevin Hilman , Michael Turquette , Sekhar Nori Subject: [PATCH] drm: tilcdc: reduce max_width for revision 1 Date: Mon, 21 Nov 2016 18:16:30 +0100 Message-Id: <1479748590-3962-2-git-send-email-bgolaszewski@baylibre.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1479748590-3962-1-git-send-email-bgolaszewski@baylibre.com> References: <1479748590-3962-1-git-send-email-bgolaszewski@baylibre.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161121_091657_117277_A202595F X-CRM114-Status: GOOD ( 10.75 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Bartosz Golaszewski , LKML , linux-drm , arm-soc MIME-Version: 1.0 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 It has been determined that the highest resolution supported correctly by LCDC rev1 is 800x600. Reduce the max_width value for rev1 to 800 in crtc_max_width(). Signed-off-by: Bartosz Golaszewski --- drivers/gpu/drm/tilcdc/tilcdc_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c index dfe3dd0..9081de5 100644 --- a/drivers/gpu/drm/tilcdc/tilcdc_crtc.c +++ b/drivers/gpu/drm/tilcdc/tilcdc_crtc.c @@ -683,7 +683,7 @@ int tilcdc_crtc_max_width(struct drm_crtc *crtc) int max_width = 0; if (priv->rev == 1) - max_width = 1024; + max_width = 800; else if (priv->rev == 2) max_width = 2048;