Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp991007pxk; Fri, 25 Sep 2020 03:23:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv2gecILbKEblM2VR7OVeFbdZbFxl9aH4WhtRkpFPOgzfD7JttUJccbSCBAGa2pBibJrOs X-Received: by 2002:a17:906:91d3:: with SMTP id b19mr2050303ejx.235.1601029413408; Fri, 25 Sep 2020 03:23:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601029413; cv=none; d=google.com; s=arc-20160816; b=qdpYot8ueU+lbwZzJEBq2U9mC1z8/5KlBIP/G9qBfUfg/rPflwPqbpmKVttcjqZJse I6baANWjflTyQWXBCkr0cLOzazWnZLBlZH845bIlfJKlc9YE9lJ10j9CiRBstmgEAF9z Rkn2YjAfT8fkj7/ZqNq6RP/ph3K9/iKi2YZPE8YCa1C7LxGe355ARsmQT/aLcxI4FyRX wdnnKPAA3/90Z5DYWCQabHN7N0tkGby6c60spjwPWDNMlsQiZfgE+lQSVScEd9RYCWt9 zUUCht0uvNe0USFyZDeNRo0U7Z9JCim5q0kRPsp0WmKJ0jle727t8Enxn4zhiBc09czp S7gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=2lbFg3EfTPubbbEXQCNv75JEtnNzJ5GMo5FQjXXg9gA=; b=N6G4/qhUL3DVfBWr1pzLWyMVvKVIuLYNSD5ONkObWtJICPzxSDbRufk0DAaH2MUHy8 NQyFP9ZPIHNORMzdeYX9MRXM8JWhsb+oadTJ/v00sV0A80UL3WK0+YKG0oIkH8inWVhF W//FJQ+mrjyir8ue3HBMGK0jbqr6eWxHyVj33RY7OLaoVIorOZHKRqRkBWjCahByiVGq 0ALk890yQkqwnfWSGs/qLnGIhqXF6S0fDloWrwo6mGjny0/39uOfP/AD/XLc30RLRTIr hW01BDs3pWHKaUbu74nReRNiYv8MoQPCx2JZ8LjaE4EQ4WXEq8ceKQvmkCmJq7EzY36r CwCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LSfij8cm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cx12si1773785edb.298.2020.09.25.03.23.10; Fri, 25 Sep 2020 03:23:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LSfij8cm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728043AbgIYKWL (ORCPT + 99 others); Fri, 25 Sep 2020 06:22:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43850 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727520AbgIYKWL (ORCPT ); Fri, 25 Sep 2020 06:22:11 -0400 Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AD36C0613CE; Fri, 25 Sep 2020 03:22:11 -0700 (PDT) Received: by mail-pf1-x441.google.com with SMTP id z19so2719765pfn.8; Fri, 25 Sep 2020 03:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2lbFg3EfTPubbbEXQCNv75JEtnNzJ5GMo5FQjXXg9gA=; b=LSfij8cmE3SRXNOnYNmnoAglcEmSbiz26Yt8p3PrMrnltuSQMEETYBvnz2dbFpghvt AqCs5GPJklKK/M1+st7P0ufNsiWQA0W1DLTTli3fHd8cF2PxThflC3I5x7fhxs53HZx/ zeyiwKAPpDDrCdOshiLl7/CNwimYcxJCi/gf1AMqIQv4RMVsCGXyR1x8f0ko78aYEorx 5h+wz6H6JdDA/GL2/A2b9lrMahTR5nD2vice+RxkSR7vyveSymLn3YrkLHGHWaOygIwO 6GmXGHCJT7L6+ZLPyhfeOp1zsiogdSDdEvEPWbpRrgYX1BxJEG8RQqLhzl0SBbhWM1Kr P7EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2lbFg3EfTPubbbEXQCNv75JEtnNzJ5GMo5FQjXXg9gA=; b=j3Rv4pOwt2Hdlm7Gf7Mp0fvw4SvectYZ/91nfa5vebfjfjZ9vOr/4Cvl0c8xSh3rOR LsWdOj69gz/XQI/B7EKfr32FIERW7NJPXTYegWBHILMVSNAbb3/9Aewi3obAzHORUvxM E8Xn9RwF3LQx1F0jS1jzE7xe7T1vcoBSpF5TOB4vboarz1/dKRH1+72/Hq7xiGXv0YiP qh5rO4vDCbDuum8JvPBZQVbQqU4LaCNgoXQTXBPNsDemOyz5RjMPD+o72X3UGazJgssH A8YvbljZLam1vDWec0GVcJUwC6o1MRhvKqt0lsa04ytnN03zPkBeVHKmPcvzPX1AtF6L cWLg== X-Gm-Message-State: AOAM531vTM3FnwSBwaabSKE6meRednFnnDYZXMvAHkZLhdP5hJjBJpyh EBM+X64woW44nhowMV7wBtGlPzTvji6RS6CdONs= X-Received: by 2002:aa7:9201:0:b029:13e:d13d:a10c with SMTP id 1-20020aa792010000b029013ed13da10cmr3305770pfo.40.1601029330528; Fri, 25 Sep 2020 03:22:10 -0700 (PDT) MIME-Version: 1.0 References: <20200925095406.27834-1-vee.khee.wong@intel.com> In-Reply-To: <20200925095406.27834-1-vee.khee.wong@intel.com> From: Andy Shevchenko Date: Fri, 25 Sep 2020 13:21:52 +0300 Message-ID: Subject: Re: [PATCH net 1/1] net: stmmac: Fix clock handling on remove path To: Wong Vee Khee Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S . Miller" , Jakub Kicinski , Maxime Coquelin , netdev , linux-stm32@st-md-mailman.stormreply.com, linux-arm Mailing List , Linux Kernel Mailing List , Andy Shevchenko , Ong Boon Leong , Voon Wei Feng , Vijaya Balan Sadhishkhanna , Seow Chen Yong , Mark Gross Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 25, 2020 at 12:54 PM Wong Vee Khee wrote: > > While unloading the dwmac-intel driver, clk_disable_unprepare() is > being called twice in stmmac_dvr_remove() and > intel_eth_pci_remove(). This causes kernel panic on the second call. > > Removing the second call of clk_disable_unprepare() in > intel_eth_pci_remove(). Thanks! I'm not sure how I missed this... Reviewed-by: Andy Shevchenko > Fixes: 09f012e64e4b ("stmmac: intel: Fix clock handling on error and remove paths") > Cc: Andy Shevchenko > Reviewed-by: Voon Weifeng > Signed-off-by: Wong Vee Khee > --- > drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > index 2ac9dfb3462c..9e6d60e75f85 100644 > --- a/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > +++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-intel.c > @@ -653,7 +653,6 @@ static void intel_eth_pci_remove(struct pci_dev *pdev) > > pci_free_irq_vectors(pdev); > > - clk_disable_unprepare(priv->plat->stmmac_clk); > clk_unregister_fixed_rate(priv->plat->stmmac_clk); > > pcim_iounmap_regions(pdev, BIT(0)); > -- > 2.17.0 > -- With Best Regards, Andy Shevchenko