Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3707008imu; Mon, 28 Jan 2019 09:22:17 -0800 (PST) X-Google-Smtp-Source: ALg8bN6vXSJ4E0n8mRJp/eLCSAhVEocITdMVTRzYshSJ143jXrLoEPs7QHBByTqOEnN2P4ak0AO/ X-Received: by 2002:a63:e40c:: with SMTP id a12mr20702492pgi.28.1548696137357; Mon, 28 Jan 2019 09:22:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548696137; cv=none; d=google.com; s=arc-20160816; b=1KPdGPj35g0JatR+50vRRsLR8SMQEqa3wGR3hb9L4MxmbtCd+Fv8nOs44cpaqUCjPl CnKyXZWOEDLqtk03c30mp80+QI9DM8GVh7AolEYtW4+VeUBYEt5OT7ODkepQ7Jei8Xz0 YoDLgOjxKhvToG+Hfrckljn+i2jCztQayMbWN5HjSrr5Czv6s3X2TTc4hkftuS8QPSNZ LSLQ1fVqsznWFCaNH+6owdUe4QMB7+xfv3LmWQq+hsbbca77jWVIlxE/01l584PZEPFL Cz7wle0qm/CEgYxjCoHU5LV9/WDUS4La/PYDGf0eJmtSEXjj9tOo+i+g+4ISCcbROFFq MPhg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=jzJFyRL4qaHhsW6bXZZt42Hi9ifCQDP7E9g7hJxQLNw=; b=HKgdD3aSqOIzb0o5T5ixM+7aUQlcqSUsxl7cNYa730wYoFB6ISxOY2GVwXQt3xwnc9 k7sexSh4jBmRkJMr+TKMx50uXj6prX67cQ3VBzVIEtRYcUNo8SCobx+2AkTm8/kecCeH Ks1zlgAq7CfxsBqWTIy/P5hn6/Q2n+gcUznDZU5OA8bzyUpdhH4nCggBEcCcmwPr2PcM Bsm4YYxQq+IOGu5cvyW8wqX48w2NXjNpjbqmrWyOTpA/CR8Y+jmRWiFWiHZekcmeyfpZ FcZ47NYkD4quW/bZ/EeijIB9EjjWJptKGaKijkHVRZfus374Uqjj/+y9nGl52s6HuqfP Y9Jw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=E0h6d6CT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p12si32836349pgj.56.2019.01.28.09.22.02; Mon, 28 Jan 2019 09:22:17 -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=E0h6d6CT; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730538AbfA1RUB (ORCPT + 99 others); Mon, 28 Jan 2019 12:20:01 -0500 Received: from mail.kernel.org ([198.145.29.99]:50344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731621AbfA1QEi (ORCPT ); Mon, 28 Jan 2019 11:04:38 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2471921738; Mon, 28 Jan 2019 16:04:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1548691477; bh=NiU+fKxxjAJwJWAOHX8DOnTRU8rjh/xsh3EXRdvZyyQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=E0h6d6CTo4CqigH0ZZNm8+A/7fiqZsHTJL6XtuVaG+SwFtDMR49waCv3waJ8qsbti BkQ9aj2hjUu3FCEktXtSVR8imbhdX03yTlRWuW/TfnnOetCfveG3OIf5hJVe/dKDil M5uPPQHQ8mEmWkptOHiWEV31gANTSm2ItSAcqIQE= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Chen-Yu Tsai , Maxime Ripard , Sasha Levin , linux-clk@vger.kernel.org Subject: [PATCH AUTOSEL 4.19 107/258] clk: sunxi-ng: a33: Set CLK_SET_RATE_PARENT for all audio module clocks Date: Mon, 28 Jan 2019 10:56:53 -0500 Message-Id: <20190128155924.51521-107-sashal@kernel.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20190128155924.51521-1-sashal@kernel.org> References: <20190128155924.51521-1-sashal@kernel.org> MIME-Version: 1.0 X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Chen-Yu Tsai [ Upstream commit 6e6da2039c82271dd873b9ad2b902a692a7dd554 ] All the audio interfaces on Allwinner SoCs need to change their module clocks during operation, to switch between support for 44.1 kHz and 48 kHz family sample rates. The clock rate for the module clocks is governed by their upstream audio PLL. The module clocks themselves only have a gate, and sometimes a divider or mux. Thus any rate changes need to be propagated upstream. Set the CLK_SET_RATE_PARENT flag for all audio module clocks to achieve this. Signed-off-by: Chen-Yu Tsai Signed-off-by: Maxime Ripard Signed-off-by: Sasha Levin --- drivers/clk/sunxi-ng/ccu-sun8i-a33.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/clk/sunxi-ng/ccu-sun8i-a33.c b/drivers/clk/sunxi-ng/ccu-sun8i-a33.c index 13eb5b23c5e7..c40d572a7602 100644 --- a/drivers/clk/sunxi-ng/ccu-sun8i-a33.c +++ b/drivers/clk/sunxi-ng/ccu-sun8i-a33.c @@ -366,10 +366,10 @@ static SUNXI_CCU_MP_WITH_MUX_GATE(spi1_clk, "spi1", mod0_default_parents, 0x0a4, static const char * const i2s_parents[] = { "pll-audio-8x", "pll-audio-4x", "pll-audio-2x", "pll-audio" }; static SUNXI_CCU_MUX_WITH_GATE(i2s0_clk, "i2s0", i2s_parents, - 0x0b0, 16, 2, BIT(31), 0); + 0x0b0, 16, 2, BIT(31), CLK_SET_RATE_PARENT); static SUNXI_CCU_MUX_WITH_GATE(i2s1_clk, "i2s1", i2s_parents, - 0x0b4, 16, 2, BIT(31), 0); + 0x0b4, 16, 2, BIT(31), CLK_SET_RATE_PARENT); /* TODO: the parent for most of the USB clocks is not known */ static SUNXI_CCU_GATE(usb_phy0_clk, "usb-phy0", "osc24M", @@ -446,7 +446,7 @@ static SUNXI_CCU_M_WITH_GATE(ve_clk, "ve", "pll-ve", static SUNXI_CCU_GATE(ac_dig_clk, "ac-dig", "pll-audio", 0x140, BIT(31), CLK_SET_RATE_PARENT); static SUNXI_CCU_GATE(ac_dig_4x_clk, "ac-dig-4x", "pll-audio-4x", - 0x140, BIT(30), 0); + 0x140, BIT(30), CLK_SET_RATE_PARENT); static SUNXI_CCU_GATE(avs_clk, "avs", "osc24M", 0x144, BIT(31), 0); -- 2.19.1