[PATCH net v2] net: ti: icssg-prueth: Fix swapped TX stats for MII interfaces.
Simon Horman
horms at kernel.org
Tue Jun 3 01:48:53 PDT 2025
On Tue, Jun 03, 2025 at 10:59:04AM +0530, Meghana Malladi wrote:
> In MII mode, Tx lines are swapped for port0 and port1, which means
> Tx port0 receives data from PRU1 and the Tx port1 receives data from
> PRU0. This is an expected hardware behavior and reading the Tx stats
> needs to be handled accordingly in the driver. Update the driver to
> read Tx stats from the PRU1 for port0 and PRU0 for port1.
>
> Fixes: c1e10d5dc7a1 ("net: ti: icssg-prueth: Add ICSSG Stats")
> Signed-off-by: Meghana Malladi <m-malladi at ti.com>
> ---
>
> v2-v1:
> - Include a comment along with the bug fix as suggested by Simon Horman <horms at kernel.org>
>
> v1: https://lore.kernel.org/all/20250527121325.479334-1-m-malladi@ti.com/
Thanks for the update.
Reviewed-by: Simon Horman <horms at kernel.org>
More information about the linux-arm-kernel
mailing list