From patchwork Mon Mar 20 10:19:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 95490 Delivered-To: patches@linaro.org Received: by 10.182.3.34 with SMTP id 2csp1298387obz; Mon, 20 Mar 2017 03:19:34 -0700 (PDT) X-Received: by 10.46.83.15 with SMTP id h15mr9296346ljb.28.1490005174042; Mon, 20 Mar 2017 03:19:34 -0700 (PDT) Return-Path: Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com. [2a00:1450:4010:c07::232]) by mx.google.com with ESMTPS id s16si2911238ljd.147.2017.03.20.03.19.33 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Mar 2017 03:19:33 -0700 (PDT) Received-SPF: pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) client-ip=2a00:1450:4010:c07::232; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org; spf=pass (google.com: domain of ulf.hansson@linaro.org designates 2a00:1450:4010:c07::232 as permitted sender) smtp.mailfrom=ulf.hansson@linaro.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: by mail-lf0-x232.google.com with SMTP id y193so53267287lfd.3 for ; Mon, 20 Mar 2017 03:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=6NfoKX5WopNUjqSVUg5rvOKl+nN/c3iiMHvRrLbIk1Y=; b=fFnE5prDR+ne3+w3qLN6xY33A4Sm7BsJEbMclAOMDMtclku6lRi9ie4NdzJM91PW9V aTikYN1ji78wGndYG8rS3iMMYLFdbN0UiiFNgD3r2BS25zlkQSPBuAggfdilhISxcTYy D+p6OFewxyjLpL8obXQx1q03I0IQ9AlkYtm6k= 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=6NfoKX5WopNUjqSVUg5rvOKl+nN/c3iiMHvRrLbIk1Y=; b=H65X/iUmNSPw158BysZLezxyJ3BlZS9fwVu3jky+AOdZTS84mJhz8dNMu/F8rk7sCz gUV9+ecyrHJgOd9oH57WuZ7l7vZ89UDsVUZ+zKVKlypE0XsslAPrqRNVHrTvMyjD3UPi oWtVNm0JeHP/LcawWp+gHA0KU+g4d/Hz33pVsHKq0ItIkV9iY4s4tUFpFnQ1TebjckXs 5pHSp55ihtxaTHKFrRgrcctyKvB1dEVch+GuJT6PIOwBUHBQtREy3fr2KA5v7cqCmG/k pvC2a9MUZSjoai1qV344e9kjoruuHZHsF8rUc6i4J82en0aDy4iAZkbB4FPPRmdvY/f1 CfJg== X-Gm-Message-State: AFeK/H0n7Eqt2RQiELjDw6Xa3AfJjWSlufvD6lLTrr8rbiyVileRp3/wfBu2PXbuZhedhCkCPec= X-Received: by 10.46.69.87 with SMTP id s84mr9046235lja.69.1490005173527; Mon, 20 Mar 2017 03:19:33 -0700 (PDT) Return-Path: Received: from uffe-XPS-13-9360.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id c5sm223825lfk.51.2017.03.20.03.19.32 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Mar 2017 03:19:32 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , Ulf Hansson , linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Kevin Hilman , Geert Uytterhoeven , Lina Iyer , Jon Hunter , Marek Szyprowski , Viresh Kumar Subject: [PATCH 0/4] PM / Domains: Add support for always on PM domains in genpd Date: Mon, 20 Mar 2017 11:19:19 +0100 Message-Id: <1490005163-28633-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 The current method to implement an always on PM domain by users of genpd, consists of returning -EBUSY from their ->power_off() callback. This approach is suboptimal as genpd is required to follow the regular execution path of its power off sequence, which ends by invoking the ->power_off() callback. To enable genpd to early abort the power off sequence for always on PM domains, it needs static information about these configurations. Therefore this series invents add new genpd configuration flag, GENPD_FLAG_ALWAYS_ON, which allow users to explicity tell genpd about these kind of PM domains. Some additonal changes, which are related this context, are also folded in as a part of the series. Ulf Hansson (4): PM / Domains: Clean up code validating genpd's status PM / Domains: Enable users of genpd to specify always on PM domains PM / Domains: Respect errors from genpd's ->power_off() callback PM / Domains: Don't warn about IRQ safe device for an always on PM domain drivers/base/power/domain.c | 42 ++++++++++++++++++++++++++++-------------- include/linux/pm_domain.h | 1 + 2 files changed, 29 insertions(+), 14 deletions(-) -- 2.7.4 Reviewed-by: Kevin Hilman