mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v4 0/2] net: stmmac: prevent div by 0
@ 2025-05-29  9:07 Alexis Lothoré
  2025-05-29  9:07 ` [PATCH v4 1/2] net: stmmac: make sure that ptp_rate is not 0 before configuring timestamping Alexis Lothoré
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Alexis Lothoré @ 2025-05-29  9:07 UTC (permalink / raw)
  To: Alexandre Torgue, Jose Abreu, Andrew Lunn, David S. Miller,
	Eric Dumazet, Jakub Kicinski, Paolo Abeni, Maxime Coquelin,
	Richard Cochran, Phil Reid
  Cc: Thomas Petazzoni, Maxime Chevallier, netdev, linux-stm32,
	linux-arm-kernel, linux-kernel, Jose Abreu, Yanteng Si,
	Alexis Lothoré

Hello,
this small series aims to fix a small splat I am observing on a STM32MP157
platform at boot (see commit 1) due to a division by 0.
There is no functional change in this revision, this has just been
rebased on top of net/main.

Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
---
Changes in v4:
- collect RB tags
- rebased on net/main
- Link to v3: https://lore.kernel.org/r/20250528-stmmac_tstamp_div-v3-0-b525ecdfd84c@bootlin.com

Changes in v3:
- remove now duplicate check
- add ptp_rate check in est_configure
- Link to v2: https://lore.kernel.org/r/20250527-stmmac_tstamp_div-v2-1-663251b3b542@bootlin.com

Changes in v2:
- Add Fixes tag
- Reword commit message to clarify the triggering cause of the issue
- Link to v1: https://lore.kernel.org/r/20250523-stmmac_tstamp_div-v1-1-bca8a5a3a477@bootlin.com

---
Alexis Lothoré (2):
      net: stmmac: make sure that ptp_rate is not 0 before configuring timestamping
      net: stmmac: make sure that ptp_rate is not 0 before configuring EST

 drivers/net/ethernet/stmicro/stmmac/stmmac_est.c  | 5 +++++
 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c | 5 +++++
 drivers/net/ethernet/stmicro/stmmac/stmmac_ptp.c  | 2 +-
 3 files changed, 11 insertions(+), 1 deletion(-)
---
base-commit: 271683bb2cf32e5126c592b5d5e6a756fa374fd9
change-id: 20250522-stmmac_tstamp_div-f55112f06029

Best regards,
-- 
Alexis Lothoré, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


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

end of thread, other threads:[~2025-05-31  5:10 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-05-29  9:07 [PATCH v4 0/2] net: stmmac: prevent div by 0 Alexis Lothoré
2025-05-29  9:07 ` [PATCH v4 1/2] net: stmmac: make sure that ptp_rate is not 0 before configuring timestamping Alexis Lothoré
2025-05-29  9:07 ` [PATCH v4 2/2] net: stmmac: make sure that ptp_rate is not 0 before configuring EST Alexis Lothoré
2025-05-31  5:10 ` [PATCH v4 0/2] net: stmmac: prevent div by 0 patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®