From patchwork Mon Apr 18 07:59:32 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jia Hongtao X-Patchwork-Id: 8869201 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BD8779F39D for ; Mon, 18 Apr 2016 09:42:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DE4D02010C for ; Mon, 18 Apr 2016 09:42:06 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id CF5E920117 for ; Mon, 18 Apr 2016 09:42:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751998AbcDRJly (ORCPT ); Mon, 18 Apr 2016 05:41:54 -0400 Received: from mail-by2on0064.outbound.protection.outlook.com ([207.46.100.64]:20026 "EHLO na01-by2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751863AbcDRJlw (ORCPT ); Mon, 18 Apr 2016 05:41:52 -0400 Received: from CH1PR03CA003.namprd03.prod.outlook.com (10.255.156.148) by BN3PR0301MB1220.namprd03.prod.outlook.com (10.161.207.20) with Microsoft SMTP Server (TLS) id 15.1.453.26; Mon, 18 Apr 2016 08:08:49 +0000 Received: from BN1BFFO11FD051.protection.gbl (10.255.156.132) by CH1PR03CA003.outlook.office365.com (10.255.156.148) with Microsoft SMTP Server (TLS) id 15.1.466.19 via Frontend Transport; Mon, 18 Apr 2016 08:08:48 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD051.mail.protection.outlook.com (10.58.145.6) with Microsoft SMTP Server (TLS) id 15.1.472.8 via Frontend Transport; Mon, 18 Apr 2016 08:08:48 +0000 Received: from titan.ap.freescale.net ([10.192.208.233]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u3I88fJ3025868; Mon, 18 Apr 2016 01:08:45 -0700 From: Jia Hongtao To: , CC: , , , Subject: [PATCH 2/2] cpufreq: qoriq: Don't show cooling device messages if THERMAL_OF undefined Date: Mon, 18 Apr 2016 15:59:32 +0800 Message-ID: <1460966372-4877-2-git-send-email-hongtao.jia@nxp.com> X-Mailer: git-send-email 2.1.0.27.g96db324 In-Reply-To: <1460966372-4877-1-git-send-email-hongtao.jia@nxp.com> References: <1460966372-4877-1-git-send-email-hongtao.jia@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131054405284453309; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(81166005)(5003940100001)(2950100001)(229853001)(106466001)(104016004)(5001770100001)(15650500001)(105606002)(6806005)(77096005)(76176999)(36756003)(5008740100001)(1220700001)(48376002)(1096002)(50986999)(50466002)(33646002)(19580405001)(19580395003)(11100500001)(4326007)(50226001)(47776003)(92566002)(2906002)(586003)(86362001)(189998001)(87936001)(85426001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0301MB1220; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD051; 1:1ZFV6X9p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wuZO8ZEzlg9de/61qmS+1zkh4z//FTViuPEHrpHFQP8dAaystMCWNQ/ylopl018V3UVc2POZLGrzBinrWR1DMxJvfXdIzQdOsjIn8M1tDKvnEWGsMxDjZZeMITWSBJwbB8F9dL0uaGm7BAncQjCwsTeh/4SkEaWn4= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BN3PR0301MB1220; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1220; 25:SD/dAhBVNFmRjVNhPxo2pfDJjwx+MxR2nlOmau39ICCH5TeR4Pv6+WNrgJ2wLkJdWeRJ8q23HRhrQipZTIDEoCZx1R7pdLnL//u96GotcSrFXvwncI+U+h9MC7RGDGDae0sq7w4Fu8ayiupnaSq8Ks283qht7sWN2vMTAX3i7ToYHhmWIvPzsY3yEh7vA9vs0cbl7Lwd9voiNdAKlUnXprxxPZOfq/RJnfK9hBlgkif9jm9vGiN6cpiIJw8WAQB6Penv/Rr4hpLwl03/Od3tNjHmcxp4Bdfn/wC1gXubCZtDPGX1dhxIAwa1PsLIZWsVW7npYL5uLIPHUUZB3KmOkmiT7iBacE75GKq7Cg9/SQr6wPFvDKmNDQ9W55AMYRHR4q8di/qLVMS2TxGE2rYQNumiQYJQeB7hCGO4QLPENpmjBR5OimzERMaKs8xSRHB9TtzfDwo+0+XyQg7xv/6U7oKw5ucWh9iLxBlIP454k1boCgEcUDaXN88kLfI4IplLAQjY5iEMdJvyoFPScdq716LS4W4AKfCTQME5VWUGmSqjEfGn4RfJNb8+mCokz+JI7E8r20e8TLAUseXGWVSxZGHGvPmTslLGvH0Se+sROwus0nToRQ00NVUhoaOHClhNx3flFH1DfMCHTiDdROPfsY/nPdX06PrSSI67tKqRnwM= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13017025)(13018025)(5005006)(8121501046)(10201501046)(3002001)(6055026); SRVR:BN3PR0301MB1220; BCL:0; PCL:0; RULEID:(400006); SRVR:BN3PR0301MB1220; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1220; 4:BIv14AjbvxNwqS5BRWaoYptLtHn2ElyUdlnrSaNEeD6yu3QFUDTwRM/2XzASf9xRAmPPcFB7Xjf7ujcLSt0zT/iQ+UfpHBr5rbekJG3jEIWv/rt3lzRTYvOrUyVZNWd1Ee8ctL5X/Adfe4xR7L7Tb0EUaT3LGtMM/DGDc5Gir3TfeiH87CMoHaQwu4SzWOlyetqehlZjtjMjtoMtNsGs8EuYDemPfSRndct/pCXLSQuB+YZe2b9Xe2O2lGDb0tuYL8drr7lz15PWBECe9ElmpRT76p1vDHa9da8J+2C4Q6WvCjdK3xmk69WwH7rpgS5ttEcMU6OcF5zrz7kHE5jxtX24IA/AC6+M3R4UnjSokzGq25ITlw7Ay+CnAbm782mUqfP0ngBIPPXybwbrrOdW/0uGAXE0tUc5SVVGlwaBWCHRQPgWP9/UU7Cb1SqonV3zMsjgpvAOYFOOPJtN851VYFxG0LUGF1XLZDkEI2wSHvY= X-Forefront-PRVS: 0916FC3A18 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0301MB1220; 23:eN6m4FiFgpW1J2uQ3SgaHCrcNC3prVySu//0g5D?= =?us-ascii?Q?5KM+VKC8VcFc9IkhuPV3ktg8KW8b5Qopb5sbgUfy4SNChQaMsJZ88iEFFORN?= =?us-ascii?Q?hrGqG6HcED4Nm9AbTU6ipY55oQrxfLoRgEvcs8KsVgZTGQ1MVkM3+svoe2ek?= =?us-ascii?Q?L96TduBTwPTCKE1VGAxoijC2vuAE4uSh4afAwi8M7J9NvHBiQmwA6cVVrOGk?= =?us-ascii?Q?NQIDNR5Aa8rJixRmDLbB8jcp1HtX88sonQhf/k5u85Hrs62XDfGGQQAszSRL?= =?us-ascii?Q?/v2UqNJkVi9HZJ3NeAI9t+6YKkI8XNQZ+8M7h8ZzAv+K7plhw4E8/U5naJA0?= =?us-ascii?Q?b8X/YsyhID/xH/7HYMo+2WWWNmMQVsHZUn/S8N6MGbjwj99Eyn4nqFCmASzA?= =?us-ascii?Q?NX3qiPV4jQN9YlSHIpkQuyiIUtRF//6ExoRGviT8gui7//BsounsmHJ1Wl0i?= =?us-ascii?Q?noFeZHL6BsSCb/PoH61/4Dkr9iV8iV/s6Ib8FSKpvuWrl35oM/lOl9qzDzRn?= =?us-ascii?Q?nLVKtgyN9WD0KOaGG4x0E+ases/j9EM3bi8ltebzm/l/cX4jZg81wL7f97mO?= =?us-ascii?Q?1YnYw28ne4+naND0QCTlWg9ejE80pYuOHrZOi/9sWcoVwb2ACNbzRSnD5xfM?= =?us-ascii?Q?ItnYkMpJ8igRXjW1diQgqslp2DCQe7ozU5a1ENok7pNlxdITMmkZMBpCnM6c?= =?us-ascii?Q?d/LmsiiySyRmuNKow3aklB0JqnzBgpWFmglrEhs8S9cFLZSUm8NHjXxVKLBj?= =?us-ascii?Q?NccnIs2e0PKVj0DNc63ftxK9Gk8biK4tZtwffYSVxoGqn9EEjdrfmys9qKmR?= =?us-ascii?Q?ekflxmioHzpzWHNz6Xn8pmebuin6YleymLFtXAYkzuG1ImLyuku6Y1tk7nFz?= =?us-ascii?Q?4rTvrn+3NUer1A8hXZsZxXrIsEHxvFvPsSZqZdoseNSlo0oaBpwknWEahSpc?= =?us-ascii?Q?kfYvTdtdvoDpdxuk4EWgmWjRhgo6Dbam/jkeP4pL6l/9MHTokjoMXFk3oSDn?= =?us-ascii?Q?ITJYXrDX36BYj5BPzUjsu0auEVp5+dKH9DqoffAY92bAxB3VesyRBcAdOy7V?= =?us-ascii?Q?twfRZPbm7Du1JTL76QYemLvWDgSvD?= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0301MB1220; 5:vH/K5cLxPqt6uJVuGNro404Hjl+CKsw6t5inyTtI/aPFTY4wtbK0gpMP8kwC8YQYjzt4MTDiQ934lBvvSlWJa2KZeIFeoMS30amvBjpZuykyLeXPXGCX132jr3RaFD7LTu9zAJsMolmhnB5txwwCSR4/qfGbiL0viCX30UbsWZs=; 24:d0Br+U4E7uJIo/Blvfd7B0TSl5AMCS83CEPeq2zjXI75wIODQTN0kp4ffj3k2zZ0Mf484I4QSwY9ASBzMsOzT/8wZyO02HTNtuXv+KxeOb8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Apr 2016 08:08:48.2581 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0301MB1220 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP When THERMAL_OF is undefined the cooling device messages should not be shown. -ENOSYS is returned from of_cpufreq_cooling_register() when THERMAL_OF is undefined. Signed-off-by: Jia Hongtao Acked-by: Viresh Kumar --- drivers/cpufreq/qoriq-cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/qoriq-cpufreq.c b/drivers/cpufreq/qoriq-cpufreq.c index 1c2fdc1..ff8da83 100644 --- a/drivers/cpufreq/qoriq-cpufreq.c +++ b/drivers/cpufreq/qoriq-cpufreq.c @@ -340,8 +340,8 @@ static void qoriq_cpufreq_ready(struct cpufreq_policy *policy) cpud->cdev = of_cpufreq_cooling_register(np, policy->related_cpus); - if (IS_ERR(cpud->cdev)) { - pr_err("Failed to register cooling device cpu%d: %ld\n", + if (IS_ERR(cpud->cdev) && PTR_ERR(cpud->cdev) != -ENOSYS) { + pr_err("cpu%d is not running as cooling device: %ld\n", policy->cpu, PTR_ERR(cpud->cdev)); cpud->cdev = NULL;