Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp831947pxf; Thu, 11 Mar 2021 16:29:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJyuGeQ5iBCCZikUOlvJqQ4DGBMaY2ahKudRYdMdv3A7GPhBV+ZBZMSSaZInx2j6OVoq9Jdc X-Received: by 2002:a17:906:f953:: with SMTP id ld19mr5534468ejb.164.1615508993429; Thu, 11 Mar 2021 16:29:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615508993; cv=none; d=google.com; s=arc-20160816; b=C0KPvvXpXR6sNkSca7nk5/esHxQ7E6zaImvQgFyoJklPi2H3suMFxNpMYTgowic/wI rj9Wq8qbUt4FjY9iiAUGJk7/uUpPqdAqfuBthSEKzMaTBaC+k48TOgiIgeeoVBtDsi7L ki20XfhLXnakLqVcJ/CndYJ/3QTQRb2XpF3J0n4nC0TwSYQ517AhKAFY3nnRJL6zdR+p 1D4bUr99rrrHoRAZhXD64iZySkEFfZ7YExrymRA/iMM1DoXd+budWBprgMJunFz2XnBX Zr3LarqBFc509EVHBw4AhcZDGncj3wG2/Kwqbv+I0/Cm3S6P1FwmSmUDrGYniqVoHlvA /TjA== 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=FbmokgZymiS3iblK7SguwZRYnWpNx1j40+buPp7T5hI=; b=RnSidGWkmYuPHGZAdVDPlXjoWu28dCJLgJho1oHPf4u692OGClT+FP05k4qfz7bXV/ N7kPy/ApYtR+StCO9nn/cwy1Af9CqTGj+hWUf58QQWvR4YnV+3ihl7prGbmTTSFCtKES B2bMpvhzgSKW2tiZE6kcGfeGdokCNseyfvGCXorfp7U3smu79mgGUvkfmPF7jAi8k9aS DxD5FIBk3QOcf6Z7MUOv+THAgkfphZW3DFtdVEOaxKUMtlXkivWdQiqrydYiVdYlqU9J uaRCkV7oPH3nss5j1tFseBFVtu6utyvJb16G01fMOS4GH5Rqz0U6rZ3oVM/fNdcJU2Jp bgHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@jms.id.au header.s=google header.b=Whz4MyDX; 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 z16si2726316edc.65.2021.03.11.16.29.30; Thu, 11 Mar 2021 16:29:53 -0800 (PST) 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=@jms.id.au header.s=google header.b=Whz4MyDX; 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 S231241AbhCLA1I (ORCPT + 99 others); Thu, 11 Mar 2021 19:27:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230228AbhCLA04 (ORCPT ); Thu, 11 Mar 2021 19:26:56 -0500 Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5AB36C061574; Thu, 11 Mar 2021 16:26:56 -0800 (PST) Received: by mail-qk1-x736.google.com with SMTP id a9so22650587qkn.13; Thu, 11 Mar 2021 16:26:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jms.id.au; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FbmokgZymiS3iblK7SguwZRYnWpNx1j40+buPp7T5hI=; b=Whz4MyDX/Z4x61M2IOu46yFDNbrBy9hxI40mUilWmBGYlA6KNkDz/vz3svNyBHzQWQ gLeaU5E2C4JDURV0Ro3lWaIi7CZzig33rNWCj6r1XmNNZeowmF0drcd3o1ADJTATwwGH iP65fPEnz//mgxSwPRetyM1YEmdYAMC9np278= 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=FbmokgZymiS3iblK7SguwZRYnWpNx1j40+buPp7T5hI=; b=eLFGSILP/XQj3j7In2f96CBD/rBFVUePfy/+wav4rxdcCFIf7skROvotnFMCzvdV2s tbAM7ZG/zy+bMikTu0YZtdbqFvkV2My7nK9sRin1UW0PNtF9IqGDVNCqvM16MCoybeJN 4feF2ZzHpfuR1i9C6nO3R/Se0+pc/78q5MPVan4epsffBEFMvtEfLkLsdGIFyOY+secL ul7GI7o1SvxXwVkpaZj/UBOuueoOIP562PKaBZ8ADty6zKrQIeewUCrgRspWOx7OygQs IvNZ9m0fwf5oKUgat05wU9yrGOEY2eOeN/dM+6UkVQ5Fg2mZaiPSD+FpiR2fa425tBA8 DVWA== X-Gm-Message-State: AOAM5308YVWNvVX+t5qL25QYPNwmHdlIXXLuGfb3szTeY3gwyhtnxYvL rkn+En21Ey9cpQVS8XF6eA/C4mYINMyXebO60Qg= X-Received: by 2002:a37:a147:: with SMTP id k68mr10400285qke.66.1615508815554; Thu, 11 Mar 2021 16:26:55 -0800 (PST) MIME-Version: 1.0 References: <20201019085717.32413-1-dylan_hung@aspeedtech.com> <20201019085717.32413-5-dylan_hung@aspeedtech.com> In-Reply-To: From: Joel Stanley Date: Fri, 12 Mar 2021 00:26:43 +0000 Message-ID: Subject: Re: [PATCH 4/4] ftgmac100: Restart MAC HW once To: Dylan Hung Cc: "David S . Miller" , Jakub Kicinski , Networking , Linux Kernel Mailing List , Po-Yu Chuang , linux-aspeed , OpenBMC Maillist , BMC-SW Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 20 Oct 2020 at 04:14, Joel Stanley wrote: > > On Mon, 19 Oct 2020 at 08:57, Dylan Hung wrote: > > > > 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 > > Reviewed-by: Joel Stanley net maintainers, this one never made it into the tree. Do you need me to re-send it? Cheers, Joel > > > --- > > 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 > >