Re: [PATCH net-next 2/2] net: stmmac: Add callbacks for DWC xpcs Energy Efficient Ethernet
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
Date: 2021-05-18 10:06:46
Also in:
lkml, netdev
From: "Russell King (Oracle)" <linux@armlinux.org.uk>
Date: 2021-05-18 10:06:46
Also in:
lkml, netdev
On Mon, May 17, 2021 at 11:37:12AM +0000, Sit, Michael Wei Hong wrote:
quoted
From: Russell King <linux@armlinux.org.uk> On Mon, May 17, 2021 at 05:43:32PM +0800, Michael Sit Wei Hong wrote:quoted
Link xpcs callback functions for MAC to configure the xpcs EEEfeature.quoted
The clk_eee frequency is used to calculate theMULT_FACT_100NS. Thisquoted
is to adjust the clock tic closer to 100ns. Signed-off-by: Michael Sit Wei Hong[off-list ref] What is the initial state of the EEE configuration before the first call to stmmac_ethtool_op_set_eee()? Does it reflect the default EEE settings?The register values before the first call are the default reset values in the registers. The reset values assumes the clk_eee_i time period is 10ns, Hence, the reset value is set to 9. According to the register description, This value should be programmed such that the clk_eee_i_time_period * (MULT_FACT_100NS + 1) should be within 80 ns to 120 ns. Since we are using a fixed 19.2MHz clk_eee, which is 52ns, we are setting the value to 1.
Does that hardware default configuration match what is returned by ethtool --show-eee ? -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel