Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2416612lqz; Tue, 2 Apr 2024 17:47:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWVo9iIp1F7ifFev9FZ5hZDTkji3Ts9pXxFNWpmlT1ZyxALPZDQnPyz4eLvNrmuFQz3XN0Kfpv8fXYsZn5BfzWU/qnoG0ZW9ym0TNSZSA== X-Google-Smtp-Source: AGHT+IHRhrScYAa+JJdHHkwyCbMlpEGh6d9nssaDP8xOteXzrwbBFYmNU7XY53PdQFNhnJbWWnVl X-Received: by 2002:a05:6870:769a:b0:22e:8ba0:921f with SMTP id dx26-20020a056870769a00b0022e8ba0921fmr1351679oab.52.1712105224223; Tue, 02 Apr 2024 17:47:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712105224; cv=pass; d=google.com; s=arc-20160816; b=z2VuP+EHOiAPVOqs+a4jnCq7hpwHez0XfLyDBe9YLBHx127J6NITcQvj3rwo1ozUxC QinnfnVA+JggLQ56Fe3zCV9PdMbNe4IqMFnSQWkdXP2yUE/uExpwQXsnvV7hx8jdFamZ 7iXMCe1XHyFcKRejran8dTw+VFarWYPu4oBm9RnOS90xwiNYd/oyWIsP4mG5MXMLaV3C xtzpNDvgoZh/nkvUxHo5tdShfRsG/e3tQsa6L1VoPvnm5PtilHDSSg0RuVzW5/LVukls CsjVANz3oLAwFc6DoipeLmyHGjXrQA2JkvHsM4ojxx71gJRzzZm9TxPCencd8Esg8rVg fmzw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=JbLQmn1f4KqgDj+3CsmOO0aLXXSbBrAVqrmpKxQMRho=; fh=SkTcAqr5bSVDoBIZGAwOQnnh8MUGb1oY8ghmWqidkso=; b=vevALzWuuZNfWlBrIG21HFSvn3YsAMM9mS9sUCDwaRfNtBOmz2GriOuapaLwThF1ua xLLYNZa/86K1NypxoT0zW9VUKg8FjiiqfAW+LJslr6GBN8oQt3qI/8A33YSRExSuQQI6 T2nxDlLV4rjKIsD4wY+RgFwTDoSBXc3hDrGaJRGvBvXIlbNcHNoe7rZFH4vv9L5l+4g+ rFSrFfy77KcBpE0wKtC6EVy0IaqUN+OqA6qBmExhiZ6Vi0Wra7f7NNOLNVunKlnJP10Z ucL7ccu/gQNeWn4NHrhMz7XonOV4XUvVvWCEfpLbkwpXi1DVb26Lqdx2Mcgif8l2ddpv /22A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=Ie3XkEtJ; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-128898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id h22-20020a63e156000000b005c661524f67si11849168pgk.26.2024.04.02.17.47.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 17:47:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=Ie3XkEtJ; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-128898-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128898-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id DC3E0283DD4 for ; Wed, 3 Apr 2024 00:47:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5A27ED53E; Wed, 3 Apr 2024 00:46:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b="Ie3XkEtJ" Received: from mail-177131.yeah.net (mail-177131.yeah.net [123.58.177.131]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2EE0710A3C; Wed, 3 Apr 2024 00:46:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=123.58.177.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712105211; cv=none; b=Ff5MqgbZkYJkmU64ZFoXrNTsH/dXl9YJP9lNGkxUeHHz7FFHlUv5WTptYCGilcl0iIyZxa8uqtQPDPrqaQwI5JyyP1L9+NwdkPe9njz/KiT4pZybyAqRIEwK8ApQhtqM4ANGOTccvOqd3545IUNmsOtrH1cI5VmizpMOwqVpCRs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712105211; c=relaxed/simple; bh=/LLxUfWngEK03tH5oBRilnm+GpQ91N397XktA8GjK3s=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=qSgXVDdawYYHcwGt0oXKkFzi/enWF3Aamu6AQ0JPQSlnrSQPxzfL0R1sXR1snonSeZXXGWWlObp7KK8quW8Gmpzy28zlVZJFeCuxdn9u5BmoocikyOGmIpoDzPRRMX9+udkBBIAIB5VFSz1z+mJRW+ow5w1zll9KlFlHNmc30iY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net; spf=pass smtp.mailfrom=yeah.net; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b=Ie3XkEtJ; arc=none smtp.client-ip=123.58.177.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yeah.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version: Content-Type; bh=JbLQmn1f4KqgDj+3CsmOO0aLXXSbBrAVqrmpKxQMRho=; b=Ie3XkEtJ4cp55rTC7Kw7o8dz7IRo4uqegdzmawG9n8hiWrReqEgr2q+1huXzuV GOLcGR9vHPKmXv1XAataCrDTlNSpfenBLF2YwIu+iqnSCo5Y2t2gl2nJ7pJyPfXd xVEc+FL8poG0/oFShlrkOIHCDatNxfVRawJM9XrpsoVvk= Received: from dragon (unknown [223.68.79.243]) by smtp1 (Coremail) with SMTP id ClUQrADnr0Hfpgxmrc2sAQ--.48995S3; Wed, 03 Apr 2024 08:46:24 +0800 (CST) Date: Wed, 3 Apr 2024 08:46:23 +0800 From: Shawn Guo To: Frank Li Cc: Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , Shengjiu Wang , linux-sound@vger.kernel.org, devicetree@vger.kernel.org, imx@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 4/5] arm64: dts: imx8: fix audio lpcg index Message-ID: References: <20240328-asrc_8qxp-v8-0-801cd6bb5be2@nxp.com> <20240328-asrc_8qxp-v8-4-801cd6bb5be2@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240328-asrc_8qxp-v8-4-801cd6bb5be2@nxp.com> X-CM-TRANSID:ClUQrADnr0Hfpgxmrc2sAQ--.48995S3 X-Coremail-Antispam: 1Uf129KBjvdXoW7Xry8WFW8uw1UWF1Dtr1xGrg_yoWxtFXEqF 4UJw4kur4Duryfta9Iqr13Aa48J3Wv9wn8WFWjqFn7Jas5JFZrAF18Krnxur45GFsxKr1U GFyUG3yUW3WI9jkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IU0nqXJUUUUU== X-CM-SenderInfo: pvkd40hjxrjqh1hdxhhqhw/1tbiFQq1ZV6NnBsUdgABs4 On Thu, Mar 28, 2024 at 10:51:36AM -0400, Frank Li wrote: > lpcg cell0 should be clock's 'indices' instead of 'index'. > > imx_lpcg_of_clk_src_get(struct of_phandle_args *clkspec, void *data) > { > struct clk_hw_onecell_data *hw_data = data; > unsigned int idx = clkspec->args[0] / 4; > > .... > } > > <@sai0_lpcg 1> will be the same as <@sai_lpcg 0>. > > Replace 0 with IMX_LPCG_CLK_0 and replace 1 with IMX_LPCG_CLK_4. > > It can work at iMX8QXP because IMX_LPCG_CLK_4 is ipg clock, which already > enabled. But for iMX8QM IMX_LPCG_CLK_4 is mclk, which trigger issue. > > Fixes: 0a9279e9ae88 ("arm64: dts: imx8qxp: Add audio SAI nodes") > Signed-off-by: Frank Li Applied, thanks!