From patchwork Tue Dec 3 22:34:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180743 Delivered-To: patch@linaro.org Received: by 2002:a92:3001:0:0:0:0:0 with SMTP id x1csp2146544ile; Tue, 3 Dec 2019 14:39:57 -0800 (PST) X-Google-Smtp-Source: APXvYqyYS5TJBwyqfvpJtqIJ9vujxWr6PdtR19HjObkEjOOs8YoD3rKH7LwRLmHYAsG2KcyQmo5n X-Received: by 2002:aca:4b93:: with SMTP id y141mr329451oia.132.1575412797272; Tue, 03 Dec 2019 14:39:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575412797; cv=none; d=google.com; s=arc-20160816; b=NQyYuOuIGUYUAcds6P26UsQR2AReqP54QuDJTjlE1QLhPf42lEGV5nlNLOw+0Nup+4 lMvHM+TuOBSGAA4hBuvxi0qhwY0JJzSUAyHCymb1Qw1f/cOaJXqZ7DWkWLMY/23E/djJ xwCHroBUwMcm/Ng/sdAGxiMyBVGG2q9ii0GuLWEc/n0fr3EBsvsRmmr/R9xV70cfU7BZ JboqR+e06Iun5lZYXW2/Z4TUsLoViyvRaCijvqR2nIB5ENurgodUe9WaWT7sMLJwXlio PvrWuEEZrNIICfJQ4acFuJzDpUbgpuU8iGoQEn8413YK8m+KYkZtrnejqI/1KoR826Fs GpGg== 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=KfegSuHDb/zdCvVqZn7PuL0HKE2xvBjADlOIXXqTQlE=; b=tXDbC+xxhsViEN7q+4qAhPz7djuZpiYlSC6509m4/lO4vPxCBUFD8pflDwGPlggdti Mj2H4mYHnNbQnIqEgLzLCsIKempMWN9SDxW7yxX0rqKb16QO08qKgWob6Nw1WfVVupKE aHZJEwDa0IfEns7nZZ8UXReAcEwPVxzdt3UPmWHQdpIaOQw1QTIX/wUxoPpqeEiuuhuC xR8L7ngewF66jurrSMH2V278RHkRWDOEFYFtTh8jBZGt5GJyhPjJZlwVmE0imcj6VHcm e9SVlgphOhqw8p6ndVww3UMJBprIp0pcHrmoOWeKqwi9ug7tviyB3gI6yePGMKI4lj0s hGUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MSPNWdEd; 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 l9si1559832otn.301.2019.12.03.14.39.57; Tue, 03 Dec 2019 14:39:57 -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=MSPNWdEd; 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 S1727741AbfLCWjz (ORCPT + 27 others); Tue, 3 Dec 2019 17:39:55 -0500 Received: from mail.kernel.org ([198.145.29.99]:50876 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727963AbfLCWjw (ORCPT ); Tue, 3 Dec 2019 17:39:52 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.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 8B39D20862; Tue, 3 Dec 2019 22:39:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1575412792; bh=6xyK8o/gOgI9IfBK/zYzjcmDxtLo1/v0Rv2IftUjTrg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MSPNWdEdUADByHjRADBvQjVs6zURtZxb8EiNfU5mw/SOM375y/dxAjuuBYUaT0yQs N1yEpLiAqIJxSq5MDsEHZ4U8zhrc0anutmFzCBRJFLY3WMKt9eeWrxrV7v5CCXK0RB 7BUdyHI0sn9Fczz98UEshzQidFXKhoAzbF8i+NAw= 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 5.3 019/135] clk: samsung: exynos5420: Preserve PLL configuration during suspend/resume Date: Tue, 3 Dec 2019 23:34:19 +0100 Message-Id: <20191203213009.670464810@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191203213005.828543156@linuxfoundation.org> References: <20191203213005.828543156@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 dfa862d55246e..31466cd1842f8 100644 --- a/drivers/clk/samsung/clk-exynos5420.c +++ b/drivers/clk/samsung/clk-exynos5420.c @@ -165,12 +165,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,