From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,T_DKIMWL_WL_HIGH,URIBL_BLOCKED,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 93EA7C28CC6 for ; Mon, 3 Jun 2019 09:17:31 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 629D924814 for ; Mon, 3 Jun 2019 09:17:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559553451; bh=VG3xzaa3A1jhxtOHs99V4fP62LFPsrwnGOwBUKvbhmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=WPmtN1Iij1NSsvCDvzEj7TymojEMSJUOJbsGuVxQWPzxkx/9iEp49Nnev0ZS8eFAC ux49HcuUNWkU9XUo7S02xa/ew40/t/fwuVEPgTDv8XVFfOgYM2cKdNcjQdiZbVm1hk Mlu0i5363Fi6HPyXpBLxrIjo07c61BV1+7oeKMS8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728339AbfFCJLP (ORCPT ); Mon, 3 Jun 2019 05:11:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:56212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728336AbfFCJLP (ORCPT ); Mon, 3 Jun 2019 05:11:15 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 9B26427E36; Mon, 3 Jun 2019 09:11:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1559553075; bh=VG3xzaa3A1jhxtOHs99V4fP62LFPsrwnGOwBUKvbhmU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rI0vSAvkxN22RHVXr33QB0C5PGCQkmXn7yin680zc5UaKB0qiPIq4mnE3qEKdT3sx CoP0y1wMnC3TIGJT0yW6+vh3PLrMZkVq1/K1FNV1GU7yjoENffZv7WfQW/6xjYZjHL aW/FMm9Zn6+cy755XJSWTdTVwtS0JlUfrZlu9FRA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Baruch Siach , Fugang Duan , "David S. Miller" Subject: [PATCH 5.0 11/36] net: fec: fix the clk mismatch in failed_reset path Date: Mon, 3 Jun 2019 11:08:59 +0200 Message-Id: <20190603090521.704425967@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190603090520.998342694@linuxfoundation.org> References: <20190603090520.998342694@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Andy Duan [ Upstream commit ce8d24f9a5965a58c588f9342689702a1024433c ] Fix the clk mismatch in the error path "failed_reset" because below error path will disable clk_ahb and clk_ipg directly, it should use pm_runtime_put_noidle() instead of pm_runtime_put() to avoid to call runtime resume callback. Reported-by: Baruch Siach Signed-off-by: Fugang Duan Tested-by: Baruch Siach Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/freescale/fec_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/ethernet/freescale/fec_main.c +++ b/drivers/net/ethernet/freescale/fec_main.c @@ -3556,7 +3556,7 @@ failed_init: if (fep->reg_phy) regulator_disable(fep->reg_phy); failed_reset: - pm_runtime_put(&pdev->dev); + pm_runtime_put_noidle(&pdev->dev); pm_runtime_disable(&pdev->dev); failed_regulator: clk_disable_unprepare(fep->clk_ahb);