Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3392582ybp; Sun, 6 Oct 2019 10:56:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqwANMvS5qtJNo0rKyNdRZGCjDtOfdnjd0taJleEqUrQ0bPX1MavfjA+0IYEyTtkmTuIip4R X-Received: by 2002:a17:906:4910:: with SMTP id b16mr20019720ejq.301.1570384602189; Sun, 06 Oct 2019 10:56:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570384602; cv=none; d=google.com; s=arc-20160816; b=x5y4cYjtrh+gmIHDvjH/hA0qjDN3L9O0bt+jK99vwKJArh52Jm4tI3LuCb3XeIwtSK AM2QESC3yv0Q3JGfU8Yl//3qr16ubPpGiM+Dy8d6EBnaLfdOta6ELudsCJjdvIxBBH7i QsfbmbXHmQPNvGcwNjODBX64uRVkNH75n4WIlTMLXK7bkQk2SUZ5trXG3PfmgOodjXIn DQPOe+WE8XW5oqz0p1b6B+RFySmMlN0NJDrn//9NmaNgjdW8Km1e3qff9I3DQbsZ52S9 5jqowiQmqxl5np1saJ5ZZxQDD9RSFzU9FQu7XxTAvv6AIbZ4aQjeLXrJQ1DjnBz39DWb UHHw== 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=QPad1P/jbTj6r31/hc+oqI5EUuLzCx2c2jnjQJv2Q8Q=; b=DHw+XT/x0updf7GVSD5Vhj4tvGSyGqIBvoFnSYMuqUcLWBhAGJqtujnuJtBaTl5qlx ffXFqEqLJqQZr0/frGk5lWpWN9asXFWS6UObQdK6FjoNYSDR0+MSe92rYIdo1dqauq10 mnsjM0clFsbb0U44KoyEPWVNuD+UVxPGeGcY12lwRxx6YHTB4g8om2uKQrBDdsCs4HoN onNBkDY2IvWTn2XNFoe2fkdMDCrNr4nWu7btove9UB4f99xwmVOjzXtdBDidvAohOVHo K8INWYWqjDWPMV3xtSn4F5KG+O9OsMeRFiNX6+qelAxu++CcdBusb+DI+0mttgl6ViPr 9jKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=DUQjs48o; 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 m12si7449069edc.50.2019.10.06.10.56.18; Sun, 06 Oct 2019 10:56:42 -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=@kernel.org header.s=default header.b=DUQjs48o; 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 S1730182AbfJFRfm (ORCPT + 99 others); Sun, 6 Oct 2019 13:35:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:34298 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730166AbfJFRfj (ORCPT ); Sun, 6 Oct 2019 13:35:39 -0400 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 C03EA2080F; Sun, 6 Oct 2019 17:35:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570383338; bh=7yTV10pYVwJps/ArPOnO0ZAl1jLzy7XzX1J4ZuIe5xs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=DUQjs48oo+OQRAVt7Ymaoz7hNd/6NRo2ese+sqpqf5UCcg+9MSh//5JuLIETLbTY2 /J1ulxdcWjSL3v/fQaRpBElFGEDeq6xZDydhBR000QadEKueXqCyrhrK04EfjfAD6f Xked3B6BgMK/BJ8ghegmN5/PismKZpPVDjtglR6s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Geert Uytterhoeven , Simon Horman , Ulf Hansson , Sasha Levin Subject: [PATCH 5.2 066/137] clk: renesas: mstp: Set GENPD_FLAG_ALWAYS_ON for clock domain Date: Sun, 6 Oct 2019 19:20:50 +0200 Message-Id: <20191006171214.598362308@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191006171209.403038733@linuxfoundation.org> References: <20191006171209.403038733@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Geert Uytterhoeven [ Upstream commit a459a184c978ca9ad538aab93aafdde873953f30 ] The CPG/MSTP Clock Domain driver does not implement the generic_pm_domain.power_{on,off}() callbacks, as the domain itself cannot be powered down. Hence the domain should be marked as always-on by setting the GENPD_FLAG_ALWAYS_ON flag, to prevent the core PM Domain code from considering it for power-off, and doing unnessary processing. This also gets rid of a boot warning when the Clock Domain contains an IRQ-safe device, e.g. on RZ/A1: sh_mtu2 fcff0000.timer: PM domain cpg_clocks will not be powered off Signed-off-by: Geert Uytterhoeven Reviewed-by: Simon Horman Reviewed-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/clk/renesas/clk-mstp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c index 92ece221b0d44..7f156cf1d7a64 100644 --- a/drivers/clk/renesas/clk-mstp.c +++ b/drivers/clk/renesas/clk-mstp.c @@ -338,7 +338,8 @@ void __init cpg_mstp_add_clk_domain(struct device_node *np) return; pd->name = np->name; - pd->flags = GENPD_FLAG_PM_CLK | GENPD_FLAG_ACTIVE_WAKEUP; + pd->flags = GENPD_FLAG_PM_CLK | GENPD_FLAG_ALWAYS_ON | + GENPD_FLAG_ACTIVE_WAKEUP; pd->attach_dev = cpg_mstp_attach_dev; pd->detach_dev = cpg_mstp_detach_dev; pm_genpd_init(pd, &pm_domain_always_on_gov, false); -- 2.20.1