From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 AD74A3D668A for ; Mon, 9 Mar 2026 17:55:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=185.246.85.4 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773078924; cv=none; b=A3X2CWM1NWc0ZERDWpVC3svH/3E+Rrvl8jlHTeegHEkZ4N0cRMVFt9f7kFHEeQgNSvfcvkKS0m/bI/BkbNvHjJ/bQtu9dio1TnYJ7XCEtRwdzOdDX8ZCNe/pt6yrqv76ZQMjFfLnYYR478TTVyZybB12EIqiGCovyOah9mAoDus= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773078924; c=relaxed/simple; bh=te+SGHhW7FfcN/VLbJW9eQzmX2RfcXlkplpOFN578Tg=; h=Mime-Version:Content-Type:Date:Message-Id:To:From:Subject: References:In-Reply-To; b=UpU2XTq2q51IY9ssb9NQungBouAv0zD8baTWDDcy2kyVVVtslntF38NQqyFK6qcVEUnKE8E7uR57IcmsOgm+EcqzPMayqomsZ9mRdoidmosTrc9VgUGgco/xy76nenfFWFguZjzvxE+YYVYAZGc/q1Ge2ZYbYJtqC8KLUPqH4b0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b=uyjmbF5r; arc=none smtp.client-ip=185.246.85.4 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.b="uyjmbF5r" Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id F12FE4E425DC; Mon, 9 Mar 2026 17:55:17 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C482E5FFB8; Mon, 9 Mar 2026 17:55:17 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 6A2E01036977E; Mon, 9 Mar 2026 18:55:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1773078916; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=KPBowFPBINqReMVBeqwOCMQZeqg7fF021TCg4ND7a3c=; b=uyjmbF5rb5lhVuiAB/gGqRJGe13cA+47IjJaxQAt2oMJrT81vlOfZ30o4JppNtRNYHJrj2 TyAatUamZH2kP9b+ORAtUEv6izwDZ6iuTcUyoNZjnFbmQklSumBugpXvb0QqRW82eko4Vo 7Oxq6AUJtOyq1GojflEEqaamMglSIRL8x7ahhlbjwqC4SNXGH0xzHHh1+RVKfoM/FUnY9o vLo2xwVY5Rrd96bI2TWiMtPQC2RAiFeDOq8M7DUNuMlZ/9AASngDMtz4PPcKQaYYiYxLDw E1hzKPiOcjSogykziIQEnfbA9NKWGK/oaBkqm+vej0WUAzp0IhBl0rhKxpv1EQ== Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=UTF-8 Date: Mon, 09 Mar 2026 18:55:10 +0100 Message-Id: To: "Harikrishna Shenoy" , , , , , , , , , , , , , , , , , , , , , , , , , From: "Luca Ceresoli" Subject: Re: [PATCH v10 2/6] drm/bridge: cadence: cdns-mhdp8546-core: Add mode_valid hook to drm_bridge_funcs X-Mailer: aerc 0.20.1 References: <20251209120332.3559893-1-h-shenoy@ti.com> <20251209120332.3559893-3-h-shenoy@ti.com> In-Reply-To: <20251209120332.3559893-3-h-shenoy@ti.com> X-Last-TLS-Session-Version: TLSv1.3 On Tue Dec 9, 2025 at 1:03 PM CET, Harikrishna Shenoy wrote: > From: Jayesh Choudhary > > Add cdns_mhdp_bridge_mode_valid() to check if specific mode is valid for > this bridge or not. In the legacy usecase with > !DRM_BRIDGE_ATTACH_NO_CONNECTOR we were using the hook from > drm_connector_helper_funcs but with DRM_BRIDGE_ATTACH_NO_CONNECTOR > we need to have mode_valid() in drm_bridge_funcs. > > Without this patch, when using DRM_BRIDGE_ATTACH_NO_CONNECTOR > flag, the cdns_mhdp_bandwidth_ok() function would not be called > during mode validation, potentially allowing modes that exceed > the bridge's bandwidth capabilities to be incorrectly marked as > valid. > > Fixes: c932ced6b585 ("drm/tidss: Update encoder/bridge chain connect mode= l") > Reviewed-by: Tomi Valkeinen > Signed-off-by: Jayesh Choudhary > Signed-off-by: Harikrishna Shenoy Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com