Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Vivien Didelot
Vivien Didelot writes: > Second option is: we keep it KISS and let the driver define its noop, > but as I explain, it is confusing, especially for the get operation. In fact we should be good because the DSA layer will call ds->ops->{g,s}et_mac_eee before phy_ethtool_{g,s}et_eee, so if the DSA d

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Florian Fainelli
On 08/01/2017 10:27 AM, Andrew Lunn wrote: >> If the MAC does not support EEE but the PHY does I think you can still >> allow EEE to be advertised and enabled, you just won't have the MAC be >> able to leverage the power savings that EEE brings. AFAICT this is still >> a valid mode whereby the PHY

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Andrew Lunn
> If the MAC does not support EEE but the PHY does I think you can still > allow EEE to be advertised and enabled, you just won't have the MAC be > able to leverage the power savings that EEE brings. AFAICT this is still > a valid mode whereby the PHY is put in a lower power mode, just not the > wh

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: >> >> The PHY's EEE settings are already accessed by the DSA layer through the >> >> Marvell PHY driver and there is nothing to be done for switch's MACs. >> > >> > I'm confused, or missing something. Does not patch #1 mean that if the >> > DSA driver does not have

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Florian Fainelli
On 08/01/2017 09:06 AM, Andrew Lunn wrote: > On Tue, Aug 01, 2017 at 11:36:13AM -0400, Vivien Didelot wrote: >> Hi Andrew, >> >> Andrew Lunn writes: >> >>> On Mon, Jul 31, 2017 at 06:17:18PM -0400, Vivien Didelot wrote: The PHY's EEE settings are already accessed by the DSA layer through the

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Andrew Lunn
On Tue, Aug 01, 2017 at 11:36:13AM -0400, Vivien Didelot wrote: > Hi Andrew, > > Andrew Lunn writes: > > > On Mon, Jul 31, 2017 at 06:17:18PM -0400, Vivien Didelot wrote: > >> The PHY's EEE settings are already accessed by the DSA layer through the > >> Marvell PHY driver and there is nothing to

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > On Mon, Jul 31, 2017 at 06:17:18PM -0400, Vivien Didelot wrote: >> The PHY's EEE settings are already accessed by the DSA layer through the >> Marvell PHY driver and there is nothing to be done for switch's MACs. > > I'm confused, or missing something. Does not p

Re: [PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-08-01 Thread Andrew Lunn
On Mon, Jul 31, 2017 at 06:17:18PM -0400, Vivien Didelot wrote: > The PHY's EEE settings are already accessed by the DSA layer through the > Marvell PHY driver and there is nothing to be done for switch's MACs. I'm confused, or missing something. Does not patch #1 mean that if the DSA driver does

[PATCH net-next 10/11] net: dsa: mv88e6xxx: remove EEE support

2017-07-31 Thread Vivien Didelot
The PHY's EEE settings are already accessed by the DSA layer through the Marvell PHY driver and there is nothing to be done for switch's MACs. Remove all EEE support from the mv88e6xxx driver. Signed-off-by: Vivien Didelot --- drivers/net/dsa/mv88e6xxx/chip.c | 82 --