Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp6209256pxb; Thu, 27 Jan 2022 08:42:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJxH/E2lqLIHKwlkflc2Y2VWlZ/SjoGX7b1fdbzVFL0gRz0EjODn/XgSSEXY4pdWjut6YqnM X-Received: by 2002:a17:902:b595:: with SMTP id a21mr3809466pls.83.1643301757271; Thu, 27 Jan 2022 08:42:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643301757; cv=none; d=google.com; s=arc-20160816; b=qwCPDe1cfjnoms62BSX3J3Z8/Tq1OMLTgtDCTf+yzdQtHLJfuG+LhCAH3HPC0J6Rh/ WbR1eTds2BPWpkB47Xqf0llsh2AxtjIXDRsKIlu7yS8Y5jVPmiXf2b2osuhQwxFnKPS0 /4sYf8PoxbYOEZZ4T2j93lCZ2OUEZNlIdz/saRdJAR7RE0fGdjSWuPPMbtBmdgZqyltZ VFZGFvjrBpDe+o8pa0Rqv4/bcebxpxaq0+SFlqntRA3x5fdhN5StR+3avH8HCP/D4fKx mMFRcFSwng0RFhS7MZZu5NrPnL6TdxPXaDTC73/UCml9zNHcvBBByG0MTj0MWnodiX/L 2Daw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Pq9W6JfbmSSOkWpLFFMI+IEyj0xgfr17Bv+Z9Za9frA=; b=JEloOSeuZ5bN+MFXmXasXDyU05vKNUkb81BgPoi+xUQ+vj+YDazEzw4YRZKNPIYgB2 0+GSHNich2ewtFV0MepWBrepVGM4kobQP49TLCa+dJ0pphnSI2sev3HiGEo+6NuDUrFF Drz6ZyOeQeopQ1S3RcphMjTF8tmd39iC2k5iePZYjTJFODVuLeXGmUJkW/ikd8e3VpAE CTfctl6UbKQhDLb1Kr6X1aZYDlEYViVulJ68J4/uFCk4mEQh1u6vEuPMZ6I1uchZIRGC vhPajnNKTfaEoogMyRV1OtP7pA3goCxbIOuC0UvCu8leqrDAotOazBwKKRMp2S5/iOwf 2C8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si2696819plf.203.2022.01.27.08.42.09; Thu, 27 Jan 2022 08:42:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234339AbiA0Jdb (ORCPT + 99 others); Thu, 27 Jan 2022 04:33:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35516 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238644AbiA0JdZ (ORCPT ); Thu, 27 Jan 2022 04:33:25 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DC594C061714 for ; Thu, 27 Jan 2022 01:33:24 -0800 (PST) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nD19U-0006rQ-9d; Thu, 27 Jan 2022 10:33:12 +0100 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1nD19P-0007xU-Bi; Thu, 27 Jan 2022 10:33:07 +0100 Date: Thu, 27 Jan 2022 10:33:07 +0100 From: Sascha Hauer To: Peter Geis Cc: Andrzej Hajda , Neil Armstrong , Robert Foss , Laurent Pinchart , Jonas Karlman , Jernej Skrabec , David Airlie , Daniel Vetter , Pierre-Hugues Husson , Archit Taneja , Robin Murphy , linux-rockchip@lists.infradead.org, Heiko =?iso-8859-15?Q?St=FCbner?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/bridge: synopsys/dw-hdmi: set cec clock rate Message-ID: <20220127093307.GJ23490@pengutronix.de> References: <20220126202427.3047814-1-pgwipeout@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220126202427.3047814-1-pgwipeout@gmail.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 10:29:35 up 47 days, 18:15, 84 users, load average: 0.21, 0.33, 0.29 User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Peter, On Wed, Jan 26, 2022 at 03:24:26PM -0500, Peter Geis wrote: > The hdmi-cec clock must be 32khz in order for cec to work correctly. > Ensure after enabling the clock we set it in order for the hardware to > work as expected. > Warn on failure, in case this is a static clock that is slighty off. > Fixes hdmi-cec support on Rockchip devices. You removed this sentence in v2, but I just wanted to mention that clk_set_rate() won't fail when the desired clock rate can't be archieved. Instead, you will get the best rate that actually can be reached. If you want to check that you are happy with the rate you'll have to do a clk_round_rate() before setting the rate or a clk_get_rate() afterwards. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |