linux-stable/drivers/net/ethernet/renesas
Yoshihiro Shimoda 0ad4982c52 net: renesas: rswitch: Fix timestamp feature after all descriptors are used
The timestamp descriptors were intended to act cyclically. Descriptors
from index 0 through gq->ring_size - 1 contain actual information, and
the last index (gq->ring_size) should have LINKFIX to indicate
the first index 0 descriptor. However, the LINKFIX value is missing,
causing the timestamp feature to stop after all descriptors are used.
To resolve this issue, set the LINKFIX to the timestamp descritors.

Reported-by: Phong Hoang <phong.hoang.wz@renesas.com>
Fixes: 33f5d733b5 ("net: renesas: rswitch: Improve TX timestamp accuracy")
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2023-06-09 10:41:09 +01:00
..
Kconfig net: ethernet: renesas: rswitch: Fix build error about ptp 2022-11-14 18:37:20 -08:00
Makefile net: ethernet: renesas: rswitch: Add R-Car Gen4 gPTP support 2022-11-02 12:38:53 +00:00
ravb.h ravb: Add RZ/G2L MII interface support 2022-09-20 08:39:46 -07:00
ravb_main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net 2023-03-17 16:29:25 -07:00
ravb_ptp.c ptp: ravb: convert to .adjfine and adjust_by_scaled_ppm 2022-10-31 11:14:16 +00:00
rcar_gen4_ptp.c net: ethernet: renesas: rswitch: Add R-Car Gen4 gPTP support 2022-11-02 12:38:53 +00:00
rcar_gen4_ptp.h net: ethernet: renesas: rswitch: Add R-Car Gen4 gPTP support 2022-11-02 12:38:53 +00:00
rswitch.c net: renesas: rswitch: Fix timestamp feature after all descriptors are used 2023-06-09 10:41:09 +01:00
rswitch.h net: renesas: rswitch: Fix GWTSDIE register handling 2023-03-17 07:50:50 +00:00
sh_eth.c Revert "sh_eth: remove open coded netif_running()" 2023-03-28 19:23:32 -07:00
sh_eth.h Revert "sh_eth: remove open coded netif_running()" 2023-03-28 19:23:32 -07:00