From patchwork Wed Mar 6 13:25:12 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aisheng Dong X-Patchwork-Id: 10841107 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F26441803 for ; Wed, 6 Mar 2019 13:25:32 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DB7E12D95F for ; Wed, 6 Mar 2019 13:25:32 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CF3192D96E; Wed, 6 Mar 2019 13:25:32 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id A1C332D95F for ; Wed, 6 Mar 2019 13:25:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:In-Reply-To:References: Message-ID:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=+riG56qUV8fWCYzXs4Hw74p/vufX/n+EEaTFW/B9QPI=; b=WoUgjzO73btHIZ piVk6VTrFo6XZ5zbdyBpLZJk20rpDNaJx0b4gVskfRS7Mw74uMEWR9rX6R22om4L49CgKBVvQHbKk 8dsLlgbC5m5EFNaWgdGA8guXm04rXnyGWMkdbKohrrkUdsB1vHVLFoue4Tx5PpBJBL5FzL3UWhsKC aA9Mn+5SNDPku46vi4oUwLph3B2TXQ4Pg1qesvwwWjLLTTSf4gU83cLX0FxKFejhdakKEsYuKW9u/ 6ly0L+6j6ZGO4yZx5cwPPss35Ri9DWf4yUnRoPGb3J0QllqAmHT9qJa7KFIVeO2RWD+ST5dzuskwi DRg1/AQX8pLGCCfnY4lg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1WY2-000587-9M; Wed, 06 Mar 2019 13:25:26 +0000 Received: from mail-am5eur02on0609.outbound.protection.outlook.com ([2a01:111:f400:fe07::609] helo=EUR02-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1h1WXt-0004wD-4i for linux-arm-kernel@lists.infradead.org; Wed, 06 Mar 2019 13:25:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8qLnXgPwWUG37nyYymuZxDZbjc8/U+mMsYxMB1GSBj4=; b=lQHUd82SWH1rrdlvuf44uW/qy00TAez//NqK4PPD95Iy0Akd6Ki29H1999bHOWEaOV+4tUdPoxqv2CQJZGm2ol5laXaJwRCWp7EyjQEZC14lCmLFvn6vZLazvONXa8WuaXjF1It6zE7iGWwec/9KHpfyPXshyV9A6tob7Apui5k= Received: from AM0PR04MB4211.eurprd04.prod.outlook.com (52.134.92.158) by AM0PR04MB5345.eurprd04.prod.outlook.com (20.178.112.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1686.18; Wed, 6 Mar 2019 13:25:12 +0000 Received: from AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::50ed:d1b5:c043:3b79]) by AM0PR04MB4211.eurprd04.prod.outlook.com ([fe80::50ed:d1b5:c043:3b79%2]) with mapi id 15.20.1686.016; Wed, 6 Mar 2019 13:25:12 +0000 From: Aisheng Dong To: "linux-pm@vger.kernel.org" Subject: [PATCH 1/6] PM / Domains: Improve warn for multiple states but no governor in genpd Thread-Topic: [PATCH 1/6] PM / Domains: Improve warn for multiple states but no governor in genpd Thread-Index: AQHU1CAG9faKd1tVckmbMj06d/iqUA== Date: Wed, 6 Mar 2019 13:25:12 +0000 Message-ID: <1551878302-8146-2-git-send-email-aisheng.dong@nxp.com> References: <1551878302-8146-1-git-send-email-aisheng.dong@nxp.com> In-Reply-To: <1551878302-8146-1-git-send-email-aisheng.dong@nxp.com> Accept-Language: zh-CN, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.7.4 x-clientproxiedby: HK0P153CA0009.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::21) To AM0PR04MB4211.eurprd04.prod.outlook.com (2603:10a6:208:5b::30) authentication-results: spf=none (sender IP is ) smtp.mailfrom=aisheng.dong@nxp.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [119.31.174.66] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 51ec0e42-2259-427e-a1db-08d6a237292c x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM0PR04MB5345; x-ms-traffictypediagnostic: AM0PR04MB5345: x-microsoft-exchange-diagnostics: =?iso-8859-1?Q?1; AM0PR04MB5345; 23:xWSl7PN/9cA+FEmeYCtEqun7tAY3yP3fdOH8cEC?= =?iso-8859-1?q?fD32JOfyBu3SxaU?= =?iso-8859-1?q?kPIH6eKMZcg7DKMSKjvRSJx6OxoX5itKuF5Wz8l+P5smxrnUgGxHmGpCM2tN?= =?iso-8859-1?q?niR4NP8TsT7b5Q9OeMURBHUpyGDeZ7tEcq3L4ccuLzWuYhz0YCIC1p60vk7O?= =?iso-8859-1?q?Eqr1fWp1wgL1kmC14q0zs2alWh+Js4McYBOt1nPy/+YAjK4brDKDDAHRL2f/?= =?iso-8859-1?q?07kfxOtiSOvBzMU0zXhIYKntQN5A5ik5VsvfORwozwuUcSRRH2SWqxobYiv6?= =?iso-8859-1?q?jg5DLqC7oWBcs8wpXq3OdPt2kXQf3syRhrvI/xA5c7vI3rUEZbexzpA3E6oy?= =?iso-8859-1?q?pK+y9dieU59dmWBJ3EdfEIs7xjGC3fIbC2rgOHS/a6LFV7Tp1M/r2nxUr6LD?= =?iso-8859-1?q?bth58TzYYb1fL4OZ9FlhCTQ4FNXvD20MS43dhCmEXKxjiM5OT+ppZYqGgok9?= =?iso-8859-1?q?lM9E5s4RVmccmdf+ZlUYQzidwxP3tbvMAamOrIpfGnguauGjebW7FKURmR2M?= =?iso-8859-1?q?EAGQJ/eujWlyng58b1+PZWSWA3vh1NDQoGrqWxYFgGLRMrsZPGmtgDenmVVB?= =?iso-8859-1?q?qqAQJZMdzdc5LrwdvK9+oAAa9ZP4woAu41zhjsgAogif7KTHIecqtv7pRlha?= =?iso-8859-1?q?znnffBbRCdQ9OwhJnBJAmVR+21LVH8y67e4syy5mRmIfG0hVKP4it/f2EpAT?= =?iso-8859-1?q?+L8XV0xPEnI31FHj9RrVRC0sbbknq2gpCAw6vRUzOgvg59wNpTnRA2dvFIJE?= =?iso-8859-1?q?nafr3IuqkxvV4an2zhzeojDefesrKfXpl1CRQ0RHVOBZBec2abUOFp7p7wLk?= =?iso-8859-1?q?Oy4tL+zTXpXVchhTwCGwubUO2GlbOpsfSu9/xXQ3O5rTHVx5I+o+HNQ6nOC9?= =?iso-8859-1?q?NhQvY28rIZQDPgQhijU9moINtJxRxhhEJOYw4NP1QMmoBVS37JK92OiKJoT7?= =?iso-8859-1?q?iUVYC4iS5D96ir5JaBA8vSM+Ck4+/hqzD1P2EnDVglbat3QiL23bjDX8AKms?= =?iso-8859-1?q?EIKfYsGpXaB8CoD2JgfHWsfw15Hmy0xkj5ifFXI6/CxaS59kZiEIf+ivQDfI?= =?iso-8859-1?q?pTxBfWQU3fsMUqwVZhXpJEE8JGfcKgrse8ThxHWBcloAheLpyJRB3fD9sne5?= =?iso-8859-1?q?z8Tc4HJE8WqxQALGXBYGe4phPq/8HvpLOr7ZYqdwzUwzytK7bl5IaTMy73KX?= =?iso-8859-1?q?fY7r+gUtoWhodrp+ms8IpakTXcNfUAamDWc0M9YcHgdQvKc1z0kxl6rQ/sAg?= =?iso-8859-1?q?qE3127HNijpTroz2Fw0YbD3VXclbjskv7IKkwZ+ez3ZZjE0DllGTacsvDOtc?= =?iso-8859-1?q?RR+oB25TE=3D?= x-microsoft-antispam-prvs: x-forefront-prvs: 0968D37274 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(366004)(376002)(346002)(199004)(189003)(316002)(4326008)(44832011)(386003)(446003)(486006)(2906002)(2616005)(54906003)(476003)(11346002)(6506007)(68736007)(36756003)(52116002)(186003)(105586002)(2351001)(4744005)(14454004)(86362001)(26005)(5660300002)(106356001)(50226002)(71200400001)(71190400001)(25786009)(102836004)(8936002)(305945005)(478600001)(6916009)(6436002)(7736002)(99286004)(8676002)(66066001)(5640700003)(76176011)(256004)(14444005)(6486002)(81156014)(97736004)(3846002)(6116002)(53936002)(2501003)(81166006)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR04MB5345; H:AM0PR04MB4211.eurprd04.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: +A+jq9+CJX/BjUeN/WOeeYaiGFv+3Dzi4QuES/fhQlaRvpNYubFg+FK7tuYA0qfb/26qrqSyBG+DMITlPccNJYfEigOa4j4AYRMa49Bwn0Q/vqYp80o1Hi0fTPQy/45hIKLQn5OFw8EVJjo943j3FOxS/xv1K3sE987HrNUM+nLFlkBStrntieGm0XSwLOFpP4zguSib0kkdEwCugwHruzSYloE3lFxHrssBcm3Ro2YUpsCLy14vER3PqrZJgPnyogO8+rOzK/9YFPqSxAIXGO1hXxCJqvld0ARJut2wmhW9fxdCYzsJzATtmx8lUopOD5zAIXgD8XMg67eV6HJScjAlg9iFp+Bvxl3R/yiDO/IWjT8nHfukP4S0NvcKEp7OtW6wbtwY7IltvStHrgdEOxwJzsciRyLosGroPJU3XxI= MIME-Version: 1.0 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51ec0e42-2259-427e-a1db-08d6a237292c X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Mar 2019 13:25:12.1818 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR04MB5345 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190306_052517_186830_6FE7DD96 X-CRM114-Status: GOOD ( 12.07 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Aisheng Dong , "ulf.hansson@linaro.org" , "dongas86@gmail.com" , "khilman@kernel.org" , "rjw@rjwysocki.net" , dl-linux-imx , "linux-arm-kernel@lists.infradead.org" Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP It's possible a PM domain defines only one state and it does not need a governor to work. For such case, a warning actually is not necessary. Signed-off-by: Dong Aisheng Reviewed-by: Ulf Hansson --- drivers/base/power/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 2c334c0..394f9da 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -1766,7 +1766,7 @@ int pm_genpd_init(struct generic_pm_domain *genpd, ret = genpd_set_default_power_state(genpd); if (ret) return ret; - } else if (!gov) { + } else if (!gov && genpd->state_count > 1) { pr_warn("%s : no governor for states\n", genpd->name); }