Re: [PATCH net-next v1 2/2] net: dsa: realtek: rtl8365mb: add EEE support

Andrew Lunn <[email protected]>
Newsgroups gmane.linux.network,gmane.linux.kernel
Message-ID <[email protected]>
> +static int rtl8365mb_phylink_mac_enable_tx_lpi(struct phylink_config *config,
> +					       u32 timer, bool tx_clock_stop)
> +{
> +	/* The hardware manages LPI itself; there is no MAC-level LPI control.
> +	 * This callback only signals LPI awareness to phylink.
> +	 */
> +	return 0;
> +}
> +
> +static void rtl8365mb_phylink_mac_disable_tx_lpi(struct phylink_config *config)
> +{
> +}
> +

So what happens when i do:

ethtool --set-eee eth42 off

or

ethtool --set-eee eth42 tx-lpi on

I don't now what phylib does with advertise in these cases, but maybe
you need to go behind phylink/phylib back and set advertise to 0, so
that the MAC does the right thing?

Or you need to return -EOPNOTSUPP for these?

	Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.