Received: by 10.213.65.68 with SMTP id h4csp221420imn; Tue, 20 Mar 2018 01:35:29 -0700 (PDT) X-Google-Smtp-Source: AG47ELtfEjx+clQONbDONvhov4xjy3ZCtTGrCQ22Uwcy5anfitPBnm3S2XvGEyHnoDbQzgsWMY0e X-Received: by 10.99.5.137 with SMTP id 131mr11149256pgf.99.1521534929292; Tue, 20 Mar 2018 01:35:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521534929; cv=none; d=google.com; s=arc-20160816; b=gSyLNgJ8eOtKa0buY/wqVBP5z+Xkoc0IvNLl1RQ0s7Pmg7N6Kx/7eD9aHuh+CALWTz jJIXuUxOlQamaI4QEZszJ7zPixnej/3RyG9yJaCQmy4INFyYVZYFdl7lR/Tp5aX0+M9k JaMjo+yTSqS1oohnVR+s1oepEQYzRcaJ0p+JdcNL1/nWLJLjs/asAgldYp0+HG58wuuV T4VKByGWDyUsIDPg0jtoLhBl5TR2gUaVClL2749LC7MViEp4DHaMYdhbgrwOrVn5QiO/ GVtrUvH7OnjHP2soOOUYSbBUP9NarKDRpfr2yf8hoyqUFvFSs/ryuLDDH4yLru0mxRW4 i38Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=2ejglyQ2hmVzVO7mejaZBxoOUJn62uVMjhJQ0cB1f4I=; b=uxkWGNztnOzExo95zbKsmzaPgIG8KFkMkdzk2s5AEMsjwGUKDOJ4qK/htqVvJUktYm +XzkDBVKpEOgSa1WxaKctdraSwIuDljVMgYf600l40wtV0eziepFETddsgg6iDYa4Jal D+DEnQNIqPOZ/2eOvPfsu6RjATk9sCCsKumRsY0lYWnFJmvF+1Bqi21Md9pYUEV1Y5TY XkbkGPGq9eMK7ZIwouQzFJkFAixM0QrvI7LWWrqCh4yKwtNxRs9FLnXF0n/M+miGPYc7 eD5F3KN23VyV/t3Yd7nYu+HTzOABEibstoDGSZf8ugWPEghEivm33xKHJ8BsiWCP9RoG mgYg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=Y5P1flFD; 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 g13-v6si1064238pln.61.2018.03.20.01.35.12; Tue, 20 Mar 2018 01:35:29 -0700 (PDT) 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=@cogentembedded-com.20150623.gappssmtp.com header.s=20150623 header.b=Y5P1flFD; 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 S1752099AbeCTIdo (ORCPT + 99 others); Tue, 20 Mar 2018 04:33:44 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:34072 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751774AbeCTIdk (ORCPT ); Tue, 20 Mar 2018 04:33:40 -0400 Received: by mail-lf0-f67.google.com with SMTP id l191-v6so1213805lfe.1 for ; Tue, 20 Mar 2018 01:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=2ejglyQ2hmVzVO7mejaZBxoOUJn62uVMjhJQ0cB1f4I=; b=Y5P1flFDufuKnfzjpPmFy8HL/ofS6eRUzkWj9DtAkBFmuRZzW/rD8wJz2CjtQ9k6u2 E/YlnPAJXuomJcnvHQ7epg6Nt31yaET0wV23rVzrIalGJ/dOVvLbutNoWECa6AG8Ofmh 3JOrF8ujj5I1Wqtu7S7P2S6d0gkH1/+rQSlAYKwfeGg3vRjIRsFjet3WLCVa2ZBI7roN 1f4CDhmh0QYbjh3wISFkQuqnl6FeCC5byGc/Lb1Yhfc86zItH6ElPcSRT0+Et2drnSYW LJ0nH+rkxmn03ISjjERcbeQiu5gYP03gd8oXmu9XSxnLqWM+KXaBTdiHuw8roVIDvS9K 1iBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=2ejglyQ2hmVzVO7mejaZBxoOUJn62uVMjhJQ0cB1f4I=; b=HuA2i5QydgQT0keS2/ZGJjnRNHaN06DNf2Knc+uwr+7Kv4mZ5jlLE5OlFCa+nxVN+i q9L1q5heAG1XF0aa6qh/JZUX/1/u9egxL9zSnkpOYHkGK2f3f0VPvKEVwiKCeHcjbO2a OaZ16m/az2Np5F6feCm4ardCxSvoKQXOZE7Iz/HHnzXl2veEZjbFJTE1S+wvP1I9YWcl 9AkHP7j15Wr5/2zfn6+mvb2MpkbgWUk2c2u8yF+NzFuIGKTX+siM4CfLZSwXc6D1fzDG 5hapoypOaATEYPG+eYMRczbXYkn7dNZ06AgoO5XEnUf9REx9bDMQ87wPUvIlPZpFYDrv CS7A== X-Gm-Message-State: AElRT7GgNDX+mF4wUn6yfnRFGCINl2OH82eCybxxUq6PaAFEDe8caQjC j4oppMjmZnJhaNd8V0FO6dpE7A== X-Received: by 2002:a19:3bc6:: with SMTP id d67-v6mr10588580lfl.100.1521534818586; Tue, 20 Mar 2018 01:33:38 -0700 (PDT) Received: from cobook.home (nikaet.starlink.ru. [94.141.168.29]) by smtp.gmail.com with ESMTPSA id e8-v6sm289521lfc.88.2018.03.20.01.33.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 20 Mar 2018 01:33:37 -0700 (PDT) From: Nikita Yushchenko To: Michael Turquette , Stephen Boyd , Kuninori Morimoto , Gaku Inami Cc: linux-clk@vger.kernel.org, linux-kernel@vger.kernel.org, Nikita Yushchenko Subject: [PATCH] clk: cs2000: set pm_ops in hibernate-compatible way Date: Tue, 20 Mar 2018 11:33:23 +0300 Message-Id: <20180320083323.23289-1-nikita.yoush@cogentembedded.com> X-Mailer: git-send-email 2.11.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use SET_LATE_SYSTEM_SLEEP_PM_OPS() macro instead of direct assignment to .resume_early field. This fixes initialization of CS2000 in restore from hibernation in case of kernel used to load image did not initialize CS2000 while kernel being restored had CS2000 initialized. Signed-off-by: Nikita Yushchenko --- drivers/clk/clk-cs2000-cp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/clk-cs2000-cp.c b/drivers/clk/clk-cs2000-cp.c index e8ea81c30f0c..c58019750b7e 100644 --- a/drivers/clk/clk-cs2000-cp.c +++ b/drivers/clk/clk-cs2000-cp.c @@ -549,7 +549,7 @@ static int cs2000_resume(struct device *dev) } static const struct dev_pm_ops cs2000_pm_ops = { - .resume_early = cs2000_resume, + SET_LATE_SYSTEM_SLEEP_PM_OPS(NULL, cs2000_resume) }; static struct i2c_driver cs2000_driver = { -- 2.11.0