Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4005383pxu; Mon, 12 Oct 2020 07:10:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVYGCuQ7fKOivk7OU3O3R7Ammx4q7dxdZklVbu1xA2goHWAILCKyT1OF8QFp0cG0XovQfP X-Received: by 2002:a17:906:eb59:: with SMTP id mc25mr27754941ejb.34.1602511813672; Mon, 12 Oct 2020 07:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602511813; cv=none; d=google.com; s=arc-20160816; b=kAO2m1mJUe73TGj3qlz0AA2ieBzJ+zNbbbmE6HyD9hx91hFPnHTo/gW5SNxcXZE7Zd gglNtZuPQNptJCjHEQjtRQVNvMGct6gZQJCgzP0sAIZebjeFvcK7qKL8SYwBIny3gNgS o4kkHkbf1hFXKTQIQb7mluGe4a4yjkqx0UqS8LsKfn7cKL3MGFsDUyrVWrr+CLmPRmEB 6upM3/mMpDgWL1N9oHR3UOPCzMwys/SOvfR1DQaGYhxFNBPXSCyCStWije2TFNy20PJ2 6mwbjTqKC6bwd07ggQy1SK33+WJCAGmYpYBFRVVWl0psIERXf5andKv9xOvRymbc7S+z BCVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ETf9jEHbDn2RPgm4vjTUyRBANbioehoKBjI0I8ad264=; b=QXR5p1sp3G313wferrCj8z3oU7nCgEV8bwc2ukiQOfR1P/IyBCUbkSVit/znFh0Rl9 3P63N1j7qqLwwdMv4GGpsW/1Oa9m/K3dGouvZkGemwBpThpg0vP4arMRtv5OFPWg5zlz aiV3LbH0P4vhQBQrJmMDOGdDSvXFA/ywCwYU3fhZJn+Xr4Yc4HXjR7yVsvUA2gecG6Xs BossNYXJ56wjs2aUyvJd6VvaEZbOi8h0RQn3h2dMMNbwzm749jLpruFgpaAU0eS/cuXN E0jiW3WNs1Bfe6bpgvQuO1l2KKYIkAMDFFMuht2jSdcd6Ndeb/1AsT7W8CUnpgbJE5kI k01w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EW9nb5HM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id yz13si1539038ejb.173.2020.10.12.07.09.50; Mon, 12 Oct 2020 07:10:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=EW9nb5HM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730188AbgJLOH4 (ORCPT + 99 others); Mon, 12 Oct 2020 10:07:56 -0400 Received: from mail.kernel.org ([198.145.29.99]:36738 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389228AbgJLNeW (ORCPT ); Mon, 12 Oct 2020 09:34:22 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 C4CB72076E; Mon, 12 Oct 2020 13:33:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602509619; bh=YZJgG45Syrl+fEpFOfI4hwqWnh1G2Cjf9HsFfsX3gnM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=EW9nb5HMPyVSgnmwsl2KyKZIFk7tS2CeJe5go0tO5gjSUFMbrCICi7nIG/BG9jLw+ 7/d79VuFidAQgD/ELHa37tiiwZgB8l4PBrMHjyZMgX8L3LDsvZccchdCqHHlNEuwqe Cr4Ut9rtRHaDElKGXmXwoGRd0CNAFyW3RWcC0wJ0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Krzysztof Kozlowski , Sylwester Nawrocki , Stephen Boyd , Sasha Levin Subject: [PATCH 4.9 13/54] clk: samsung: exynos4: mark chipid clock as CLK_IGNORE_UNUSED Date: Mon, 12 Oct 2020 15:26:35 +0200 Message-Id: <20201012132630.200726142@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132629.585664421@linuxfoundation.org> References: <20201012132629.585664421@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit f3bb0f796f5ffe32f0fbdce5b1b12eb85511158f ] The ChipID IO region has it's own clock, which is being disabled while scanning for unused clocks. It turned out that some CPU hotplug, CPU idle or even SOC firmware code depends on the reads from that area. Fix the mysterious hang caused by entering deep CPU idle state by ignoring the 'chipid' clock during unused clocks scan, as there are no direct clients for it which will keep it enabled. Fixes: e062b571777f ("clk: exynos4: register clocks using common clock framework") Signed-off-by: Marek Szyprowski Link: https://lore.kernel.org/r/20200922124046.10496-1-m.szyprowski@samsung.com Reviewed-by: Krzysztof Kozlowski Acked-by: Sylwester Nawrocki Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/samsung/clk-exynos4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/samsung/clk-exynos4.c b/drivers/clk/samsung/clk-exynos4.c index 91f9b79e39411..9a9402f568ef6 100644 --- a/drivers/clk/samsung/clk-exynos4.c +++ b/drivers/clk/samsung/clk-exynos4.c @@ -1060,7 +1060,7 @@ static const struct samsung_gate_clock exynos4210_gate_clks[] __initconst = { GATE(CLK_PCIE, "pcie", "aclk133", GATE_IP_FSYS, 14, 0, 0), GATE(CLK_SMMU_PCIE, "smmu_pcie", "aclk133", GATE_IP_FSYS, 18, 0, 0), GATE(CLK_MODEMIF, "modemif", "aclk100", GATE_IP_PERIL, 28, 0, 0), - GATE(CLK_CHIPID, "chipid", "aclk100", E4210_GATE_IP_PERIR, 0, 0, 0), + GATE(CLK_CHIPID, "chipid", "aclk100", E4210_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0), GATE(CLK_SYSREG, "sysreg", "aclk100", E4210_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0), GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk100", E4210_GATE_IP_PERIR, 11, 0, @@ -1101,7 +1101,7 @@ static const struct samsung_gate_clock exynos4x12_gate_clks[] __initconst = { 0), GATE(CLK_TSADC, "tsadc", "aclk133", E4X12_GATE_BUS_FSYS1, 16, 0, 0), GATE(CLK_MIPI_HSI, "mipi_hsi", "aclk133", GATE_IP_FSYS, 10, 0, 0), - GATE(CLK_CHIPID, "chipid", "aclk100", E4X12_GATE_IP_PERIR, 0, 0, 0), + GATE(CLK_CHIPID, "chipid", "aclk100", E4X12_GATE_IP_PERIR, 0, CLK_IGNORE_UNUSED, 0), GATE(CLK_SYSREG, "sysreg", "aclk100", E4X12_GATE_IP_PERIR, 1, CLK_IGNORE_UNUSED, 0), GATE(CLK_HDMI_CEC, "hdmi_cec", "aclk100", E4X12_GATE_IP_PERIR, 11, 0, -- 2.25.1