From patchwork Wed Oct 26 15:35:57 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 13020816 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5F0CDFA373E for ; Wed, 26 Oct 2022 15:36:54 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 0CA3510E573; Wed, 26 Oct 2022 15:36:51 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) by gabe.freedesktop.org (Postfix) with ESMTPS id 52CEA10E576 for ; Wed, 26 Oct 2022 15:36:18 +0000 (UTC) Received: from tr.lan (ip-86-49-120-218.bb.vodafone.cz [86.49.120.218]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: marex@denx.de) by phobos.denx.de (Postfix) with ESMTPSA id 3656585065; Wed, 26 Oct 2022 17:36:16 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=denx.de; s=phobos-20191101; t=1666798576; bh=GnMxCkL6ZT14et//qNqhta1Q3JUIlhoXBTn8qTA4JAU=; h=From:To:Cc:Subject:Date:From; b=AXhlqYTVhcju7grNmLgD1EX19Y8YLJH5+WlGWv++i73tHkxsfyM3vjr9OhmxPaMwI W5QjDy/g12mZxPAJLFYMMOb0RGfWqvpUOPbARQcAG2kEyHvob7LXb8sDDQaltOv686 1jWUCBcmhSmWJLYYfQQDi79MKyKDsEkf3KOXUPVNwJhOSEmJUExbs8YLH1TGFysuCF TL4wJEaYEo05UiXfV5uipa1fdiY0f3ucLsZtMp3XXAM46j8WGr8n8R/C+K75Ek4PnU /VxtDcqQIKKuQI7WP4b399U7bIeBpZwgIyTImEbl0NInKWikEV6IxxNUPzRcddU4gZ W3YnmImJvq5ew== From: Marek Vasut To: dri-devel@lists.freedesktop.org Subject: [PATCH 1/3] drm: bridge: Add DSI HS clock frequency limits to bridge state Date: Wed, 26 Oct 2022 17:35:57 +0200 Message-Id: <20221026153559.387041-1-marex@denx.de> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.103.6 at phobos.denx.de X-Virus-Status: Clean X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Marek Vasut , Robert Foss , Laurent Pinchart , Sam Ravnborg , Maxime Ripard Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Add the ability to pass DSI HS clock frequency constraints between neighboring DSI bridges via struct drm_bridge_state . This way the DSI HS clock frequency negotiation can be implemented instead of the current ad-hoc method where each bridge attempts to guess the neighbor HS clock frequency setting or expectation. Signed-off-by: Marek Vasut --- Cc: Laurent Pinchart Cc: Lucas Stach Cc: Maxime Ripard Cc: Robert Foss Cc: Sam Ravnborg --- include/drm/drm_atomic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 10b1990bc1f68..eece7557933d2 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -1117,6 +1117,8 @@ struct drm_bridge_state { * @input_bus_cfg: input bus configuration */ struct drm_bus_cfg input_bus_cfg; + unsigned long hs_rate_min; + unsigned long hs_rate_max; /** * @output_bus_cfg: input bus configuration