From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 89D6233ADBA; Tue, 12 May 2026 17:56:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778608587; cv=none; b=W8JUrXszMue0Z3sckRnS1GnWCKFXAebIumgFsgLMl1u03NW63ZebIlzvmuhEJkjB69oQkFFcG+T5CSI+ekFLY4haNjB2obK4J9q1qeQDuYU6t7ZCV5bewXI8ARwmyfimYYBpARNzAIVd7NItnO31LXe3zV2/A/gaXCHO8vqJIDY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778608587; c=relaxed/simple; bh=EYuaKNGD2abUGBD1ClVg7Sfe++5lF0ZwL5sdqIoj0CE=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=JKoguQNh2Gj27y3gbCq5skJBu7RAour8eNAzmDLXAWORmsJvmGCHnofIFk0hTQehPAP++ruA7dGlC64fRTqoKFCcUE5s0HOtts7Cwrg2554mlfhq0p3dQ+qoZ/mztnaecmNegOIEz/JbC9ciiDTtIKFh+aRyf1UbEMXNahVjNpo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yGTub/MZ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yGTub/MZ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E5685C2BCB0; Tue, 12 May 2026 17:56:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778608587; bh=EYuaKNGD2abUGBD1ClVg7Sfe++5lF0ZwL5sdqIoj0CE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yGTub/MZk2f5wMposUdVQ10jqfASb5vIo0iDu7tmuvDAU7Xa5CtzUhqiNMZL8rc2v Y186dIJE0pHxu5oP66Xg45bSCox6fpvtIAaOLAB9zftdOVJed6iAn5XneB1ILhUQN/ O+MG1wTgTiL2Oem9JMreaxOchyLSE6w+BLb9SI50= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Stefan Eichenberger , Shengjiu Wang , Peng Fan , Abel Vesa Subject: [PATCH 6.18 138/270] clk: imx: imx8-acm: fix flags for acm clocks Date: Tue, 12 May 2026 19:38:59 +0200 Message-ID: <20260512173941.357312089@linuxfoundation.org> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260512173938.452574370@linuxfoundation.org> References: <20260512173938.452574370@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Stefan Eichenberger commit f2c2fc93b4a3efdfcf3805ab74741826d343ff2c upstream. Currently, the flags for the ACM clocks are set to 0. This configuration causes the fsl-sai audio driver to fail when attempting to set the sysclk, returning an EINVAL error. The following error messages highlight the issue: fsl-sai 59090000.sai: ASoC: error at snd_soc_dai_set_sysclk on 59090000.sai: -22 imx-hdmi sound-hdmi: failed to set cpu sysclk: -22 By setting the flag CLK_SET_RATE_NO_REPARENT, we signal that the ACM driver does not support reparenting and instead relies on the clock tree as defined in the device tree. This change resolves the issue with the fsl-sai audio driver. CC: stable@vger.kernel.org Fixes: d3a0946d7ac9 ("clk: imx: imx8: add audio clock mux driver") Signed-off-by: Stefan Eichenberger Signed-off-by: Shengjiu Wang Reviewed-by: Peng Fan Link: https://patch.msgid.link/20260212085750.3253187-1-shengjiu.wang@nxp.com Signed-off-by: Abel Vesa Signed-off-by: Greg Kroah-Hartman --- drivers/clk/imx/clk-imx8-acm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- a/drivers/clk/imx/clk-imx8-acm.c +++ b/drivers/clk/imx/clk-imx8-acm.c @@ -371,7 +371,8 @@ static int imx8_acm_clk_probe(struct pla for (i = 0; i < priv->soc_data->num_sels; i++) { hws[sels[i].clkid] = devm_clk_hw_register_mux_parent_data_table(dev, sels[i].name, sels[i].parents, - sels[i].num_parents, 0, + sels[i].num_parents, + CLK_SET_RATE_NO_REPARENT, base + sels[i].reg, sels[i].shift, sels[i].width, 0, NULL, NULL);