Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp570382yba; Sun, 31 Mar 2019 07:03:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwy4gRT9kznQsJov5YBRPI9v31egHAbhwC9uajLmS42ihdyfetU1Cor6wzuYCul/l9cJpoN X-Received: by 2002:a62:1c07:: with SMTP id c7mr19473772pfc.159.1554041014096; Sun, 31 Mar 2019 07:03:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554041014; cv=none; d=google.com; s=arc-20160816; b=sK2ipS+PiNh9W95yerLLeMlDDXuiOrBRAchN4Lv4cfuKgWgxxepEjD5I0MBMymjQlU 3RxdaJisiim+QNGiLTOheikBaJaSSrovOP7T1CjEnkX7wPTeyM7ImwO8g+WMF+dGY6t2 M7lWA/zf9aBiSLjso8k0jlld5WwFJuuUgq7NvIVQ4/FGp9JhvUFWlGGHTqJWv+4uqcl/ uqPBumcn9bmak1Orqhk3tUyRM/6M0p7TNv0lPnyaTlZxcAQoKyYYHW51SORFKuEqAt6w 2Ms6sQfmDZVtkUMSGdmSmDxopk0dq8KPTwFBtTMlOR0t/lUoT2nvfZJdCwUysk092b6E gQcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=VLerqbMhG92Et5MZc9x6n/jyo2w27inj8Xqywm7+JTA=; b=k9QmsghC6dhXAmW1IKl96CG2OxAmks8bNbcX7lmVSuy6IjZcxb+Lu9d67aaDVl7N4T jH29li7zZy6KtTjBxA/3fXbsu2YWyjS3waxK/oNi2LC/6oAzjgNLtvAFRfYl29rM129z rqP2k/s3QyhRgPpJ1MsMfl74gsk7XosC1ucVJP59YvnpEKo5D7uu/R5FApWwaZTvZrV0 bjkS9a9jzE3IVobVM9QqvwMoEorT0m8uKT+YH/pwqwkaG4D8lth5xaQ/tu9o7PDj2eeI uUy+em4OyR9VGYzWSCkzuy29I7fx8Le2mt3fnkCGWL3Pc8lV4OBlwteO8k3+zEDV9tWu 0j+Q== 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 a8si6433089pff.277.2019.03.31.07.03.16; Sun, 31 Mar 2019 07:03:34 -0700 (PDT) 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 S1731214AbfCaOBX convert rfc822-to-8bit (ORCPT + 99 others); Sun, 31 Mar 2019 10:01:23 -0400 Received: from gloria.sntech.de ([185.11.138.130]:51402 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727036AbfCaOBX (ORCPT ); Sun, 31 Mar 2019 10:01:23 -0400 Received: from p5b1271a2.dip0.t-ipconnect.de ([91.18.113.162] helo=phil.localnet) by gloria.sntech.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hAb1Q-0000NF-BB; Sun, 31 Mar 2019 16:01:16 +0200 From: Heiko Stuebner To: Johan Jonker Cc: hjc@rock-chips.com, airlied@linux.ie, daniel@ffwll.ch, robh+dt@kernel.org, mark.rutland@arm.com, dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v6 1/4] drm: rockchip: introduce rk3066 hdmi Date: Sun, 31 Mar 2019 16:01:15 +0200 Message-ID: <3503295.Ps5hWAbIar@phil> In-Reply-To: <20190330095639.14626-2-jbx6244@gmail.com> References: <20190330095639.14626-1-jbx6244@gmail.com> <20190330095639.14626-2-jbx6244@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8BIT Content-Type: text/plain; charset="iso-8859-1" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Johan, Am Samstag, 30. M?rz 2019, 10:56:36 CEST schrieb Johan Jonker: > From: Zheng Yang > > The RK3066 HDMI TX serves as interface between a LCD Controller and > a HDMI bus. A HDMI TX consists of one HDMI transmitter controller and > one HDMI transmitter PHY. The interface has three (3) 8-bit data channels > which can be configured for a number of bus widths (8/10/12/16/20/24-bit) > and different video formats (RGB, YCbCr). > > Features: > HDMI version 1.4a, HDCP revision 1.4 and > DVI version 1.0 compliant transmitter. > Supports DTV resolutions from 480i to 1080i/p HD. > Master I2C interface for a DDC connection. > HDMI TX supports multiple power save modes. > The HDMI TX input can switch between LCDC0 and LCDC1. > (Sound support is not included in this patch) > > Signed-off-by: Zheng Yang > Signed-off-by: Johan Jonker applied to drm-misc-next with a smallish change as described below, please double check. [0] > +static int > +rk3066_hdmi_probe_single_connector_modes(struct drm_connector *connector, > + uint32_t maxX, uint32_t maxY) > +{ instead of > + return drm_helper_probe_single_connector_modes(connector, 1920, 1080); it is now doing + if (maxX > 1920) + maxX = 1920; + if (maxY > 1080) + maxY = 1080; + + return drm_helper_probe_single_connector_modes(connector, maxX, maxY); to take into account maxX / maxY being already below 1920x1080 > +} Heiko [0] https://cgit.freedesktop.org/drm/drm-misc/commit/?id=f84d3d37b7fbb022e33b79d54374466f6fbc7186