Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3508293imu; Mon, 7 Jan 2019 04:48:04 -0800 (PST) X-Google-Smtp-Source: AFSGD/WDg59IucCWyDT47vrE7O6M9DFvRuOSi/QpqgOo5ocrzvrLWNDjP0+dtBmQ8ZbQ+vBFQbsW X-Received: by 2002:a62:13c3:: with SMTP id 64mr62724780pft.93.1546865283917; Mon, 07 Jan 2019 04:48:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546865283; cv=none; d=google.com; s=arc-20160816; b=E+un7gxNNTy85Lvu0Qgg8Z4v5/QtbmZcxz6rIgfpYL/uJboxnkDtlf6xiZbG7TLtie AqHIP9eLiQ0eNhB7QNBwC9ik7Yi7CSk8Y6dhBiwBiBG+D1bkOQyqecGGQgNGmtBnmHqY X98HXR3tRx0w15GUAnPYUvsNH2VQQLse2s6NW72510k7hUdl0ZhFpRyu5wc41Hs3WRdU +SToPbVwviAe7QLIqI6EmlL8V3Fztw3IlxPSn38RLNq5zOju8/2y9UL6UuZczvX0ej6M 0c74PaGEom0zG38h5mey0BFlyWxHmzJAKjhSRsCNYfCv9aVy5GizgNjWQczb4t080SUk 3nMw== 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=4cBoghOXGmBxingEs0CmUL4c/Id2pduMUJqpYrEX/yY=; b=SujxzgHv6g5uy0hzuPDZ6W8oum/qdRBxubyTZ+qqQLltvrmc3gndN/B/I8DZW/lTZU 3tBu9U78dTSG0VH22jyvIz9flkZ3yi8ZuSP+xm9GsOOXkRdbPl4d/9t7dQ/RPHZ6539l xMmmmKLfpyvTTJDE8lRmeqBXWJYBF17MvoiiL3ZfJu4+GEQ0CgqpnuFro0S5sVzA0tWf X1KrTlYkZHkkK+X1BDa6oMFmIHOoBDU93/2l1HIrLPGQTEyY9StgHVC6aOlQhfLEgQIB YlVOUHB/pXenjRDzbyzy+HxVnyjksq6vu0jMOuCNXVjHXXXDlx46cz94WIUxj4SaXPlT nAbA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=fQBJI0r4; 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 j14si16160587pgi.354.2019.01.07.04.47.48; Mon, 07 Jan 2019 04:48:03 -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=fQBJI0r4; 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 S1728777AbfAGMo5 (ORCPT + 99 others); Mon, 7 Jan 2019 07:44:57 -0500 Received: from mail.kernel.org ([198.145.29.99]:33780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728766AbfAGMoz (ORCPT ); Mon, 7 Jan 2019 07:44:55 -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 63F272183E; Mon, 7 Jan 2019 12:44:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1546865094; bh=WnELgCRUzBPxf0HBkDJbJ/PQ6QCyFbnqUiRFs3Kv3OI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=fQBJI0r4pGZ/ACUBuvWEY/xCQzPQvRNZ4jjXN/4NS0IITTxeBfVurqO7X3SWMB8Bf 5rthrynCqkMGD3Qkw2NjKEZR4A2bYIlrbn8XVPRnN0pG1RCT6864Ujy4cDwyGnqAB4 S87WysanuVrvMm52gf0BWJRudD4Ik4FDosQfBLfo= 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.20 133/145] ARM: dts: exynos: Specify I2S assigned clocks in proper node Date: Mon, 7 Jan 2019 13:32:50 +0100 Message-Id: <20190107104454.616090864@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190107104437.308206189@linuxfoundation.org> References: <20190107104437.308206189@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.20-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 {