Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp3084371pxu; Mon, 19 Oct 2020 03:37:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyIvmDNLg3tjeUgoIDOqrjf3YCD1Ah2DQWfF4P4dBTA0FDeZ1kFMRP7/xJTJz3IEICl8a3W X-Received: by 2002:a17:906:314d:: with SMTP id e13mr17087640eje.412.1603103852830; Mon, 19 Oct 2020 03:37:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603103852; cv=none; d=google.com; s=arc-20160816; b=ACTxgeclaxJJ+m8z/lg2C/WsbGi3fRi2vYIEFwZp0XITR1DV6UBEt4kymE41/9T8Ux PmnkKV6eIwJn4WyZzdU+BazH03tR9qnBjIE1bcUsk9s2R4VeeKi2n50EkI6d2VgII5wC BmgdJlUTKuzwq5Yw1JuVYlIBgwOtcqEVH2DIkhOBAXtjba+/GkQG4xUEXm9YxWoeKKZL a76Y7yjQkDJcF4wONwEEhwzQ6zh8i8Ayqjm9gWc3cWjmu1ztpJWcipVAmv9ZRVmPzECB DEpbzUhPHfdxXms8nyV72Csh6s48Sf5LrdkVexmj6V99OsE0o+6oRMHBlpZ71BSXHDsc 9Olg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=axYna4gGeqIaiqjORnLaPTldKWIDnLGWRWrOCBworMo=; b=oycIyJ3e/gwPn/zUT1rkbIp3vKgDTiX0bRN7eeGVmT+Y6WL8nnRx8KlxYWn4QMT8bE 8ZPMvOZe+ahWtOgp1+LM2AJbX92/5La5gbu1inz1jCKYuS0HhBFzoxWHoeZq5fFJKl8T 2/qUsD3+wEPB3p2wKXERniFHitI78ekw57+ZlsulB98Q+KCpu5/Z7F4hTL4b7spOE8Ul IN67FgQRs4Lf/IjBgge13cs2y/c1yN0WpoldzmFoCTNHMP/1mWD5Fj9LfRfKs9PhHdkM 3UReHEn5FAUazIZm/cltRPKSi2q2fSka0SkzMs5X7w3/vg4fE6ddYEg3/vC5EuqTZyz6 R2NQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d12si7373771eds.287.2020.10.19.03.37.11; Mon, 19 Oct 2020 03:37:32 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729987AbgJSI6C (ORCPT + 99 others); Mon, 19 Oct 2020 04:58:02 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:65340 "EHLO twspam01.aspeedtech.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729838AbgJSI5t (ORCPT ); Mon, 19 Oct 2020 04:57:49 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 09J8spUH046776; Mon, 19 Oct 2020 16:54:51 +0800 (GMT-8) (envelope-from dylan_hung@aspeedtech.com) Received: from localhost.localdomain (192.168.10.9) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 19 Oct 2020 16:57:27 +0800 From: Dylan Hung To: , , , , , , CC: , Joel Stanley Subject: [PATCH 4/4] ftgmac100: Restart MAC HW once Date: Mon, 19 Oct 2020 16:57:17 +0800 Message-ID: <20201019085717.32413-5-dylan_hung@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201019085717.32413-1-dylan_hung@aspeedtech.com> References: <20201019085717.32413-1-dylan_hung@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [192.168.10.9] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 09J8spUH046776 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The interrupt handler may set the flag to reset the mac in the future, but that flag is not cleared once the reset has occured. Fixes: 10cbd6407609 ("ftgmac100: Rework NAPI & interrupts handling") Signed-off-by: Dylan Hung Signed-off-by: Joel Stanley --- drivers/net/ethernet/faraday/ftgmac100.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 0c67fc3e27df..57736b049de3 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -1326,6 +1326,7 @@ static int ftgmac100_poll(struct napi_struct *napi, int budget) */ if (unlikely(priv->need_mac_restart)) { ftgmac100_start_hw(priv); + priv->need_mac_restart = false; /* Re-enable "bad" interrupts */ ftgmac100_write(FTGMAC100_INT_BAD, priv->base + FTGMAC100_OFFSET_IER); -- 2.17.1