diff options
author | Alexis Lothore <alexis.lothore@bootlin.com> | 2025-04-23 09:12:09 +0200 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2025-04-24 11:50:20 +0200 |
commit | 73fa4597bdc035437fbcd84d6be32bd39f1f2149 (patch) | |
tree | 996e2bb3f1fa66701859c902bc968e23fde70423 /drivers/gpu/drm/lima/lima_object.c | |
parent | 607b310ada5ef4c738f9dffc758a62a9d309b084 (diff) | |
download | linux-stable-73fa4597bdc035437fbcd84d6be32bd39f1f2149.tar.gz linux-stable-73fa4597bdc035437fbcd84d6be32bd39f1f2149.tar.bz2 linux-stable-73fa4597bdc035437fbcd84d6be32bd39f1f2149.zip |
net: stmmac: fix dwmac1000 ptp timestamp status offset
When a PTP interrupt occurs, the driver accesses the wrong offset to
learn about the number of available snapshots in the FIFO for dwmac1000:
it should be accessing bits 29..25, while it is currently reading bits
19..16 (those are bits about the auxiliary triggers which have generated
the timestamps). As a consequence, it does not compute correctly the
number of available snapshots, and so possibly do not generate the
corresponding clock events if the bogus value ends up being 0.
Fix clock events generation by reading the correct bits in the timestamp
register for dwmac1000.
Fixes: 477c3e1f6363 ("net: stmmac: Introduce dwmac1000 timestamping operations")
Signed-off-by: Alexis Lothoré <alexis.lothore@bootlin.com>
Reviewed-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Link: https://patch.msgid.link/20250423-stmmac_ts-v2-1-e2cf2bbd61b1@bootlin.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_object.c')
0 files changed, 0 insertions, 0 deletions