Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp980694ybc; Tue, 12 Nov 2019 12:13:27 -0800 (PST) X-Google-Smtp-Source: APXvYqy8Z6YmNFiSIoZM/jhPspNCiL7LmfcEyjUQ3AX8hlMB/4y+1fiBtnDV3wzbth8ZJGczmwos X-Received: by 2002:a50:8969:: with SMTP id f38mr34896923edf.211.1573589607174; Tue, 12 Nov 2019 12:13:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573589607; cv=none; d=google.com; s=arc-20160816; b=mMoG+NaDb4J/ld1HH1v8oHWhn+CGagP2BaBr3FoB2hL/hPx8RG6T2x1tDDuDhgQFl7 LW7MLTAxQEMy8k/tFwoICMnb2YiOyAklphScDtgfYIV9WSDr1M12cNKklsTtKI+tjYdO fxQi5AzKZms0uPp+x6btg7BW8VUlHbWKmUD07PVbrHMKp3bgjI/H69enekRKzZ5vtiAp suZ2fZXIJkJ7/MquAVw5hsIzt1TeXNI+/8O4Vuwua6/1DQqBtCW9bpMZfdVUKqp2g1P2 /cizzH5YVnCXDjOegt5eKM6v1UQa3tN/7sHAnE3Sv1V8tNocoGBmwjrl8oWeRaS6jEFE wUzw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=gp1h9kff3zg30l4InpVowUQH7x5o54T7YC0VVI2aD8s=; b=mHyzcA3di7a0xoJsn8/bS7Gsu9ILzURfzt6DRIDmuIjpQDVLviLcllNg6y8XtFO80v /YU26gPu7o6w5wjLxySPoMXCmcxOaIbRjkSARLGuyzRccsEpEgPsYNGP3WWEYhcgTkw9 GS3ymF+NMDhBYmGO/LbyyBiVtUennbfQ0uI71XL1MNH3nA5bBh2R+/x1iEwrkP+hUtC7 d7C/TmnWXwmu244QTpk2tZAPPxWfciqSVWabDOasQJtfQaRlsQUR5/TtDDZdqGFXyUnC cdFa3/cUk/WclTXY/4gIeXyeMBGxnTCNCd1dndtuRdLUGhloeVJ1HqTOcIvc9kZN9tm+ JCjw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v20si13694721edm.254.2019.11.12.12.13.03; Tue, 12 Nov 2019 12:13:27 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727168AbfKLUMV (ORCPT + 99 others); Tue, 12 Nov 2019 15:12:21 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:48938 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726957AbfKLUMJ (ORCPT ); Tue, 12 Nov 2019 15:12:09 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1e2::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id D1376154D250F; Tue, 12 Nov 2019 12:12:08 -0800 (PST) Date: Mon, 11 Nov 2019 15:14:35 -0800 (PST) Message-Id: <20191111.151435.931035548376130641.davem@davemloft.net> To: clabbe@baylibre.com Cc: alexandre.torgue@st.com, joabreu@synopsys.com, mripard@kernel.org, peppe.cavallaro@st.com, wens@csie.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-sunxi@googlegroups.com, stable@vger.kernel.org Subject: Re: [PATCH] net: ethernet: dwmac-sun8i: Use the correct function in exit path From: David Miller In-Reply-To: <1573385448-30282-1-git-send-email-clabbe@baylibre.com> References: <1573385448-30282-1-git-send-email-clabbe@baylibre.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Tue, 12 Nov 2019 12:12:09 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Corentin Labbe Date: Sun, 10 Nov 2019 11:30:48 +0000 > When PHY is not powered, the probe function fail and some resource are > still unallocated. > Furthermore some BUG happens: > dwmac-sun8i 5020000.ethernet: EMAC reset timeout > ------------[ cut here ]------------ > kernel BUG at /linux-next/net/core/dev.c:9844! > > So let's use the right function (stmmac_pltfr_remove) in the error path. > > Fixes: 9f93ac8d4085 ("net-next: stmmac: Add dwmac-sun8i") > Cc: # v4.15+ > Signed-off-by: Corentin Labbe Applied.