Message ID | 20210312003405.439923-1-joel@jms.id.au |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp766443jai; Thu, 11 Mar 2021 16:35:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJwaKLz97N17nZfvJDLb8FX4EX06SaUzP6Idl1tb+xSF89h8uo3Jb+Lw9F1AmIwlB3EbIvjE X-Received: by 2002:a17:906:33da:: with SMTP id w26mr5695385eja.302.1615509319495; Thu, 11 Mar 2021 16:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615509319; cv=none; d=google.com; s=arc-20160816; b=empzqvVRPxiRaNUxDh1MkU6q1maK4axwkDIaPIrUlODSGGgZgcJaqrdMcs28CA0cX1 ut4CntuZE60bYHynF0aBOugn/cHtaInPWS4fQ+SCWzo5Xt+yhGIV3SY3WYfarqL4UVaW +sqvSTOnGBk3UgFH+UXo80cHO0bDZ4b/FLMumWrdewR0grPk5kVo195lAr0h+QOwv5ta Z8iorS3WVIVDpxNpMT/oBShav6LsRQhus44s9fIgc6/7EmZAakDVoFXLodAarLRM9u6p wHYnYJonhxsAtLGfPq6gn3k2Uy1YsSeEq6I8vRrF53VuMx8TCeMcY/xJ2O1NVcjF9uR2 +qiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:sender:dkim-signature; bh=ecmGcBcPtcC0qLRj92pOo7aiI2XbXGDbepHsnlPEhKY=; b=IU52g8R57lGSwJ1g+E+QsbsE26ZzUGGmku8UJ8q8dKnIMNLmiybTHcvlUtonXfb9aE iffgjVR9wJssvSGu5YqoXLP5+ZeRERRV4lAWC5o5EHfRwjOwU6T4mzitkBQ9HHiy9pLH XfIXBR/HYfW9xdiVyLcKhUqGTGdsuWOtZqrzbmRVIGuF3ydrZJKH0bJ1Gi4CbydpjAZr bzdkGJbu5pqtk0QeT/cnMS8XpADT6BePKSjYDZ4YTfsBxc452arB2mf3JVLMxP6f+Dyh X9gMKyXVert2TA9jmmCN+bdt9TiW2cqk3uXUP3gzPLPEIg/eqMBKYs60lNS592GE/Avr jf0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uRnnhsFa; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Return-Path: <netdev-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si2665430edd.35.2021.03.11.16.35.19; Thu, 11 Mar 2021 16:35:19 -0800 (PST) Received-SPF: pass (google.com: domain of netdev-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=uRnnhsFa; spf=pass (google.com: domain of netdev-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229791AbhCLAer (ORCPT <rfc822; lee.jones@linaro.org> + 8 others); Thu, 11 Mar 2021 19:34:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229578AbhCLAeU (ORCPT <rfc822;netdev@vger.kernel.org>); Thu, 11 Mar 2021 19:34:20 -0500 Received: from mail-pg1-x52a.google.com (mail-pg1-x52a.google.com [IPv6:2607:f8b0:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47145C061574 for <netdev@vger.kernel.org>; Thu, 11 Mar 2021 16:34:19 -0800 (PST) Received: by mail-pg1-x52a.google.com with SMTP id n10so14738240pgl.10 for <netdev@vger.kernel.org>; Thu, 11 Mar 2021 16:34:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ecmGcBcPtcC0qLRj92pOo7aiI2XbXGDbepHsnlPEhKY=; b=uRnnhsFaMWAuEO+6ZLYgb7Ky3o276oe+fpImfQ7mGCqrZjRvbNC40jZz17/VKxRYmE s4LThJe/rkdzvW0lpBwXo7ONoa5gUfymb53oD8ExaiLZPnB4p6Yi+QslmdugmcyOmloa v4ZghTUyGQkQiC1vXePXjvmkmlvJbVGDgsn/fhXC3Yeyv4WX35nkSJT3qFyqHiKPnMNN dgO25n6iq+LDF4ycj+/U7wJu70ljdAnSrNwqZfvOWZLrl1rhaLXD3FqkAGKygcPtLOCs mFWhf0TN3EJF1eSgTUWQYa8Rgzfi7k9YCKLeOAVODYejJYxQWGeiwmgSXgn/rsh1fd+e QqVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=ecmGcBcPtcC0qLRj92pOo7aiI2XbXGDbepHsnlPEhKY=; b=APqGgmFF3wXmA/BoKJ24BhNfKi33tedvr0TdjVweayAT9PGZFQoGUCEbX4uRmCW3h5 WvkNd0FeCZBMvabDK1++gnxDt5nBs0Dhn4PyPWAnpCs5JgwE064pToBY6EjjMOZYCnKw SIs0MbjXhY6xYXpHaP2CsNL1PfuGUgB/fAdk32lKmDprVeZOA1EwvMLqxGqunxNwCIoZ a9X3sQzKCyvUUMBUGXUT0LejAwHIkNonuOigBoxgh57EAxSgDKDBzR6ss8VWZgHZn/4T MjDMTdXm3Xkb4sq68JeY8adJHx6hlPPf/hIsuX9licSsQU+Y5J75p34P0hhDxsor+tnu 2dvw== X-Gm-Message-State: AOAM531pmjJzXG7xlBRmC+Ids0JF3Opiwzf7bLICfVs5t5qJZQOCnLW4 ha/QHXjIt9kMQnl1oc3oNrsQhAHcri7zJg== X-Received: by 2002:a62:92cc:0:b029:1fa:515d:808f with SMTP id o195-20020a6292cc0000b02901fa515d808fmr9791956pfd.43.1615509258719; Thu, 11 Mar 2021 16:34:18 -0800 (PST) Received: from localhost.localdomain ([45.124.203.14]) by smtp.gmail.com with ESMTPSA id y20sm3497134pfo.210.2021.03.11.16.34.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Mar 2021 16:34:18 -0800 (PST) Sender: "joel.stan@gmail.com" <joel.stan@gmail.com> From: Joel Stanley <joel@jms.id.au> To: "David S . Miller" <davem@davemloft.net>, Jakub Kicinski <kuba@kernel.org> Cc: Dylan Hung <dylan_hung@aspeedtech.com>, netdev@vger.kernel.org, Benjamin Herrenschmidt <benh@kernel.crashing.org> Subject: [PATCH] ftgmac100: Restart MAC HW once Date: Fri, 12 Mar 2021 11:04:05 +1030 Message-Id: <20210312003405.439923-1-joel@jms.id.au> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: <netdev.vger.kernel.org> X-Mailing-List: netdev@vger.kernel.org |
Series |
ftgmac100: Restart MAC HW once
|
expand
|
diff --git a/drivers/net/ethernet/faraday/ftgmac100.c b/drivers/net/ethernet/faraday/ftgmac100.c index 88bfe2107938..04421aec2dfd 100644 --- a/drivers/net/ethernet/faraday/ftgmac100.c +++ b/drivers/net/ethernet/faraday/ftgmac100.c @@ -1337,6 +1337,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 */ iowrite32(FTGMAC100_INT_BAD,