From patchwork Fri Mar 3 11:32:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 9602597 X-Patchwork-Delegate: geert@linux-m68k.org Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2F94F604E2 for ; Fri, 3 Mar 2017 11:43:34 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2105628112 for ; Fri, 3 Mar 2017 11:43:34 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1551228601; Fri, 3 Mar 2017 11:43:34 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BDF5E285D2 for ; Fri, 3 Mar 2017 11:43:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751639AbdCCLm5 (ORCPT ); Fri, 3 Mar 2017 06:42:57 -0500 Received: from relmlor4.renesas.com ([210.160.252.174]:40139 "EHLO relmlie3.idc.renesas.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751976AbdCCLmU (ORCPT ); Fri, 3 Mar 2017 06:42:20 -0500 Received: from unknown (HELO relmlir2.idc.renesas.com) ([10.200.68.152]) by relmlie3.idc.renesas.com with ESMTP; 03 Mar 2017 20:35:57 +0900 Received: from relmlac1.idc.renesas.com (relmlac1.idc.renesas.com [10.200.69.21]) by relmlir2.idc.renesas.com (Postfix) with ESMTP id AE554701D4; Fri, 3 Mar 2017 20:35:57 +0900 (JST) Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 9785180030; Fri, 3 Mar 2017 20:35:57 +0900 (JST) Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 8F8D18002F; Fri, 3 Mar 2017 20:35:57 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id WAD31125; Fri, 3 Mar 2017 20:35:57 +0900 X-IronPort-AV: E=Sophos;i="5.35,236,1483974000"; d="scan'208";a="236438753" Received: from mail-sg2apc01lp0239.outbound.protection.outlook.com (HELO APC01-SG2-obe.outbound.protection.outlook.com) ([65.55.88.239]) by relmlii2.idc.renesas.com with ESMTP/TLS/AES256-SHA256; 03 Mar 2017 20:35:57 +0900 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesasgroup.onmicrosoft.com; s=selector1-renesas-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=E25J4pv0KwEDBa/NxOw/5pG5zEk/ozdUKJIgVDT8Txs=; b=Fb9SBgmfPo7khOXRtJD1vb07eSZ4yUSt2wSKHLQ61/2Tkb88vcCKLfsnou/Wwat2x9siE6duIbfenzl/wRsBizyjhm5JnDiGA0CAzMLeWjoNHuuEEBF9JTmToY++FO4Dts9ifZnT1FvKpvuHt5qhRq76WmSt+MctpZkrL1q/Kyg= Authentication-Results: ti.com; dkim=none (message not signed) header.d=none; ti.com; dmarc=none action=none header.from=renesas.com; Received: from localhost.localdomain (211.11.155.144) by SG2PR06MB1647.apcprd06.prod.outlook.com (10.167.82.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 11:35:54 +0000 From: Yoshihiro Shimoda To: CC: , , , Yoshihiro Shimoda Subject: [PATCH] phy: core: fix the condition to enable pm_runtime in phy_create() Date: Fri, 3 Mar 2017 20:32:46 +0900 Message-ID: <1488540814-21232-1-git-send-email-yoshihiro.shimoda.uh@renesas.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0049.jpnprd01.prod.outlook.com (10.164.162.31) To SG2PR06MB1647.apcprd06.prod.outlook.com (10.167.82.17) X-MS-Office365-Filtering-Correlation-Id: 587b5e58-d597-49d1-d5df-08d462297436 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:SG2PR06MB1647; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1647; 3:QkCxA7EARqBTIU/tSVC25yuvDmU4fi5kGirc+SQl0bPIzPsoqHpuFf6Htjba9X99aBlK33ueShPtplyjzVHXjGlzUdaJhtNodOhBNKBTKMYPRVWRbgWVXcvLpUoOsp3Wfp63PzTT/HRWsX5VMtLDSoH7DIONX5KkFAyXjSHPpwZ+j4nh6BuyVP1siNENp1VOo4uWtJBeMH106EwPMOVh+ycfLS8Y+QEWUGZ0HslzyfcNZG20rcMyKdwHBsAVSjstb+scioa1wU14+f9Gwpx0bs14N/G1A9O5af1kKuBTcSM=; 25:GXhyH5IoEEN9f+U9wxMRBZAfvNQFRW+JfFnRJZq3WdZ3z/Zt76y3vhhV1TiSrPrfwywAedyOiNT9ktvgKQMNfg4y4KKT+nKarR7Zrb2goQoyUSgyzsJ6yRMUyKMZgx2goHmOnh+D/Sa799vIy4uSep8kLhoQRZqXbNYyEupyPa89u6CyoifTttCAGckvcM0kSGtRMuOMSxGYGVu14AzW8iXKCEgbbi3UAhCgOnLc079nloPvYvG45CCFO2cqRLN644huMJ0DtiNlpfbtNsIl8Gfd7Am/yvuyovkxqgS0Khh0lz209cceq+S1Pm93uvdA0u9H6DeVMuzjrcS08dLDrVDALXKStqSyg7MO7Mi4/uDEXWmnP4mpBc8DIXwACNTsccmBiDXxWTeXNUpnV1eGFZpzrnlZeSJZnHtCSOEKRad6xukp3A+L1ohkOGEcKmzyRxfb7wDerK9JFTrr8MVtRQ== X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1647; 31:wmOYZWV06B3kVZaF5ZRRetmv8kDpzurNsuyRojiRqXirjotBZScpHlExo4owSumQNx1GBlQxwvQHvul0aqfzo8n2r5NFSBpERHuUNz9cBht9ThFUC7qghVIRHN8OYyFJqGqTPow1AyTNk0mBdO6UqV3LZ/48Ne+9YFTJ0759x5Red2oCBi5FjIrdrR4F/u783iuy9NXMtQHJxqJVLD+bhIquNWNNcoFYxDiVDjJxlbVAiVn4JbUtfMJCAbWWvYe6; 20:Rj72QrS1I9N2/y9h+oM9dCBqHvqr/jVWgZq7azkZHvmtgL9abC5tfjepytP1Y115v0JST5BbJavBNxKb9WpDSNI8cwd31vUj8OGtAWfSzBmLzJWAJN3hxqL/o9ls0rs8bg0uXfoZuRnQUFaJpD7mwgFszgLIfUI7L2S5wPEibYX4YUM8HZM/VYkj5br9ttoCBnpEDBxoAHe0N5AXKRyL46V/D/4vXjxQAV+KPLJQVOSXi+GZTE4/5/oTnmXvRF36grRCTaSyalx5AXDEVvHhGji8zKnVIN797ZciP3QMw5uIkh4kKO3o46sgbACiNWhb4MBTrQABLvH8i9YMe9Ga4R1Xwe3uyBLpa3mEjyYFDDbZUxxkKqU3lLSENuxSEGquzvFF67H5qVleX8lcCLmCR8jRVBxp/MQAVkEllvwgKuAa5AY06yLKgZbDqJcpN/Kd+iU7y3H9aNqjZNYY2E+86tmbFe3/5K3UV8H+PkuSBUxGEyacjvXAyPgi9nJ8vUZV X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6041248)(20161123562025)(20161123564025)(20161123558025)(20161123555025)(20161123560025)(6072148); SRVR:SG2PR06MB1647; BCL:0; PCL:0; RULEID:; SRVR:SG2PR06MB1647; X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1647; 4:gRv1CHG84grW7It/vbQcSLfq7ZXt2u316+KrN6LLxKM/scViIPApnouaYeh2V+vPJUk4/LkviAcyPlE7ykSgpVD4KyDRNjLkJGyxqC1mGVKH8NgIdPrSZBdSxzuMTHI2R1DPVssbASQQ5WtDCcAc6v4IQmn5FfMqf9wc8OiXjhV14Oht1ZyDgWrgihG3Rvu8HMc/yh9q4gIbnartzuX+tk1cYh1LASXCUPtxpCWWLOSxY0+/jTEKy1lEXmSL2WgsongqJQlq3/ctW8Lhgh8WAuNrO7dcJBEcN+OOTNQBmOf7LTXkGozNuJscw/9azB+ECeH0CD57DW+Oj5eZO0Uz7s3v+J6y3+cbvFR5UMO268FWtnIT74QFXYkwxkQ1lJiAnIMY9q+k/y8uHgfW7SLPq+zH18sU6X5Oe/iwXGFijQSDot1uUj1NO66Tlmb3sd7KDW8b5bTU66IJwAWnfgZjEj7u8toose4XIu2L+K+2Sw86Wm6yoyba6gJ+LTPVsx4+i4ESVdbA7DN+k/wJr43AEE1EtM+66qWqnAxeUXyQ63UR1/IqtMu8glGOcsJtBJ/GGz2G+E2GyB/5qFApA50PXSgZ7bHf9Yus9ja2IzCzzd8LzLGnKQld1GnA7U6p1kmy7/zZD6SxVtmv2Ew71SR73lo7cIADWlnWxBbfi1V00uA= X-Forefront-PRVS: 0235CBE7D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(39850400002)(39840400002)(39450400003)(39860400002)(39410400002)(50986999)(5660300001)(8676002)(50466002)(3846002)(6116002)(48376002)(305945005)(47776003)(81166006)(78352004)(66066001)(7736002)(2351001)(4326008)(50226002)(189998001)(38730400002)(5003940100001)(25786008)(92566002)(42186005)(6666003)(53936002)(110136004)(2906002)(6506006)(42882006)(6512007)(54906002)(6916009)(6486002)(107886003)(36756003)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:SG2PR06MB1647; H:localhost.localdomain; FPR:; SPF:None; MLV:ovrnspm; PTR:InfoNoRecords; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SG2PR06MB1647; 23:VjPM58bkHgcf07sMm1CtNb8Vllt6qWuKt4YQAThxk?= =?us-ascii?Q?jVMUOpQMKUdNlLHtQqFGgmKqyEhnyCb1BIHVIYVVGVYQs3dFNIlBFEQr48e2?= =?us-ascii?Q?FcfNsE0SMTZX8jFndlRKWaih8eaQ+uIc4zsvQEZ0fHCkFFJjiiws3aRf62lR?= =?us-ascii?Q?l7aa9zLHv6My4vVwR93Kg3G2yHg8S8LlsgtCsoLE1DZIAPh2d7VUEctEKznn?= =?us-ascii?Q?sUdkMap2LaUsKSzOUubGd6weFSylvaJ54OOSbyWUvFRK1+NizPW0sIJpZDFh?= =?us-ascii?Q?UQniji60c9ICL3wjTEjSSw3hkJiE4yJ0942nvD2bbil28zQSv+a3GVKs0Gag?= =?us-ascii?Q?YEozm0f+0V3+tB/MrkB1ctkPu5BgUthg+wXOUc4RTRD5HPiGXzuX32EpXtkI?= =?us-ascii?Q?TqmAocB7dtq9zwkoxFFERxdein9dBXuwURhuSgGdDOF5ScuwEeqd2QRTOb6x?= =?us-ascii?Q?tHUg1uss91X6zQ17HmxKWbtjsA0lBrrloFy/zBb96M8W2bVOib28bM1EmGaJ?= =?us-ascii?Q?FZ9Ghnl/LrW3U6K3yP7bpPt0I2P/4AmQmNHexgEWG6/97NEY29VeHJCUoP6c?= =?us-ascii?Q?D0dbB71hfraVRMcuct2jiZsiC+bkrOPKo2SOIvuvhaj6AtaLyT9wN/IyQsj7?= =?us-ascii?Q?zxWpt1zODNJk3eFYo55KK3R1xkhdULYcXWIy9wrGIJN8fkQvWu3yz6d6dBlU?= =?us-ascii?Q?JNaKQWD6nI8byZxfCUhMDBoobn5xKh1y4IABGyJC0m/PsQkNUSjIXzGX5D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; 24:BDyj5uKWzBdrujznibZwO+l44oqOWyeErW9VN7W/eLURVuWqefb1yhVoV7Wofdg05qScDyqPnpZyiJNv2hLz1s4+35SwrPbkkDDKc1aVI8Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SG2PR06MB1647; 7:BlyMfves283AxdUCCSHSp+Dxh0iDbqE6Dy3mE17pzHKhWxY9IrhwgsRGDyDADjaMS+vjvftjX7SVZQjxcmBzmsKJqmpooWvHO6n4L/35gBYl9n740F8fX8J9GjY33FvCE97rqMWANzMOzNaZuXDev0msDx0VeG3bY9VqHGAsqTaR08I1ev0i5fM3RUMe+GBlfTzvEyCk/hqCDeAdnF30NH8CKSgKmpY1+qWO55j0r/gQc1TeOTCk2KH+ZlPRVjG+GVRAW++RjmQcPWPiwwBGSUI47AZMOR7pcguhUJQdYnPK2j7dubUv+5WxWSrsmg6ilGi9Mfa/6rizE9kv4PgDzA==; 20:xYSXOwMVOXTkhjAMNHYeyfpuM9fMleOqy7amN/1NIVpYInLOna7JZAHP0QyWjtnJFVQki9TtfWjCNkP+2BZrkD7GTgbt2S/JXIv5RoYa3pRRuAnNfeie+XvHPTE6LxTfhDOrDVkPfKAOz49PvCVjOqQZzoCwv1tRAHBpDir1Hz0= X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 11:35:54.2764 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2PR06MB1647 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes an issue that phy_create() never enables the pm_runtime. And then, we can remove calling the pm_runtime_{en,dis}able from some phy drivers. Fixes: ff764963479a ("drivers: phy: add generic PHY framework") Cc: stable@vger.kernel.org # v3.13+ Signed-off-by: Yoshihiro Shimoda --- drivers/phy/phy-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/phy/phy-core.c b/drivers/phy/phy-core.c index a268f4d..17e350f 100644 --- a/drivers/phy/phy-core.c +++ b/drivers/phy/phy-core.c @@ -759,7 +759,7 @@ struct phy *phy_create(struct device *dev, struct device_node *node, if (ret) goto put_dev; - if (pm_runtime_enabled(dev)) { + if (!pm_runtime_enabled(dev)) { pm_runtime_enable(&phy->dev); pm_runtime_no_callbacks(&phy->dev); }