]> git.ipfire.org Git - thirdparty/linux.git/commit
ravb: Add tx_counters to struct ravb_hw_info
authorBiju Das <biju.das.jz@bp.renesas.com>
Wed, 18 Aug 2021 19:08:00 +0000 (20:08 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Aug 2021 11:05:16 +0000 (12:05 +0100)
commit0b81d67311676c9119ed3b027d1518e974dbca8e
treebe3691fa2592b7dbe2704971cca0a11c63d4283b
parent8bc4caa0abafd83e25df2a3b1b03480aab071ee1
ravb: Add tx_counters to struct ravb_hw_info

The register for retrieving TX counters is present only on R-Car Gen3
and RZ/G2L; it is not present on R-Car Gen2.

Add the tx_counters hw feature bit to struct ravb_hw_info, to enable this
feature specifically for R-Car Gen3 now and later extend it to RZ/G2L.

Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/renesas/ravb.h
drivers/net/ethernet/renesas/ravb_main.c