From patchwork Wed Dec 4 17:49:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 180847 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp961634ile; Wed, 4 Dec 2019 10:26:52 -0800 (PST) X-Google-Smtp-Source: APXvYqz/ApJ86cLvnV+p6gV7JTDy7hQKwQrngMYoWS3voNmuWXTkJUgJ8seWuhQqXiEBO46QRbUe X-Received: by 2002:a05:6830:2141:: with SMTP id r1mr3370899otd.124.1575484012656; Wed, 04 Dec 2019 10:26:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575484012; cv=none; d=google.com; s=arc-20160816; b=CEiSUz2P7aC1wH205PoX0EOdnRrkeeq2sFuqdDd16Whn7+8n7b5qslHYtcP8NdT8EU MW2kIbaLhCTWzA0litiCAIwznO+Xp6Tkh6d+mOL3ZlcmJBXjlaEgaK0UQJTIkuOj0Ny6 iBWULq9W36WmwRnkPVky1MsdFmJRkWPk47JXhwbqto/YZogzmrCCbfTYYmQ0XVKmZFab rY38nw1x1s2IpTcV++IRyJoYhGg9kdzDoOwUfVdvHbeDj2Pi6pEwIZhpxpTahJZrpF9/ rQTuFRY4TX5060EvMMNCRm/0L8SC9rERgGdeLFMpogMChqS7Yy9gYcmXlNF9l4WA4g/h mDYg== 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=PVfpINWwYjAyrc825yO+a8SQzBQAYdGLE0o33Q7jF/I=; b=xBSDw4LiKxB/V16Op9TkNeATXToDJJO0PlcTIJBq7IAvl81Rz+7Z/k/LOp35dGQ4Pf aeXsxpABEgjSBMFp6ul6fLXKQrCrmpT+IbEvjR+X9g6KJVGE2fbq3ns9S7NMePCrHliR UxNttOVQl8Zo+tgY1n2KbNGj3acG2nKzEWKxBuAVJ2iN5gw4T2b+AZn64eu7S0Df0yXc Wl0fyKS/FyLn1pS8i1t1TOQlaG2O9SKa3bHnRHZo5YCp13RL6Fp3ZPGyodBblF1rGpHQ sTIP9FL4NkWRD7vrLEv45TSC/ziMwrVdYUiPgcyRQEwjsmtGFbs50DvdjNPDO5Z5X1Rr k8jA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=LF1WPbnU; 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 x20si3421551otq.222.2019.12.04.10.26.52; Wed, 04 Dec 2019 10:26:52 -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=LF1WPbnU; 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 S1730038AbfLDS0v (ORCPT + 27 others); Wed, 4 Dec 2019 13:26:51 -0500 Received: from mail.kernel.org ([198.145.29.99]:34580 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728358AbfLDR67 (ORCPT ); Wed, 4 Dec 2019 12:58:59 -0500 Received: from localhost (unknown [217.68.49.72]) (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 4641420863; Wed, 4 Dec 2019 17:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575482338; bh=r7wqaF6k5AKKWznTAOwQ33pGuMlmJ/ecwfN0IvJdRUw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LF1WPbnU7rirtLM8uoc1F3OaAel2ucuLPRDrJBXHkyvMgq015Q1W9SHjoh+Gdi+Kk lmLjcO8QZlopMqMkYp0pwA8UQvvIAj60fj23js9oo9ZCkKPFJHE5Q4Zr0De/cDnTFl CFhKykznCBy52sA4ddqcIlhd2jPlCDlcTRH45jAo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Reported-by: Marian Mihailescu" , Marek Szyprowski , Sylwester Nawrocki , Sasha Levin Subject: [PATCH 4.4 03/92] clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume Date: Wed, 4 Dec 2019 18:49:03 +0100 Message-Id: <20191204174328.318163643@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204174327.215426506@linuxfoundation.org> References: <20191204174327.215426506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marek Szyprowski [ Upstream commit e9323b664ce29547d996195e8a6129a351c39108 ] Properly save and restore all top PLL related configuration registers during suspend/resume cycle. So far driver only handled EPLL and RPLL clocks, all other were reset to default values after suspend/resume cycle. This caused for example lower G3D (MALI Panfrost) performance after system resume, even if performance governor has been selected. Reported-by: Reported-by: Marian Mihailescu Fixes: 773424326b51 ("clk: samsung: exynos5420: add more registers to restore list") Signed-off-by: Marek Szyprowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Sasha Levin --- drivers/clk/samsung/clk-exynos5420.c | 6 ++++++ 1 file changed, 6 insertions(+) -- 2.20.1 diff --git a/drivers/clk/samsung/clk-exynos5420.c b/drivers/clk/samsung/clk-exynos5420.c index bde71b07f15e7..c94de13ce3627 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -166,12 +166,18 @@ static unsigned long exynos5x_clk_regs[] __initdata = { GATE_BUS_CPU, GATE_SCLK_CPU, CLKOUT_CMU_CPU, + CPLL_CON0, + DPLL_CON0, EPLL_CON0, EPLL_CON1, EPLL_CON2, RPLL_CON0, RPLL_CON1, RPLL_CON2, + IPLL_CON0, + SPLL_CON0, + VPLL_CON0, + MPLL_CON0, SRC_TOP0, SRC_TOP1, SRC_TOP2,