Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3535142imu; Mon, 7 Jan 2019 05:14:38 -0800 (PST) X-Google-Smtp-Source: ALg8bN6gweo2Smq8cqHqsktK85G2r5tggOlGERemseAgP4LVh7O2HjmBIAkmvV7Fk6mFzLsVPHVH X-Received: by 2002:a17:902:d70b:: with SMTP id w11mr62161136ply.294.1546866878040; Mon, 07 Jan 2019 05:14:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546866878; cv=none; d=google.com; s=arc-20160816; b=VsQj5ktk9LUdnAc7daFj9jgJPNrK+fJCBnwXzEe9Xje3MfAZpy2phS50H1jYuD3GzM XI2esGEdRJR7FJeQ44oZNGTWl1eR0AEdMjWECgJ2Ynu9bmU4eREkaXaTQm4/Mb/wTM1A GMwtsYgs4MFdrr573gKpL0WnQ13KUTEFO9WhRPcM7VYoKdVcQCWmkybrmFnoxR/g/od3 sXRir4J9NMRGlaolZDsiVLqGe7SaaCQDXPldWy+ChedrumrDyHul1mE9qnHfoPx2buBu DzBOhtqaaeqCXEZK3jFnW3mFQkqceF8WO1aMDdBDkkCExMd+q3xEnxmyMJO+EbpKOzwb HGTg== 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=fh+eg2WhFfRWTf2CnNPz9bLoMZIm0woVBqgGQI4ZpDo=; b=Pq1JxXirnoq9bg2yNY9IK5TXmeXAqSCulcGnfTQlx15SzrdjUbzcRJnXFrEqfmDyId xAkdHmHtMi3w7xg7/g8mVmtEAxwT7D6+MKqWBPQkTE0gAEqGYUD450qU/EmVqxT7Og0l tWJK6ZAyYydL1Bc8s0AWtC1W4RbPJdQmZ5PavYVIjVyLq9DezVGqXJTXiHsHqenlpfZp qPA4oznfg7UcVpTVrfJSki+jFgMp9rJNUrY30ZXLtMWlZVfQn0pxx/MBLsfs9C4/ZLCz RNpqLYcgCmwtGlcVTN3L72n2SRut4/SR00Pfdx9eFrFPMTardg5AMgje/ElT8pOuYtuV nEmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=O80fAtwv; 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 x1si7653320pfn.111.2019.01.07.05.14.22; Mon, 07 Jan 2019 05:14:38 -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=O80fAtwv; 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 S1731388AbfAGNE0 (ORCPT + 99 others); Mon, 7 Jan 2019 08:04:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:51968 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731367AbfAGNEX (ORCPT ); Mon, 7 Jan 2019 08:04:23 -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 35D832089F; Mon, 7 Jan 2019 13:04:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546866262; bh=kj3o1FX3f7dIHo7fM9/39UdgPQQt5P4SkaMf22cBrs0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=O80fAtwvOKOdeuplleaUCQdQTcJOegOAi8y3zgcKzqpXlu8vNI6HYt1LYcJ9qjNIr 3JnFPHCpVWU6blHNf7XanbQwhrdILhChnh3xkpwHdxxzF/PGEYLhgQuiB35PkDvsKt CptMrFUV5yYgh7F1Brc0vupVpC0gLaDL9Pcn4GQ4= 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.14 101/101] ARM: dts: exynos: Specify I2S assigned clocks in proper node Date: Mon, 7 Jan 2019 13:33:29 +0100 Message-Id: <20190107105338.234917895@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107105330.372621917@linuxfoundation.org> References: <20190107105330.372621917@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.14-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 diff --git a/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi b/arch/arm/boot/dts/exynos5422-odroidxu3-audio.dtsi index 03611d50c5a9..e84544b220b9 100644 --- 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>; }; diff --git a/arch/arm/boot/dts/exynos5422-odroidxu4.dts b/arch/arm/boot/dts/exynos5422-odroidxu4.dts index 4a30cc849b00..122174ea9e0a 100644 --- 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 {