Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3859048imu; Mon, 7 Jan 2019 10:46:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN6PWNNNlNcJ5VqoMX9ClvXyJ9BSEQ7mPRia2rCHx2Ci8DtrA4hktcCZ5dkUt6Xq9z3CYlfs X-Received: by 2002:a17:902:fa2:: with SMTP id 31mr62749536plz.75.1546886771166; Mon, 07 Jan 2019 10:46:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546886771; cv=none; d=google.com; s=arc-20160816; b=y2hLK7X05GDIex5uiA98NXBBDDE2lBuJq2eel3eLxxfE3OuqGiO1feopFuwFKM8Hok J3FvKMge0QMSOTRlnD1dkjM7VJpLvYkwSk1gJrdfwnzx9iXEUM5bmkuIjF1a9/mAkQ1S inSJfCt+pzdzM1r8VYcKrtIK79cUv3ap1WJ+lrClhAtdq6/17DqNVtIW9M4S4OL/oHJo Gfo6T9pRQkiK9Y/QlEviKopAqXAExp3msic9SezxQIyifysgflurUz6/JocMLxkSIlMk 07dSbYVzyPOsFEajKQ+iIEzeafg2k0KbOlBdNd6OpkmlBjUnm55EjkkKJQ2FSuzaRCSB lvWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=6ZO6CRChf5yzQkIQ7humvoEg+XXUDezT0rGCkKpRAcg=; b=EyKcc9htqE6WSe8Lv0sQHvbBHWZsdVHhRKqlhQi4K5soay5WSVJun6iP2SpKBkqU0I Br93PWK4qFB80liUjiwoJeYf1XhNZaZx15iqEP9u12CMf5bQlrSBS19w3vf9g4bUt6EE byY50IPV2syyaBZ174JlVJBd6In79NZS09ldWsfchW3Z33Qqo7gPBDl1C9dWRenmmET9 6TKeWWBvWP0Ttm3qgEb3+8k665PvG4PYsXGli5FrBAqBPW94p0eLWQrMsy4LOdIKM6EA yrMQBhbe9RtClLjZ69wxnNaAl89+dAoKev5ueQpZmd7kokqBCxEAPmzz+xlbUsWD+InK e+0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O03hJ69O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y2si14995070pfy.29.2019.01.07.10.45.55; Mon, 07 Jan 2019 10:46:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O03hJ69O; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728180AbfAGNS1 (ORCPT + 99 others); Mon, 7 Jan 2019 08:18:27 -0500 Received: from mail.kernel.org ([198.145.29.99]:46506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730059AbfAGM6v (ORCPT ); Mon, 7 Jan 2019 07:58:51 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8BAAF206BB; Mon, 7 Jan 2019 12:58:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865931; bh=iir08ecdAzl9vaZsIA3tVOKcx56I0uMx92x1dXC/ovM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O03hJ69OCZu76fWApCDvaVmCmUODuXU4FKX7KpXFNhKXgp5gF8gNaiCmfzvEioJZj rAFXb6JHHksdFfYC3iUFjz6SCQ2FjWobqSa6GNRpoGSuq4G3n5mcHAVR4neoiNKNG5 y0R3aprcmIAQpuymF4VsWX5IW3dLa1nrJvCSjzXo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sylwester Nawrocki , Krzysztof Kozlowski Subject: [PATCH 4.19 161/170] ARM: dts: exynos: Specify I2S assigned clocks in proper node Date: Mon, 7 Jan 2019 13:33:08 +0100 Message-Id: <20190107104511.966113811@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104452.953560660@linuxfoundation.org> References: <20190107104452.953560660@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: Sylwester Nawrocki commit 8ac686d7dfed721102860ff2571e6b9f529ae81a upstream. The assigned parent clocks should be normally specified in the consumer device's DT node, this ensures respective driver always sees correct clock settings when required. This patch fixes regression in audio subsystem on Odroid XU3/XU4 boards that appeared after commits: commit 647d04f8e07a ("ASoC: samsung: i2s: Ensure the RCLK rate is properly determined") commit 995e73e55f46 ("ASoC: samsung: i2s: Fix rclk_srcrate handling") commit 48279c53fd1d ("ASoC: samsung: i2s: Prevent external abort on exynos5433 I2S1 access") Without this patch the driver gets wrong clock as the I2S function clock (op_clk) in probe() and effectively the clock which is finally assigned from DT is not being enabled/disabled in the runtime resume/suspend ops. Without the above listed commits the EXYNOS_I2S_BUS clock was always set as parent of CLK_I2S_RCLK_SRC regardless of DT settings so there was no issue with not enabled EXYNOS_SCLK_I2S. Cc: # 4.17.x Signed-off-by: Sylwester Nawrocki Signed-off-by: Krzysztof Kozlowski Signed-off-by: Greg Kroah-Hartman --- arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi | 9 ++++----- arch/arm/boot/dts/exynos5422-odroidxu4.dts | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) --- a/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi +++ b/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi @@ -26,8 +26,7 @@ "Speakers", "SPKL", "Speakers", "SPKR"; - assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>, - <&clock CLK_MOUT_EPLL>, + assigned-clocks = <&clock CLK_MOUT_EPLL>, <&clock CLK_MOUT_MAU_EPLL>, <&clock CLK_MOUT_USER_MAU_EPLL>, <&clock_audss EXYNOS_MOUT_AUDSS>, @@ -36,8 +35,7 @@ <&clock_audss EXYNOS_DOUT_AUD_BUS>, <&clock_audss EXYNOS_DOUT_I2S>; - assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>, - <&clock CLK_FOUT_EPLL>, + assigned-clock-parents = <&clock CLK_FOUT_EPLL>, <&clock CLK_MOUT_EPLL>, <&clock CLK_MOUT_MAU_EPLL>, <&clock CLK_MAU_EPLL>, @@ -48,7 +46,6 @@ <0>, <0>, <0>, - <0>, <196608001>, <(196608002 / 2)>, <196608000>; @@ -84,4 +81,6 @@ &i2s0 { status = "okay"; + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>; }; --- a/arch/arm/boot/dts/exynos5422-odroidxu4.dts +++ b/arch/arm/boot/dts/exynos5422-odroidxu4.dts @@ -33,8 +33,7 @@ compatible = "samsung,odroid-xu3-audio"; model = "Odroid-XU4"; - assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>, - <&clock CLK_MOUT_EPLL>, + assigned-clocks = <&clock CLK_MOUT_EPLL>, <&clock CLK_MOUT_MAU_EPLL>, <&clock CLK_MOUT_USER_MAU_EPLL>, <&clock_audss EXYNOS_MOUT_AUDSS>, @@ -43,8 +42,7 @@ <&clock_audss EXYNOS_DOUT_AUD_BUS>, <&clock_audss EXYNOS_DOUT_I2S>; - assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>, - <&clock CLK_FOUT_EPLL>, + assigned-clock-parents = <&clock CLK_FOUT_EPLL>, <&clock CLK_MOUT_EPLL>, <&clock CLK_MOUT_MAU_EPLL>, <&clock CLK_MAU_EPLL>, @@ -55,7 +53,6 @@ <0>, <0>, <0>, - <0>, <196608001>, <(196608002 / 2)>, <196608000>; @@ -79,6 +76,8 @@ &i2s0 { status = "okay"; + assigned-clocks = <&i2s0 CLK_I2S_RCLK_SRC>; + assigned-clock-parents = <&clock_audss EXYNOS_SCLK_I2S>; }; &pwm {