From patchwork Wed Nov 3 12:39:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Stein X-Patchwork-Id: 12600759 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 83D5BC433F5 for ; Wed, 3 Nov 2021 12:41:42 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 489E761151 for ; Wed, 3 Nov 2021 12:41:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 489E761151 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=ew.tq-group.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=P2QZERHexDWpwLNWnmA3ue+Lo4g2xKNnzpcCthbSTy8=; b=39T+bhs/lf2hgG aND55Ug8MPMHEDbPZUg8O06YMXfY7od5jATyRWvoTNN++9Dj0cl5v4O9arcsmfLdlzs70aUM++8go yztCTsk5iBttEYXYBGMiDKRnh8KstFWLMx33QrosrBPWqEnSUZeM6WW64q6pzAL7LonQPPX59VbzV 0DUMXro0Ke2/nQxuj2GLs5h60k67kN8Bg+OO4Y+63N6AItabY33JUYD78LVXEOPoZNqfyVcSd1z9Q BMYZ6ORiUABPW+lgVQ1VDYpTmXqR7it9nTmlTVpexRhCXcnPwhnYrQYxVZLzBf1ynI5/pQbudHbBa Z0LNtbAbDgPMv6ty1pVQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1miFYk-005Cxl-Sr; Wed, 03 Nov 2021 12:40:07 +0000 Received: from mx1.tq-group.com ([93.104.207.81]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1miFYe-005CtB-1K for linux-arm-kernel@lists.infradead.org; Wed, 03 Nov 2021 12:40:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1635943200; x=1667479200; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=frB6WasuaNmxKic3MwCdWdYJsEoS4X1xN1rRTbJN3fs=; b=ib6Za3v4IzvjjjjdRfxa4CMFaQaTd6W2B5aXwILuvDGKz6d7fB9SwmTX OKJQG0DMI/qOa+rytMP2AhD4u191cHOp46/Ovwsxto+NyoHfgYMtSh0Ug UgBIb23EuUfMtX+mPGw1stQO5nmUUmgY9wy17kHKoSheWAoYYTHS7wBsh zCQw/FBh4QDuw0lij/IYjyGsdlSC77P3I2QXc5/O2Fm8xyWZWtzlOVYfL 6Nl044zoi6vGgA3Hv/sYNXhv9STzcXzK/DfZ/4Ne2VpDTXN3lEa4vzlyz JUf0GBJXOouL0nLJ+IHbArTs7jQ7p0V4b08Ew0cQrEF4h5JcjLffr/kwX A==; X-IronPort-AV: E=Sophos;i="5.87,205,1631570400"; d="scan'208";a="20324534" Received: from unknown (HELO tq-pgp-pr1.tq-net.de) ([192.168.6.15]) by mx1-pgp.tq-group.com with ESMTP; 03 Nov 2021 13:39:55 +0100 Received: from mx1.tq-group.com ([192.168.6.7]) by tq-pgp-pr1.tq-net.de (PGP Universal service); Wed, 03 Nov 2021 13:39:55 +0100 X-PGP-Universal: processed; by tq-pgp-pr1.tq-net.de on Wed, 03 Nov 2021 13:39:55 +0100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tq-group.com; i=@tq-group.com; q=dns/txt; s=key1; t=1635943195; x=1667479195; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=frB6WasuaNmxKic3MwCdWdYJsEoS4X1xN1rRTbJN3fs=; b=K6j5LM/ztRAzszKxQGJgTXf/WrqfRk+iRYC6Xs/mKyh4A8+5If4VopxU EGVko7zo+RMDaH7lSSkXLMRudnuT271W9iblDwc9Qx3cSQnM7qH7sNYqx TT3fYMf5OYi33j+TIf8AHSHl43JNmYSWiEPI6RVn7Z15E+vtFCf4p2ubX 7PalD/nMCSnbvJi9tvBRgldRX2gHWewoHJ5BOve8905KVX5hrH7R9oqvK ntnpI2mziT8DuF+VgRpYgvnEuiRfEc0obtz97Dm19WkwbYTaFLeBvNkyt 2uxdSg5XyoSlkys3NUlHuaT0eKk5e7oMn+yapvt8uvXMuvT+vDmiYPsDX A==; X-IronPort-AV: E=Sophos;i="5.87,205,1631570400"; d="scan'208";a="20324533" Received: from vtuxmail01.tq-net.de ([10.115.0.20]) by mx1.tq-group.com with ESMTP; 03 Nov 2021 13:39:55 +0100 Received: from steina-w.tq-net.de (unknown [10.123.49.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by vtuxmail01.tq-net.de (Postfix) with ESMTPSA id A2818280065; Wed, 3 Nov 2021 13:39:55 +0100 (CET) From: Alexander Stein To: Abel Vesa , Michael Turquette , Stephen Boyd , Shawn Guo , Sascha Hauer Cc: Alexander Stein , Pengutronix Kernel Team , NXP Linux Team , linux-clk@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Fabio Estevam Subject: [PATCH 1/1] clk: imx8m: Do not set IMX_COMPOSITE_CORE for non-regular composites Date: Wed, 3 Nov 2021 13:39:47 +0100 Message-Id: <20211103123947.3222443-1-alexander.stein@ew.tq-group.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211103_054000_477627_65426A32 X-CRM114-Status: GOOD ( 13.33 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Only imx8m_clk_hw_composite_core needs to set this flag. Fixes: a60fe746df94 ("clk: imx: Rework all imx_clk_hw_composite wrappers") Signed-off-by: Alexander Stein Tested-by: Adam Ford #imx8mm-beacon Reviewed-by: Abel Vesa --- This is from clk_summary on a imx8mq custom board where you can clearly see the before the divider is limited to 8 (core composite) before: video_pll1_out 2 2 0 1031999997 0 0 50000 Y dsi_phy_ref 1 1 0 129000000 0 0 50000 Y lcdif_pixel 2 2 0 129000000 0 0 50000 Y after: video_pll1_out 2 2 0 1031999997 0 0 50000 Y dsi_phy_ref 1 1 0 24000000 0 0 50000 Y lcdif_pixel 2 2 0 68800000 0 0 50000 Y drivers/clk/imx/clk.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/imx/clk.h b/drivers/clk/imx/clk.h index 819949973db1..7d220a01de1f 100644 --- a/drivers/clk/imx/clk.h +++ b/drivers/clk/imx/clk.h @@ -391,11 +391,11 @@ struct clk_hw *__imx8m_clk_hw_composite(const char *name, #define imx8m_clk_hw_composite(name, parent_names, reg) \ _imx8m_clk_hw_composite(name, parent_names, reg, \ - IMX_COMPOSITE_CORE, IMX_COMPOSITE_CLK_FLAGS_DEFAULT) + 0, IMX_COMPOSITE_CLK_FLAGS_DEFAULT) #define imx8m_clk_hw_composite_critical(name, parent_names, reg) \ _imx8m_clk_hw_composite(name, parent_names, reg, \ - IMX_COMPOSITE_CORE, IMX_COMPOSITE_CLK_FLAGS_CRITICAL) + 0, IMX_COMPOSITE_CLK_FLAGS_CRITICAL) #define imx8m_clk_hw_composite_bus(name, parent_names, reg) \ _imx8m_clk_hw_composite(name, parent_names, reg, \