Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp5549547rdb; Wed, 13 Dec 2023 11:52:10 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwdYtTE1ogbuS5gUmtdHABLTpq41LN2Tr5Cd0M76kLx+1fJ/+6redjH3UMmEITKh7KLutq X-Received: by 2002:a17:902:cec4:b0:1d0:4cde:6e24 with SMTP id d4-20020a170902cec400b001d04cde6e24mr8920727plg.44.1702497130033; Wed, 13 Dec 2023 11:52:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702497130; cv=none; d=google.com; s=arc-20160816; b=cqn+TWic4r2nYmvrToEdAZ6AFnXmSn8tew+m2IVbJ6LbhTeWe4SuG/ckMMPwnK9ycJ OLicvMFr0bVvHiwE1sj3qnbx9bO8eR6OhqZGgrD6OimN4q8fBIxelj4zu9GIWfHp162c 3zL1lEi/4IE0tTMF6WHDNOe/CjjMWvRKgRpg3ChxUzmfy63VDnDFcr9fvY2yAq3VqkuB 3PoY/G275EktQL4uayxJu6/6vPYtiSR5NU9PxzLkA3wFWH3PFXE2kSU2/jUGTkFgMTbb hGCU65Z+V71uesrnVHnJHa7foU9SBYLEAnfVjcDheFBr/TnUiIPJRcr9pR2Xn9wspDhy T5BA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SDq2fLVuR6T1GPARTMOS6b3H20znzfoIBUzVKBtShU4=; fh=nzMX5Jolb3GculGR3f1Z1ReHOqdNjcdazDY5R3X+7M0=; b=LeDxmc0pJ94B2D2ghDArXxAvkl2fYgUQxvCVLFp9iU8HxmcKNJz0ptptEvm0qQG6JN OdYVD3ak1UvPS2/JQhEkIJmqD6N63zsN7/cpMQ+7CEj2HuzQ3UnMa8GjZLMRsseTjJtL xqKLLb3PHAS+jLJFuynAhgzbq6rTggHtffbW6i93wD/1UEgpCn50MEw4arLokFUkcU1k M+4z+70zouUmqq3jXkXHsy33LQGfU86Heb3CB0uwiMPrego9AdhVGVW1WD9MqCIhL1Ro gAt7xuk6TSIlya+7zfXabLNJnHhAUXSiUA8L4q/Eoehgwn+edcxWAloHucaAI5AUtZID aJfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cQcwtWuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id l8-20020a170902f68800b001d1e31980cesi10115638plg.306.2023.12.13.11.52.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:52:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=cQcwtWuJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id AFC07802FA24; Wed, 13 Dec 2023 11:52:06 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442273AbjLMTvs (ORCPT + 99 others); Wed, 13 Dec 2023 14:51:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379023AbjLMTv1 (ORCPT ); Wed, 13 Dec 2023 14:51:27 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D4098CF; Wed, 13 Dec 2023 11:51:33 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-40c48d7a7a7so32030335e9.3; Wed, 13 Dec 2023 11:51:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1702497092; x=1703101892; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=SDq2fLVuR6T1GPARTMOS6b3H20znzfoIBUzVKBtShU4=; b=cQcwtWuJFdo2AMU4ZfYJkUhL5dVKd0BHwpSqdbSMCcIObydfBqqMLJ73pTJaZ/7KKr W+hhEuVfwl/UO5jdNNaADlC4HiqOxUHErl9UuaQbZDr63sKlOtRv7RA2zcGbhpN+wyXJ TWUjGz5M+KdM5qY0p5kSbJZg/352o1q3BaB1vXItRXu3g6T9MWRiC8yJvqzgk1qVEnKy 0lbvQYFfRhrW77M6nB5um7zWK1lfzlKBGr7NZE/H5bpyVMsajXBGiXPiqVXFzd9yrApD 3NiqEogxBDpZBPo3KAlkgJJBRki5T0varE07TJlKJJkPFDX3UY8J33yFbnQ4N7g9DOKn 2tZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702497092; x=1703101892; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=SDq2fLVuR6T1GPARTMOS6b3H20znzfoIBUzVKBtShU4=; b=eB5HtKRYf/4D+lxujGESz7NlcqEcP1qInR8Jz4q9c7mYV/Uze1iSEmGo/bXs1H8xs+ B8+v0+pGiPea5TIA1dLBVYUbg66CMnq+VjzxdTMzcOo7gQ4Os5lhmHA0thoIXAW7nres wO6Z9fOYp59WVRmn+8Aw66qHyr00ZUvmp9+dX6n0jrtxSzYRxQz4P8p9cXhxysE+Q8/p JoGwqkipjNmuknIJlXYcCAZpOlSSJY8u5uapWVElFRgy8tPEJnhR0yrlz6ener7Mv9gJ 0Hn59lq8ew95drDii03SoLCFC0J7HU+DRqt5Luyz9wyKcsnfIaBzOwGHsnltEF0Zu92f qr5w== X-Gm-Message-State: AOJu0Ywm+g2B0bzQV1GwipnPejRy/m/qKDPnUYBEJzydZQKfoQCb+0HH GFixpKMtxAx4ukoL8AzrZA== X-Received: by 2002:a05:600c:4f48:b0:40c:426b:fd2d with SMTP id m8-20020a05600c4f4800b0040c426bfd2dmr3758370wmq.102.1702497092225; Wed, 13 Dec 2023 11:51:32 -0800 (PST) Received: from U4.lan ([2a02:810b:f40:4300:92dc:8b1c:e01c:b93c]) by smtp.gmail.com with ESMTPSA id fm14-20020a05600c0c0e00b00407b93d8085sm24050698wmb.27.2023.12.13.11.51.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Dec 2023 11:51:32 -0800 (PST) From: Alex Bee To: Sandy Huang , =?UTF-8?q?Heiko=20St=C3=BCbner?= , Andy Yan , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann Cc: David Airlie , Daniel Vetter , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 08/11] drm/rockchip: inno_hdmi: Drop custom fill_modes hook Date: Wed, 13 Dec 2023 20:51:22 +0100 Message-ID: <20231213195125.212923-9-knaerzche@gmail.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20231213195125.212923-1-knaerzche@gmail.com> References: <20231213195125.212923-1-knaerzche@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 13 Dec 2023 11:52:06 -0800 (PST) Now that we have proper pixelclock-based validation we can drop the custom fill_modes hook. CRTC size validation for the display controller has been added with Commit 8e140cb60270 ("drm/rockchip: vop: limit maximum resolution to hardware capabilities") Signed-off-by: Alex Bee --- drivers/gpu/drm/rockchip/inno_hdmi.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/drivers/gpu/drm/rockchip/inno_hdmi.c b/drivers/gpu/drm/rockchip/inno_hdmi.c index 2f839ff31c1c..84520da8c995 100644 --- a/drivers/gpu/drm/rockchip/inno_hdmi.c +++ b/drivers/gpu/drm/rockchip/inno_hdmi.c @@ -696,13 +696,6 @@ inno_hdmi_connector_mode_valid(struct drm_connector *connector, return inno_hdmi_mode_valid(hdmi, mode); } -static int -inno_hdmi_probe_single_connector_modes(struct drm_connector *connector, - uint32_t maxX, uint32_t maxY) -{ - return drm_helper_probe_single_connector_modes(connector, 1920, 1080); -} - static void inno_hdmi_connector_destroy(struct drm_connector *connector) { drm_connector_unregister(connector); @@ -710,7 +703,7 @@ static void inno_hdmi_connector_destroy(struct drm_connector *connector) } static const struct drm_connector_funcs inno_hdmi_connector_funcs = { - .fill_modes = inno_hdmi_probe_single_connector_modes, + .fill_modes = drm_helper_probe_single_connector_modes, .detect = inno_hdmi_connector_detect, .destroy = inno_hdmi_connector_destroy, .reset = drm_atomic_helper_connector_reset, -- 2.43.0