Received: by 2002:a05:7208:c250:b0:86:f851:443 with SMTP id w16csp936311rbd; Thu, 13 Jun 2024 01:40:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV3vUYKKGZ+WJMcE34qjb/GgbhLq7ppxB4A8Yfg5k9w1/jor1K+WFp9xMNYFomlgd2WklNGLRXqu/uaXc62LK3BOUhwMb9bYjw5aRLN/Q== X-Google-Smtp-Source: AGHT+IGGtKdGuxZ7t6oNVU+x6N0uwM4RCRuZNzeXOVubOlf23WVbbK7UyWAHU4PtdL+lD3F2oT6i X-Received: by 2002:a25:1c4:0:b0:dfb:f4d:2e8d with SMTP id 3f1490d57ef6-dfe68437542mr4039342276.46.1718268037486; Thu, 13 Jun 2024 01:40:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718268037; cv=pass; d=google.com; s=arc-20160816; b=zwieBAgsurkG1hLS3HjwUNuFERK/5xn/RhWKY8BM9Ku82UfHohv3GIlUoVa6/Ik7gB jQk5Pciw9gTNZwCzaoYo4CyyaAw6Du7pEm9BdzIX9n9Rgd2v8A6xeN2LtTBW/LPat2k6 hO/IIOIpNZDX0WpCFEvI2lyGhDpFP+v4DIR+HE3l5wqh9IeCKwFSgSv1bOlOT+BhH0G+ hC2N249WzBzGz/HNLKRihlcCKwGlTa0tciPDWRDtsvjYE2+wyyIq2vNYHurao8p5m/D9 +05L8cGWu6tmBdlShvxfxxAFJHJNOd9gSfbvRyoAWD6KRqfr8KLbt2M+zugkqSuAEoe0 319g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=TjyMmrW2J2r+RcKqfozTMKJxd3RBvb0XNqHfQ8z62jg=; fh=t0QNipbJl+LjstaJYccTR8asN890wrUDDAYih3UUEBQ=; b=nd4KRheuH7lF0dJqdC8igi7yb4/CO473Ulp9IngHOtNCfTQkLYOgNSurjFtGS4ASSk 7538ylf5v2C6GRdleEoYKBINseoSVD1nKs2GMtmr+BC5N4WP/p2CBpshWSWZdZiI8d+3 xv5G9BqBUbJbY/81n/XAYUjUS6/66e6Vji0upGP2mipMhKrK8urnX0vyQUoqDwMPeNuR 2KwRi2JvtWiDyfyTTalWpl6akHDWdryGOF/YkLevNHdd9cMKm8cFjRq8I2BE3oLoWjbV dHDxbqco4waOeCGm4XkVMIYI6SY8ySM7+JcDINoZAqg/SDubbgrE92sW1IcUL23Ac3rw Zd2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XPEd3qwS; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-212841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2ea8c63si9411451cf.328.2024.06.13.01.40.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 01:40:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=XPEd3qwS; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-212841-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212841-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 3E3901C20F8F for ; Thu, 13 Jun 2024 08:40:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9CD4140E3D; Thu, 13 Jun 2024 08:38:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="XPEd3qwS" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 125EA140388 for ; Thu, 13 Jun 2024 08:38:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718267931; cv=none; b=UsE66ktEECPLOS2RVzCP2ONRxalLbGjwyd9yxNuKfGyLS7paXUt7NvMsUdaMuAKU4CsQj8N9a0dfxU9OiZcs+ZwyKWzuXXN8H2ijRO+/Q7fYbe7XH7vznBiEJW5uF3XdBO/OaTz7fKVep49IPyUv3OCiqIMkM/TRCsqfbRYK3Vw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718267931; c=relaxed/simple; bh=2lBCoyVSwCfn0+jjzoILCmsqHh6FBjPGpDkiN1EcNSQ=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=L8eCf9RBkCBOnQMzI0lDrHPLWKxScYca3fkqOl+TuqXXBKKDCIHssZy4mL0bO/kG7DxZbDH+ohYPQENCGo8GFiIksSdY0F3hzv6O3iGw8pR8NblaNzZSWW+rAlGZHo9VjHNI+4O2ei1OlE8QGnwvWS41DlVQqMAvQl5Xs+EYIDc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=XPEd3qwS; arc=none smtp.client-ip=198.47.23.248 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45D8c6pA100718; Thu, 13 Jun 2024 03:38:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718267886; bh=TjyMmrW2J2r+RcKqfozTMKJxd3RBvb0XNqHfQ8z62jg=; h=From:To:CC:Subject:Date; b=XPEd3qwSH1MVbmbuJI6Y+54FQjNdEelkS9Bac9iU3apsnY/6VdSnkgeATU4kl4fkb c17jjv1oGnRnFroFTD5G/EL/sBNUFKSIaIgl6pxD1dE40jBD20bXfS8p2K2Jw9Gsp8 b+w7Dvb8sKw7pHF8pUGVo6YfJxyTCyvIwR387qd8= Received: from DLEE112.ent.ti.com (dlee112.ent.ti.com [157.170.170.23]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45D8c6La021739 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 13 Jun 2024 03:38:06 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) by DLEE112.ent.ti.com (157.170.170.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 13 Jun 2024 03:38:06 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 13 Jun 2024 03:38:06 -0500 Received: from localhost (jayesh-hp-probook-440-g8-notebook-pc.dhcp.ti.com [172.24.227.55]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45D8c5nn070145; Thu, 13 Jun 2024 03:38:06 -0500 From: Jayesh Choudhary To: , , , , , , , , , CC: , , , , , , , Subject: [PATCH v5 0/3] SII902X HDMI Bridge fixups Date: Thu, 13 Jun 2024 14:08:02 +0530 Message-ID: <20240613083805.439337-1-j-choudhary@ti.com> X-Mailer: git-send-email 2.25.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 - Move the mode_valid hook to drm_bridge_funcs structure to take care of the case when the encoder attaches the bridge chain with the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag in which case, the connector is not initialized in the bridge's attach call and mode_valid is not called. - Also add this check to the atomic_check call as suggested by Maxime in v1 patch. - Move from deprecated enable()/disable() hooks to atomic hooks as suggested in v4 by Sam Testing has been done on AM62X platform which have SII902X HDMI bridge. From the logs we can see the propagated modes and flip test for 1080p resolution. Testlog: Changelog v4->v5: - Add followup patch to replace deprecated bridge hooks - Fix atomic check to return negative value - Made commit message for [1/2] in v4 more clear while keeping the R-by and Acked-by tags. - Fix commit header for [2/2] in v4 v4 patch: Changelog v3->v4: - Remove mode_valid hook from connector_helper_funcs as it is not needed. v3 patch: Changelog v2->v3: - Remove newline that was introduced in [1/2] and later deleted in [2/2] in v2 v2 patch: Changelog v1->v2: - Add KHZ suffix in the macros to be more clear - Add the hook for drm_bridge_funcs as well - Add check in atomic_check dunction call (in a separate patch) v1 patch: Jayesh Choudhary (3): drm/bridge: sii902x: Fix mode_valid hook drm/bridge: sii902x: Support atomic bridge APIs drm/bridge: sii902x: Add pixel clock check in atomic_check drivers/gpu/drm/bridge/sii902x.c | 46 +++++++++++++++++++++++--------- 1 file changed, 33 insertions(+), 13 deletions(-) -- 2.25.1