From patchwork Fri Nov 22 10:28:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg KH X-Patchwork-Id: 180009 Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp45576ilf; Fri, 22 Nov 2019 03:01:19 -0800 (PST) X-Google-Smtp-Source: APXvYqz3lmDqrNzy0qTK20UtjlIoDBbMFSDMi2XFSry30mBE1yXHPBUaOxretUcZ+gCcjDTpdDHt X-Received: by 2002:aa7:d652:: with SMTP id v18mr288667edr.184.1574420479312; Fri, 22 Nov 2019 03:01:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574420479; cv=none; d=google.com; s=arc-20160816; b=SGDR6ZyO03Ia7u0KtKTrXuaHF0H3TsS1ea1l2D3cZvWgE3z+CPsOhAtCDOrokhYdjJ jvsJMwThZ9K975togdy3/UJIVUN0ju8pJePoAWFZ6dA8qUPmdh3IC3BZEX2RqoXsBGtQ 4yyGSKW5SyMbVdQQskpw8ZfstdS5aQw1aH9MqDkbumqj+knlLq68yRJXQq9LSqs7d76L vJ1d7Wshb4+2SriE8sIDjojBYeb34js2rMetSpawbW9XkUWNtwnKATfrUPddFAmKl6ca wbdUtSqgHAZwdWCdFZ1+qHMINgNT6Ln44oMCwG1OEyu9h8ZBr+njMjLMgdKd1wgddZQZ 73bA== 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=p4N49LKcLbeeN4z0kbve/pRWkCGAFfXQRBIHElvLPJE=; b=A1MUL1cp3XLLoRrtWVj5Xh5GJnR7qeB3/Nkju3GwEOM4rqmb0/s6+VBTbJKlLKgcJm 25qG7DqVkZfDGEV2F7wQPu+sv13LAM9GyPCJvnCnrAkowgbfd4Y8YUA/0pP/U0rp/cpf yGgi60oADyHx3vZe1cyo9A9LSwmH7eU+sFa1whEmnBWbL0s8bJpHvqIp+IAgUnwcPWVu stFPQup/dFuitcEZ+MpJrkRS/yw6rWgHdtehFYZrMHwZV76Xj1gzk4Kve/Ed9z6igM4Y FiZdl7/AIlzhMBLwJf9i8HwgEQVXeYKGSIARNiw4d/v5m5zKKaw0Ug+0wAME5qUTmJ50 gEiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=lJYQaQZb; 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 z15si3877630eju.310.2019.11.22.03.01.18; Fri, 22 Nov 2019 03:01:19 -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=lJYQaQZb; 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 S1731163AbfKVLBR (ORCPT + 26 others); Fri, 22 Nov 2019 06:01:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:54048 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731143AbfKVLBP (ORCPT ); Fri, 22 Nov 2019 06:01:15 -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 B3E8820706; Fri, 22 Nov 2019 11:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1574420475; bh=t/kBS8ZyburwAEd/tWcHp44RfmpPV30AzLZAShq5ZZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lJYQaQZbRKt9Aj1Km/ZlLRQdqoJdBW/dWSwTIaQkBChP/IlUvZMTZkQO2PnE7xZzk h61LrDN4SeAhMIM2v9Qmb9L1UiyVSZbbOc3zFbeFLZfRRT8BGFR1X3Odjz9nrNqgg0 ASAwKO688ne0PZMA7oSDQ86nm+cwvnLqCjFEuxuY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Marek Szyprowski , Chanwoo Choi , Krzysztof Kozlowski , Sylwester Nawrocki , Sasha Levin Subject: [PATCH 4.19 117/220] clk: samsung: Use NOIRQ stage for Exynos5433 clocks suspend/resume Date: Fri, 22 Nov 2019 11:28:02 +0100 Message-Id: <20191122100921.147300962@linuxfoundation.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191122100912.732983531@linuxfoundation.org> References: <20191122100912.732983531@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 70da9ee80228e6d98fd68e3c1db124c4461d283c ] SoC clock drivers should suspend after every other drivers in the system, which are using clocks and resume before them. The last stage for calling suspend device callbacks is NOIRQ stage and there exists driver, which use that state (dwmmc-exynos), so Exynos5433 clocks driver should also use it. During the same stage, clocks driver will be always suspended after its clients as a direct result of proper device probe order (deferred probe reorders the suspend call sequence). Signed-off-by: Marek Szyprowski Acked-by: Chanwoo Choi Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sylwester Nawrocki Signed-off-by: Sasha Levin --- drivers/clk/samsung/clk-exynos5433.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/drivers/clk/samsung/clk-exynos5433.c b/drivers/clk/samsung/clk-exynos5433.c index 162de44df099b..426980514e679 100644 --- a/drivers/clk/samsung/clk-exynos5433.c +++ b/drivers/clk/samsung/clk-exynos5433.c @@ -5630,7 +5630,7 @@ static const struct of_device_id exynos5433_cmu_of_match[] = { static const struct dev_pm_ops exynos5433_cmu_pm_ops = { SET_RUNTIME_PM_OPS(exynos5433_cmu_suspend, exynos5433_cmu_resume, NULL) - SET_LATE_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, + SET_NOIRQ_SYSTEM_SLEEP_PM_OPS(pm_runtime_force_suspend, pm_runtime_force_resume) };