Re: [PATCH net v2] net: ti: icssg-prueth: Fix swapped TX stats for MII interfaces.
From: Simon Horman
Date: Tue Jun 03 2025 - 04:49:11 EST
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@xxxxxx>
> ---
>
> v2-v1:
> - Include a comment along with the bug fix as suggested by Simon Horman <horms@xxxxxxxxxx>
>
> v1: https://lore.kernel.org/all/20250527121325.479334-1-m-malladi@xxxxxx/
Thanks for the update.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>