net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support
authorGrygorii Strashko <grygorii.strashko@ti.com>
Thu, 24 Aug 2023 11:46:18 +0000 (17:16 +0530)
committerDavid S. Miller <davem@davemloft.net>
Sun, 27 Aug 2023 06:13:24 +0000 (07:13 +0100)
commit443a2367ba3c96e0f35ce801bcdfb2ce91f5038c
tree8e20c00a14deee79a8d6ca5c7c81ae56e5f64ebf
parent186734c158865747f7160b461afcabfaab8f9bca
net: ti: icssg-prueth: am65x SR2.0 add 10M full duplex support

For AM65x SR2.0 it's required to enable IEP1 in raw 64bit mode which is
used by PRU FW to monitor the link and apply w/a for 10M link issue.
Note. No public errata available yet.

Without this w/a the PRU FW will stuck if link state changes under TX
traffic pressure.

Hence, add support for 10M full duplex for AM65x SR2.0:
 - add new IEP API to enable IEP, but without PTP support
 - add pdata quirk_10m_link_issue to enable 10M link issue w/a.

Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Reviewed-by: Roger Quadros <rogerq@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Reviewed-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: MD Danish Anwar <danishanwar@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/icssg/icss_iep.c
drivers/net/ethernet/ti/icssg/icss_iep.h
drivers/net/ethernet/ti/icssg/icssg_config.c
drivers/net/ethernet/ti/icssg/icssg_prueth.c
drivers/net/ethernet/ti/icssg/icssg_prueth.h