[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <2f855efe-e16f-4fcb-8992-b9f287d4bc22@lunn.ch>
Date: Fri, 9 Feb 2024 14:53:24 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Csókás Bence <csokas.bence@...lan.hu>
Cc: netdev@...r.kernel.org, Jakub Kicinski <kuba@...nel.org>,
"David S. Miller" <davem@...emloft.net>,
Wei Fang <wei.fang@....com>, Shenwei Wang <shenwei.wang@....com>,
Clark Wang <xiaoning.wang@....com>,
NXP Linux Team <linux-imx@....com>,
Eric Dumazet <edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
Francesco Dolcini <francesco.dolcini@...adex.com>,
Marc Kleine-Budde <mkl@...gutronix.de>
Subject: Re: [PATCH v2] net: fec: Refactor: #define magic constants
> @@ -1181,7 +1194,7 @@ fec_restart(struct net_device *ndev)
> if ((fep->pause_flag & FEC_PAUSE_FLAG_ENABLE) ||
> ((fep->pause_flag & FEC_PAUSE_FLAG_AUTONEG) &&
> ndev->phydev && ndev->phydev->pause)) {
> - rcntl |= FEC_ENET_FCE;
> + rcntl |= FEC_RCR_FLOWCTL;
This immediately stood out to me while looking at the diff. Its not
obvious why this is correct. Looking back, i see you removed
FEC_ENET_FCE, not renamed it.
Ideally, you want lots of small patches which are obviously correct.
This change is not obvious, there is no explanation in the commit
message etc.
Please keep this patch about straight, obvious, replacement of bit
shifts with macros.
Do all other changes in additional patches. It is much easier to
review then, both by you before you post, and us when it hits the
list.
Andrew
Powered by blists - more mailing lists