Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5545701pxb; Wed, 26 Jan 2022 14:40:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiOpJw194QbdkDWO3WWi67kMTNvsVbuBhWQ/g1AfPcF7DXPRACorTjdAfgmv9tQhYKSYdI X-Received: by 2002:a17:907:8a0f:: with SMTP id sc15mr763778ejc.308.1643236809852; Wed, 26 Jan 2022 14:40:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643236809; cv=none; d=google.com; s=arc-20160816; b=OlQe7/636HlU+qPX/KOGiOYjc8QS7mgsgX21FIo0V590aLjycFlcomB06BfU86cecf EmyxSXD0zY1XZGPYUmCbeqFBPOe1VWYroVHUAXBMPgof76LQ82frlhDzDsVFAQ37C5AT MGoYMao1sZ7ugqzgkZkiARM6IN9jU8FYjZ7y65+ULSxkb/gu7Q6lOST5a4xLiNsC7mRt EtZkyHN7KWB6HbFxj+3u07ZuLAA8Pqc6TtuouqO99kkGDKvKU+ge0ubmbgdPjrHpAdcQ sVDZ3PF4HyegSA+IJxP1m9s83vghsDX5/2weZqUcWkUhRjvwMaewk9nA5hbJrVX4KTNJ 7eEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ukliw9sukrQW6ow50YsY/2wbM/35BtcU0cL0HgzMnLM=; b=h05X0anKgRablkEhl12g5iky1bYlkpGOhGJYhSVEJR3Y5sabcnKBN+nUItEqbDFwj7 +I1rl1iIxrR5IxXgz+l/5dIz1lHQZDIJVl3DwvVf5lY38hplpSjsEAWnr+aQpa1s5jD5 rg0sjuHt5CwbWcErBTv3iTXQlk4kC32999yjVdi7tgx+tg+pnmHRiMHqq8ifTbIXg6MZ HYIbk6y44mgdKMej9IbQ0ZXGM5VrDo1fmjDM5bOpl1PvJ429v5jeqCJe9uY+Eu+Biyb1 B7/gnsr10B6BfKtNSuix6pjmgv6m0Wb2cgr4ZCK5/5oRyv6Mv69rN5JpjbQgLa4jQOsW pJ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dw3QQ8Vj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id sh10si298766ejc.87.2022.01.26.14.39.44; Wed, 26 Jan 2022 14:40:09 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dw3QQ8Vj; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230511AbiAZUdL (ORCPT + 99 others); Wed, 26 Jan 2022 15:33:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230493AbiAZUdJ (ORCPT ); Wed, 26 Jan 2022 15:33:09 -0500 Received: from mail-ej1-x62a.google.com (mail-ej1-x62a.google.com [IPv6:2a00:1450:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BC690C06173B for ; Wed, 26 Jan 2022 12:33:08 -0800 (PST) Received: by mail-ej1-x62a.google.com with SMTP id h7so1174919ejf.1 for ; Wed, 26 Jan 2022 12:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ukliw9sukrQW6ow50YsY/2wbM/35BtcU0cL0HgzMnLM=; b=dw3QQ8Vjz4RduwkU+DfXuqaAy+1poDrHZmp7JJYsjaLqADGSWcua23elXiKOBrIfvN 7CO/frPtzzCycKqxFaHsQjgqaBwhlBkfaPAiAt12zt7dDGhFRZ5HSbU8Tc3NkGYqK2HZ tJP3A1aldRNXuDeTtmADqnlbwfkrUlb4gBabTRzK6sM+zretwoncESlZN2lO8P9oGNN9 bWlOLWD9XRdqWJSO2ppjA+34On1U64ijwC2ttfBT4VlMrCx0fZArv7BU10l7JL5KmR9d b+41zKo6P3DKTs3CiIBfV2ivx6KvXZ+lrQoJA/LTagjK6/Ww+5IGQ3IjvDlOnoLjnTmW Yw1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ukliw9sukrQW6ow50YsY/2wbM/35BtcU0cL0HgzMnLM=; b=cNEZZJVCcK0fdiA37UGBa9fFsiyslhdlImLvs80fTuMyb24ZpT4ju0AVmVfw+PRDLE AhUzB5uicHZgC8FxAzcctTRPgP8j/QGRRdxOjrGJXMg1J5m4OMWn+NSXMsMb1QTjTEJY 6ZejAoRcE6znqoiO2w7CtPMoie3IaIuvYeCzU/ZK9n0IZSJElpVY0uovl0lk2bJA1+fb o1ni2vMbaUD9v20k4H6OPs2MAklQCJ7pBCE6JyBzi1/GfgYyegnKTTSxXIFDkyh7Jn6y HT6B/xZDReq+z1wFESgWBR2TzO+irb7KY0Tu2q5EQg4/Aalo5FCqYspj34jqGQf2CEPN pzrQ== X-Gm-Message-State: AOAM532Yu5NUzNkfYobf37fw5BFOALsZBZHeZvoHxNLjyGif2jwbe4qo 3Va2Ek0RI6LZJIvaoPAYOW0N2b7xqb5Nv6bQGhw= X-Received: by 2002:a17:906:478c:: with SMTP id cw12mr414096ejc.214.1643229187072; Wed, 26 Jan 2022 12:33:07 -0800 (PST) MIME-Version: 1.0 References: <20220126202427.3047814-1-pgwipeout@gmail.com> In-Reply-To: <20220126202427.3047814-1-pgwipeout@gmail.com> From: Fabio Estevam Date: Wed, 26 Jan 2022 17:32:55 -0300 Message-ID: Subject: Re: [PATCH] drm/bridge: synopsys/dw-hdmi: set cec clock rate 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 , Sascha Hauer , linux-kernel , DRI mailing list , linux-rockchip@lists.infradead.org, Robin Murphy Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 26, 2022 at 5:25 PM Peter Geis wrote: > + > + ret = clk_set_rate(hdmi->cec_clk, HDMI_CEC_CLK_RATE); > + if (ret) > + dev_warn(hdmi->dev, "Cannot set HDMI cec clock rate: %d\n", ret); You are setting the cec clock rate after it has been enabled, which can be glitchy. Better to set the rate prior to enabling the clock.