From patchwork Wed Dec 4 17:53:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180828 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp932025ile; Wed, 4 Dec 2019 10:02:55 -0800 (PST) X-Google-Smtp-Source: APXvYqyNW/8lKt7/HRa5F0+GOJneSsE2oRTWNFoa/w5VZEE01qdwXjbgs7nYX0kNm9ZVD5gEd8mS X-Received: by 2002:aca:af54:: with SMTP id y81mr3499403oie.154.1575482575514; Wed, 04 Dec 2019 10:02:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575482575; cv=none; d=google.com; s=arc-20160816; b=x7kuwW+xZlw/sGT7YQgMJBkH0XfJOF/tZqzXoVDRE6bKvqr5HTTjvLtI0WAeXU4Okt W788h1gEs5dQdVWZk2LZ6g/bK/JwSYaVWIrpMW3osrluh3B9QLnxEUEpsQkKf7707MKN 4Me/I1fIpg+MkwCZG+zg3TmuvlPPk52gEQd3Htf3Gc7pxH5vXVRcoPIcYVEtscXU548j IiDVFbGr1Bk8VSuo1suU7OeMir63GFMvYT4VC5YncWyQrTOmnlZ8ndIHj8l6m+ogPZkt Y1dPOFtLbv/jWQAdP6juLo+41N3L6ovRR6jEfBYoze7Hf3Oy1fQDgQMxV+GIqsEBJGob FF3w== 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=RW2hRnIHeN78VrD9hgFAR4l5922tUdzgvwNixzQrTtU=; b=jkrJqvFZnngWPllPhlzt3M5cv3MRJvtqQObRTlKiiJATgWFmj3vE494W0tQhO69giJ Lns9iqRKkrzm8xKruumtz9n0cM15HsNsrpYUrJ8NAGRID361UvHs19p3d5zryR3PtyNT yAna61n6tbu3IArvmNEcmIi9+yUz3GVldbS6qzEsvJ+fGgccb1GAKMtYo6nf9cupfm0d 525kPzi6YCVcT0ek0hQzbPQoPnYg41CNQHEYxQmN0wz+I0Y0qWU6yHqaYvpZhR8YfPi9 vVFe4tumZbAAjQr0jcL1ABC1UuXuUKm2yvcwDggPGb3OtwwomlxM43bAmFy0OkPHqddc uN6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="LYLRgp/9"; 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 x22si3718220otp.107.2019.12.04.10.02.55; Wed, 04 Dec 2019 10:02:55 -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="LYLRgp/9"; 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 S1729945AbfLDSCx (ORCPT + 27 others); Wed, 4 Dec 2019 13:02:53 -0500 Received: from mail.kernel.org ([198.145.29.99]:45476 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729931AbfLDSCt (ORCPT ); Wed, 4 Dec 2019 13:02:49 -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 5E01E20675; Wed, 4 Dec 2019 18:02:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575482568; bh=YmhnP20tpsgPx29MUewJ8NBV4qA6cgOJYoQR7Abm1bg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=LYLRgp/9MpQafErpsO+2tLvVo9x6WYoUbXBiL/riXWMc6rkrlhCGSP+vd6EvWTZWH VRT0NwK9eZEBT8YY6eB5ApQTkl8r4FJc5/AzRHCfZr8mQ9AcHcX3K5mcTw7D/mASn/ iOxci4/AyS5xGE/bEBymKby4wUfhtwm0Nu5aJXFk= 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.14 006/209] clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume Date: Wed, 4 Dec 2019 18:53:38 +0100 Message-Id: <20191204175322.047825199@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191204175321.609072813@linuxfoundation.org> References: <20191204175321.609072813@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 a882f7038bcec..47a14f93f8693 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -170,12 +170,18 @@ static const unsigned long exynos5x_clk_regs[] __initconst = { 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,