From patchwork Tue May 30 17:34:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leonard Crestez X-Patchwork-Id: 9754939 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 D811C601D2 for ; Tue, 30 May 2017 17:35:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C124326D08 for ; Tue, 30 May 2017 17:35:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B55F027F8F; Tue, 30 May 2017 17:35:39 +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=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.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 41F3926D08 for ; Tue, 30 May 2017 17:35:39 +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:References:In-Reply-To: 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=BhWTyTpy80lGP1WfAT4Y9+fuGqP7H72JPVtFbSW6vR0=; b=KnwoEHxhAGCIAC u9XwUUIP8QK0LI5N+gCFrn7iaEqfOKoaGr+9EjEm6ssATVSVGKktY870UvXHioTfvIT6t1cU8wI4z K43X8pqK0Cw6hT8V1B6NkPlsotR2A91zgyAbMYN8a0Qw7o4VADZlKXKWDq408rTVQa/ioOFfNNqcs 3B5JkNbUB64eZtbUX0jEaGIPFNV+tV1xaIRlHEU/iajKDWGfTuu8ArVdjCqRgVPBg4qcOWDq4Pihh OrX0FCrLPTymWs11zZswo7dGCx1gK6bXyptnZg8qHUtzaHzGi50EndSuln02JPS+o2Xrfp1WGh9Qz Nuy18Ycf/sRPNhdgPBog==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dFl3S-0000tI-5o; Tue, 30 May 2017 17:35:38 +0000 Received: from mail-by2nam01on0057.outbound.protection.outlook.com ([104.47.34.57] helo=NAM01-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dFl2d-0007RI-JU for linux-arm-kernel@lists.infradead.org; Tue, 30 May 2017 17:34:50 +0000 Received: from BN6PR03CA0002.namprd03.prod.outlook.com (10.168.230.140) by CY4PR03MB2807.namprd03.prod.outlook.com (10.175.115.137) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Tue, 30 May 2017 17:34:25 +0000 Received: from BN1BFFO11FD026.protection.gbl (2a01:111:f400:7c10::1:141) by BN6PR03CA0002.outlook.office365.com (2603:10b6:404:23::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Tue, 30 May 2017 17:34:25 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; dmarc=fail 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 BN1BFFO11FD026.mail.protection.outlook.com (10.58.144.89) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Tue, 30 May 2017 17:34:24 +0000 Received: from fsr-ub1664-115.ea.freescale.net (fsr-ub1664-115.ea.freescale.net [10.171.73.164]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v4UHYFtv029045; Tue, 30 May 2017 10:34:21 -0700 From: Leonard Crestez To: Shawn Guo , Florian Fainelli , Andrew Lunn , Andy Duan Subject: [PATCH 2/2] net: phy: micrel: Restore led_mode and clk_sel on resume Date: Tue, 30 May 2017 20:34:04 +0300 Message-ID: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: X-EOPAttributedMessage: 0 X-Matching-Connectors: 131406392650027061; (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)(336005)(39850400002)(39410400002)(39380400002)(39450400003)(39400400002)(39860400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(6666003)(6636002)(38730400002)(36756003)(498600001)(54906002)(118296001)(47776003)(104016004)(53936002)(5660300001)(86362001)(33646002)(106466001)(50226002)(105606002)(356003)(2950100002)(50466002)(8936002)(48376002)(81166006)(85426001)(2906002)(305945005)(7416002)(8676002)(5003940100001)(76176999)(39060400002)(77096006)(50986999)(189998001)(4326008)(8656002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2807; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD026; 1:z22IsnbPP0vvBe91GuBD8AQyryHdjdOm3T5pQs03MarKIFUnEpYb2GNSTSD8uvoNnqvVE7bDWIPEP7Lb0WHEfLVWQDVGS6JtgGqenwEQSvNWAKDqAGBbHj4g1M9IUtYa+bGaDJiU33lyMwyQojLJmuewU8boqkO2vycQiNWk/kHwmNO3eQqCBCCH5Xa0gJpi4oZcpJa3znK6qytYVYXB0QQrh3uXh607j5LRSu85U9EgSGqY24flT8vxgI7D5ldi5yKO/0Cm39PaK0wKugde+P1k14CvzLKBpIO5lWXVb0B7GmbrmgVvHDhZDQvI/W0VVfKtXSSlVK10hGbFnMB837/hQTLQyp2ZNUMzr7UNlrrYz+r4FmCmOb5MaDSuNw1ThiJuFEC1tOIlQ1IuIA/p7HpJQWJB2yhZcKiImbANYQ/zeZDcJUkwKnNqMPuEhoTdMaoE7QE+DOwUiK58jpkPd/SeDzR51Tcficn2NyNQFjXokVr9/+ygX+Bshhb6Wa4d9b379Ufxf/4uaFtei14ZfUPn1HYwvqiCPQXDngoTpBrNts4JUMsCCIRTQXUqhm/0 MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY4PR03MB2807: X-MS-Office365-Filtering-Correlation-Id: f30f67d4-a494-4c4a-6ed4-08d4a7821d93 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY4PR03MB2807; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2807; 3:rppYLnD51OJvBUuv99Pgp2Aj/IRiruyNSer9T61RfYX7lJXuzCJYy92aVwRZSqJB9HABDldSdnqDlSUZhOoI1w1wCo9j16zFRa/lfd4yW1EpR8G7hGgFLd8QGRY6v50jmw/TB9LBnN2X4sfDR2PHeOmVRmufMZUp7vwNpV07HnK9y2MEo1bxuo3QjolR9RMdBBnLZMoG67yDtSuEN1CRhhuyH8JvCAmYmsKTVs8APWXuanqcmHcEpTWWQNmcHDP19MhoU3twcDGD409E+924UVykta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report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6095135)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(3002001)(10201501046)(100000703073)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123556025)(20161123565025)(20161123563025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123559100)(20161123561025)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:CY4PR03MB2807; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(400006)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:CY4PR03MB2807; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2807; 4:jRHfi1Dx5mIcj3HRHOkjnG/EH5+kRHUaUsqdV3w/1N?= =?us-ascii?Q?tcigSZD7e08sFis6J3SRX/dOeKVFAbk7LbeK3PzgtHPYOqj8J8WEGXqUb/DL?= =?us-ascii?Q?42IHcIuF8LlBgFcx69md9XWeP6WK6sg1wF+L2fda0YOXy9X4+zbbhcQv11KI?= =?us-ascii?Q?wCp6p8RyClc9KvKdG0koCHP2i74C1q2984N8aI2+YeugXJDoHcti4X2Pw9NS?= =?us-ascii?Q?fZApH9wxiG9/gpD0C5Et3aSkMIMIfQmywBs9d6rFKVYoxqcXADAD3utETD9o?= =?us-ascii?Q?4bdwT/mi76rx9KUtbZV4H0VjQdD12OpbNpQ9GVPbRd5euVc/2Iy6XJ52mIDN?= =?us-ascii?Q?cKFVIZcOYUtFAQSPSPHb4p9m7wEdBJtD9ZqH5UQBSD2XDs4YtzRUaQ9Uvhc5?= =?us-ascii?Q?W7vwGMs84ZRkZaDmOUhaawS/uMMgz78aYnrOQ+qqnM5pWcz9hNcoWWqsnCUI?= =?us-ascii?Q?yOfwjpap49DsWkqJ4pAF6+onU0IxhcwycgIRriPosu0nplKDvc3PScmwgmjU?= =?us-ascii?Q?anltdP8y2sM7E3uTclDvdrPfOYUvn4eoyqmuY00f13+WWPmfc2LiLqD/z0bD?= =?us-ascii?Q?pRHeEDe5QnzXIuo2uC7RYVUc7YP1tRExQa7go2cOJ+w7sA/Pj0BhSM6ArDuj?= =?us-ascii?Q?b7j5aZqUB9KBAbTSjQNAvNfU1kBaM1g/Q/ZHBUd2N6kGmNN4DGegoWKY5x1D?= =?us-ascii?Q?xQ6J29RvT1r2zWx5FxUmIkXKQ0xyqupfcw9BhQEI+3CVLurMhlMRV8CgF9sD?= =?us-ascii?Q?TIOqvbUPf7vKddFw78iiq4kiqMtkdq9WBGaDg6pdekoTO6HjMaHpbmb0L2jy?= =?us-ascii?Q?aA2yXxIVerAxsYR8a9aWvWZqWdTprBsd0KWRvw80P3KpdouFVKoEoovbPgNB?= =?us-ascii?Q?erzxDAErx0xCabLUj1WSEND4o+GlV5p8F+LwzxsHyUvo8h4FoB/9qMoi12aK?= =?us-ascii?Q?5AVgGAg7KqntfaUq8cpQpecbuiZ1CwVtorwW0LmFc2eJy3UWJI0UGFno1z12?= =?us-ascii?Q?PxqlYfZy+CFIuVqp/L9D+8w7PQLBn8nUTIxGCp7fqDBqmjOZ90yMTpAhFGou?= =?us-ascii?Q?iI+BHM5hPR0quUUolb+JEyzfK1sOxxe2QWw3pe4WUecM9jAhsnbn1fC/8Y5p?= =?us-ascii?Q?wcoaKVoP8OwNVV5aHM1oIWgbERV9QYHnle5U/6J6YbvJ04DayL9PmZCj7LPE?= =?us-ascii?Q?JoiuRm3E9UZK/ATUyyXWSPVpf8o25YKbBA49msd1oiFRr/QkFVvqhYxjfyAy?= =?us-ascii?Q?MQlX4DjNQNjxmc2/XkTmxw42dMamI7MsJWoZJP?= X-Forefront-PRVS: 032334F434 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB2807; 23:U/dSWgfiXP7ZAsjjD7QTobGJXzZHcfA28VV7mo4VP?= =?us-ascii?Q?CpQK+T8YHLewCbi4B/Qu4OoRfP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H2n4/jVlUDPIaz3N8GztOkmZyckFHckJNBBJ6JOsMrsHFIyZ5C7CbbqxMhwRQw4+zcrUQGp5MGeJhj55kfNGfMVoszRfxuF6XNGa8T4od/rwlCTu5mqKdOuDpR2giZMrEjFuh00VFygXCCvx4p76KbhzbMJeV4dZHpMohqoy1J0W7uiuJNnAZ3PABoNNstM07sKZWdpOOItEojWqk5J1ykMhFOv8ThEVJ7FlDJjxRpnV1sloDA2uueM2579nZl8RrzE055yzg+m7bXLOWBYwyDNTsTESd2AELKZ+nfGsZQVhOx/8iD9FHWolEALlOWKjh3T45UhLg1UJdhyoHComXdGnJDgD/DqGjOfhpuv+MpoU5BE7aY5oFi5ObfZBLWoDMoC/pz67n1aR1SRexjzIIrdF2pCKOHVs5j5RsXpPcB6ippcBT4xzgHQfqWZx80XVxjcqNvfYMWkCM0+l6WOtM7RESJiD72EYvg==; 24:P7dJQhVOugJmq4WJDLK+bVNEd0qRBLrHSPPBYSdf1n52gXV26ZVuGrRtyu3o3ayVnf2HCGtz8yblHYKac189s6Gm8UZnPmVsj6+tZSUgxpw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2807; 7:hMH7b3B/aZgJLe/N+EXxtBFgZJJKW9g96vsk9TGaNkcoxzBGp/2eITBRbYKFdO+56dvhnPATf5vVm8ZZKkJDtgRA7D5yoh6X36lG0+Hh9q7/yLShlVAUtlbtIhQiZ0JeYfaW1QWnqlgAYcuzm2GoCmrFD/QyWqaVvIfe36E50w1g/5pjaweX6nm3zEaqYe0UjMscQpnBWabJcW2sFGhXUQ9Dm+MjdTqlkqwNLjQibHOWEBtUBnDwHiPuWieQ1TvUQeqprVY5dlipGsLy3GcBg+hPRY68Q7LYIVY1phWBVazAmCPHel+aAgo8QTReWvwh9Tg9AzDFCU70OXLmWvDuGw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 May 2017 17:34:24.7219 (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: CY4PR03MB2807 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170530_103447_710692_EC3D5D03 X-CRM114-Status: GOOD ( 13.96 ) 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: netdev@vger.kernel.org, Johan Hovold , linux-kernel@vger.kernel.org, Alexandre Belloni , Philipp Zabel , Fabio Estevam , 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 These bits seem to be lost after a suspend/resume cycle so just set them again. This patch fixes ethernet suspend/resume on imx6ul-14x14-evk boards. Signed-off-by: Leonard Crestez --- drivers/net/phy/micrel.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/phy/micrel.c b/drivers/net/phy/micrel.c index 6a5fd18..c53ee17 100644 --- a/drivers/net/phy/micrel.c +++ b/drivers/net/phy/micrel.c @@ -700,6 +700,9 @@ static int kszphy_suspend(struct phy_device *phydev) static int kszphy_resume(struct phy_device *phydev) { + struct kszphy_priv *priv = phydev->priv; + int ret; + genphy_resume(phydev); /* Enable PHY Interrupts */ @@ -709,6 +712,18 @@ static int kszphy_resume(struct phy_device *phydev) phydev->drv->config_intr(phydev); } + if (priv->rmii_ref_clk_sel) { + ret = kszphy_rmii_clk_sel(phydev, priv->rmii_ref_clk_sel_val); + if (ret) { + phydev_err(phydev, + "failed to set rmii reference clock\n"); + return ret; + } + } + + if (priv->led_mode >= 0) + kszphy_setup_led(phydev, priv->type->led_mode_reg, priv->led_mode); + return 0; }