netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next 0/7] net: stmmac: Improve default addend/subsecond increment readability
@ 2023-08-24 18:32 Andrew Halaney
  2023-08-24 18:32 ` [PATCH net-next 1/7] net: stmmac: Use consistent variable name for subsecond increment Andrew Halaney
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Andrew Halaney @ 2023-08-24 18:32 UTC (permalink / raw)
  To: Alexandre Torgue, Jose Abreu, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, Maxime Coquelin, Richard Cochran
  Cc: netdev, linux-stm32, linux-arm-kernel, linux-kernel,
	Andrew Halaney

This series aims to improve the readability of the calculations
for the default addend and subsecond increment values.

I recently had to understand what the hardware did by reading this code,
and it took me longer than I care to admit. These patches aim to make it
more self explanatory.

Suggestions to further improve this are very welcomed.

Signed-off-by: Andrew Halaney <ahalaney@redhat.com>
---
Andrew Halaney (7):
      net: stmmac: Use consistent variable name for subsecond increment
      net: stmmac: Use NSEC_PER_SEC for hwtstamp calculations
      net: stmmac: Precede entire addend calculation with its comment
      net: stmmac: Remove a pointless cast
      net: stmmac: Correct addend typo
      net: stmmac: Fix comment about default addend calculation
      net: stmmac: Make PTP reference clock references more clear

 drivers/net/ethernet/stmicro/stmmac/hwif.h         |  5 +++--
 .../net/ethernet/stmicro/stmmac/stmmac_hwtstamp.c  | 14 +++++++-------
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c  | 22 ++++++++++++----------
 3 files changed, 22 insertions(+), 19 deletions(-)
---
base-commit: 9f6708a668186dc5b38532fc1d1ff2f5311722d6
change-id: 20230824-stmmac-subsecond-inc-cleanup-305397c6ca8d

Best regards,
-- 
Andrew Halaney <ahalaney@redhat.com>


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-08-30 23:10 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-24 18:32 [PATCH net-next 0/7] net: stmmac: Improve default addend/subsecond increment readability Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 1/7] net: stmmac: Use consistent variable name for subsecond increment Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 2/7] net: stmmac: Use NSEC_PER_SEC for hwtstamp calculations Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 3/7] net: stmmac: Precede entire addend calculation with its comment Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 4/7] net: stmmac: Remove a pointless cast Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 5/7] net: stmmac: Correct addend typo Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 6/7] net: stmmac: Fix comment about default addend calculation Andrew Halaney
2023-08-27  0:02   ` Serge Semin
2023-08-29 15:01     ` Andrew Halaney
2023-08-30 10:16       ` Serge Semin
2023-08-30 10:26         ` Serge Semin
2023-08-30 20:50         ` Andrew Halaney
2023-08-24 18:32 ` [PATCH net-next 7/7] net: stmmac: Make PTP reference clock references more clear Andrew Halaney
2023-08-28  2:15   ` Richard Cochran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).