Received: by 10.223.176.5 with SMTP id f5csp994486wra; Fri, 2 Feb 2018 09:24:13 -0800 (PST) X-Google-Smtp-Source: AH8x226DMw3SkO1UaVXhou3arZi/kyagLqB1ZI3YJeD3Wk6vuXUo67VOYtf5e2w5VRGJUbkWwSa2 X-Received: by 10.99.95.20 with SMTP id t20mr21501297pgb.79.1517592253622; Fri, 02 Feb 2018 09:24:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517592253; cv=none; d=google.com; s=arc-20160816; b=HFwNLrYRkKnCG86AfdWSdoYJK1dqZK+gEMNNChjUJDxm1RvG5GTnePF9ily4Ovdme3 XR64kCNom4nzzzaoI3vukmSErkl1lVrv1MjeH96LNiB6uRDwiGnZbkjXF9JFNnJ7TuXA 2H9aiIafLQkci/c2WFZYnrPc1/UJ3/LSLlyS33vvgBZtj0Opz+reHXEpmzwjhI9s62dO at5kilP3WL2NZk0aT9L4rMMqk3cnzf25GUeUaeIHVNjZLo+RZ1taZaAdpLIxqy+z7l8y tI7xd+TjRmZQGCGuFejUxXgAIp7NiNCz3vpXacNpbMtTsQqa1sNPHWq6D0Eta7+L/+vX EVCg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=Odkk6+T04KCeu4laKjQZ/ndqXRHPUQW/iWAq6DAmXWU=; b=U413vS09vzTn9lUPB/uj71qdkPDboTy4MVId+JGvMokmdWwHVvqv95S8R5kN348GvH hiZSox98vitq0LIJbnpVUe7lDvdgm68ch/ekudYdjmkS/ZKRuUEucsXVOyxALg44bWnC +tJEXuFMTh1yiojGTNwUnc5ny5i2qlXVOzUhfWg8cb/lf05AUooLFQZajEl4zlut/2nU 2ElPkySgM2GXDztzIBMNHGCHJdvZQaw3ZAESJ7hoV18zklHkBoiSv4UZQUVYQoeJp13P 7U6wdZHRgAr2fe8Tgk5FI1HT+FeAk8aC/XkUyqJitNXIf7tEbfv/LUp8NvXrKb3KRWY6 UUeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y11si1702792pgv.424.2018.02.02.09.23.58; Fri, 02 Feb 2018 09:24:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753826AbeBBRWM (ORCPT + 99 others); Fri, 2 Feb 2018 12:22:12 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:39306 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753196AbeBBRNX (ORCPT ); Fri, 2 Feb 2018 12:13:23 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 01066E27; Fri, 2 Feb 2018 17:13:21 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andrzej Hajda , Andrey Gusakov , Sasha Levin Subject: [PATCH 4.14 107/156] drm/bridge: tc358767: filter out too high modes Date: Fri, 2 Feb 2018 17:58:08 +0100 Message-Id: <20180202140845.029544497@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180202140840.242829545@linuxfoundation.org> References: <20180202140840.242829545@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Andrey Gusakov [ Upstream commit 99fc8e963a4c0203dba26a77cf737db6081bca14 ] Pixel clock limitation for DPI is 154 MHz. Do not accept modes with higher pixel clock rate. Reviewed-by: Andrzej Hajda Signed-off-by: Andrey Gusakov Signed-off-by: Andrzej Hajda Link: https://patchwork.freedesktop.org/patch/msgid/1510073785-16108-3-git-send-email-andrey.gusakov@cogentembedded.com Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/bridge/tc358767.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/drivers/gpu/drm/bridge/tc358767.c +++ b/drivers/gpu/drm/bridge/tc358767.c @@ -1103,7 +1103,10 @@ static bool tc_bridge_mode_fixup(struct static int tc_connector_mode_valid(struct drm_connector *connector, struct drm_display_mode *mode) { - /* Accept any mode */ + /* DPI interface clock limitation: upto 154 MHz */ + if (mode->clock > 154000) + return MODE_CLOCK_HIGH; + return MODE_OK; }