From patchwork Mon Sep 21 18:18:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vicente Bergas X-Patchwork-Id: 11790673 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 9FC25112E for ; Mon, 21 Sep 2020 18:18:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6C17A20888 for ; Mon, 21 Sep 2020 18:18:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="1Ob6C1z1"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ERLVZJ3E" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6C17A20888 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.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: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:List-Owner; bh=nW+lZmLIWRUz1OH1K3PBzPu/GbDXecePDaDqukhiluk=; b=1Ob6C1z1hGW0bzswVzcu+W/hi Z+XwH/lvP9svR70x2VGwEbqOi2xk2Rwtcmkx2GYfz9T/4RRLWZs6glCeK0+jCm0S5KdrPXqFJyQR4 p1OiY4y80QmT7uSifbWPJ4JS4ZE9ld66cg+1WGTdKLWR7ROgwt/08zhZI8COVjorNPyqZZAJC9Eh5 ZlbndGI6J7cxDi+qH4H3uiVs8sTWp9fFiMu6TDAM+R5REF45JBVMiLiEWwznbEyTfmukHMVTJ5Edt fXazG2k5ebrFKIdh4ZPk9eLGLi5p9vSsAi11JyMAgv9L2DeolQICMzt6uRV/b/W0h3nkcyNNnXCMc eKTDpLCJA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKQOY-000053-E1; Mon, 21 Sep 2020 18:18:34 +0000 Received: from mail-wr1-x442.google.com ([2a00:1450:4864:20::442]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKQOV-0008V0-4r for linux-rockchip@lists.infradead.org; Mon, 21 Sep 2020 18:18:31 +0000 Received: by mail-wr1-x442.google.com with SMTP id z1so13825815wrt.3 for ; Mon, 21 Sep 2020 11:18:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=K7apNRD9MQ+dEbnQVbfSw0In2eqPMXGuCV372ylb3ZQ=; b=ERLVZJ3EXcEKmJVu0ezDXvmSIS0V/PJ7ZnNVSQU0bJzm3mg78YqOJG4OiMDYfgJSwn y47D67v7BnubGcSiUowbyAbNcgxuWhfWYvTewcbRZ+qYql4qKjcnB2kVzfIuh0vVW7nK qwy3st9zBZ8CKdqilTBd59a4KeX6l9H6Jw0NafiE1KJBXeBCYAApYcO057b3aKjSYQiP cHgbrOPRX7zdCJZTLInB1ULvxBlQoCSfWmWV6+AMSYLVt2o4QkhHgLY3Bh9gwkxkh01o 2LXJ08//lk7qjbTrxgJzeOevrGAZL5AvSoXmBzKlrtCoj90pqwhbjZddLRiD6bNnSzbN PLEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=K7apNRD9MQ+dEbnQVbfSw0In2eqPMXGuCV372ylb3ZQ=; b=A3HsvId75F3T3bicUpIb5CeX4bf+xJcCGhX3T/t3uTxCb1F1+p/sb8h+R6yZTg/3VO GWl1VpXlP3D6SHlz7t0DY6j/ewbNZx/uVokv73rK/JCYExGdWviM5KWHGCoilU/neqVK 006ckYeuOAQRubm4Jg46TlJZDnW7+BJWSE2Mn9oxvWfsvgjWt/Xop+hXBSol21jCZQo0 G24pL+kNRxNgISuFwwN6/fbLDlOgHkNZz/9sySARrE+xzWQ7N2ZrUEitc19bolLW6O05 xeWLkQ9ixacSW6oOkIQVhYgSJuUfky+lO5AC8LMuhp1MvOXXJlkNQWXrKql5qWhbzc3N vSdg== X-Gm-Message-State: AOAM530QgIGaIdZe/xsoLGke00hxzlu2s9xbN4lx4L5uNkTK34C76J9L 3dTsu77tPcxaLvbXT+X/dG0= X-Google-Smtp-Source: ABdhPJzeDbyqxIujUGLCtG0+lY+QlhF6phMdhTwizmUx643F/K9o2bqH6xuMl9rJ4hLXgbgbNdH9sA== X-Received: by 2002:a5d:43cf:: with SMTP id v15mr1130170wrr.149.1600712310132; Mon, 21 Sep 2020 11:18:30 -0700 (PDT) Received: from localhost.localdomain ([170.253.46.69]) by smtp.gmail.com with ESMTPSA id h16sm23523249wre.87.2020.09.21.11.18.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Sep 2020 11:18:29 -0700 (PDT) From: Vicente Bergas To: Sandy Huang , =?utf-8?q?Heiko_St=C3=BCbner?= , David Airlie , Daniel Vetter , dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org Subject: [PATCH 2/3] drm: rockchip: hdmi: allow any clock that is within the range Date: Mon, 21 Sep 2020 20:18:02 +0200 Message-Id: <20200921181803.1160-3-vicencb@gmail.com> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921181803.1160-1-vicencb@gmail.com> References: <20200921181803.1160-1-vicencb@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200921_141831_203118_B9A4136B X-CRM114-Status: GOOD ( 14.46 ) X-Spam-Score: -0.2 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2a00:1450:4864:20:0:0:0:442 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider [vicencb[at]gmail.com] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Vicente Bergas Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org For a video mode to work it suffices that the available bandwidth is large enough. There is no need to have an exact match. This greatly expands the list of supported monitors. Signed-off-by: Vicente Bergas Tested-by: Vicente Bergas --- drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c index 23de359a1dec..87a9198f7494 100644 --- a/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw_hdmi-rockchip.c @@ -230,7 +230,7 @@ dw_hdmi_rockchip_mode_valid(struct dw_hdmi *hdmi, void *data, int i; for (i = 0; mpll_cfg[i].mpixelclock != (~0UL); i++) { - if (pclk == mpll_cfg[i].mpixelclock) { + if (pclk <= mpll_cfg[i].mpixelclock) { valid = true; break; }