Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-18 Thread Andrew Lunn
> I know this looks boring, I do not particularly enjoy it myself, but I > think this is also important. I don't mind fixing the poking function as > well in the near future. It would be great if you do. It could be as simple as using phy_ethtool_get_eee() and phy_ethtool_set_eee(). Andrew

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-18 Thread Vivien Didelot
Hi David, David Miller writes: > However, in this particular case, this issue was brought to Vivien's > attention multiple times in the past. > > And I think the direct PHY poking issue is much more important than > these seemingly endless reorganizations of the driver that Vivien is > doing. >

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-18 Thread David Miller
From: Florian Fainelli Date: Tue, 18 Jul 2017 09:01:01 -0700 > On 07/17/2017 02:10 PM, David Miller wrote: >> From: Andrew Lunn >> Date: Mon, 17 Jul 2017 23:04:05 +0200 >> >>> On Mon, Jul 17, 2017 at 01:45:49PM -0700, David Miller wrote: From: Vivien Didelot Date: Mon, 17 Jul 2017 15

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-18 Thread Florian Fainelli
On 07/17/2017 02:10 PM, David Miller wrote: > From: Andrew Lunn > Date: Mon, 17 Jul 2017 23:04:05 +0200 > >> On Mon, Jul 17, 2017 at 01:45:49PM -0700, David Miller wrote: >>> From: Vivien Didelot >>> Date: Mon, 17 Jul 2017 15:32:52 -0400 >>> Hi Andrew, Andrew Lunn writes: >>

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-17 Thread David Miller
From: Andrew Lunn Date: Mon, 17 Jul 2017 23:04:05 +0200 > On Mon, Jul 17, 2017 at 01:45:49PM -0700, David Miller wrote: >> From: Vivien Didelot >> Date: Mon, 17 Jul 2017 15:32:52 -0400 >> >> > Hi Andrew, >> > >> > Andrew Lunn writes: >> > >> >> I never liked this. I think it is architectural

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-17 Thread Andrew Lunn
On Mon, Jul 17, 2017 at 01:45:49PM -0700, David Miller wrote: > From: Vivien Didelot > Date: Mon, 17 Jul 2017 15:32:52 -0400 > > > Hi Andrew, > > > > Andrew Lunn writes: > > > >> I never liked this. I think it is architecturally wrong for the switch > >> to be poking around in the PHY. It shou

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-17 Thread David Miller
From: Vivien Didelot Date: Mon, 17 Jul 2017 15:32:52 -0400 > Hi Andrew, > > Andrew Lunn writes: > >> I never liked this. I think it is architecturally wrong for the switch >> to be poking around in the PHY. It should ask the PHY driver. This is >> especially true for external PHYs which might

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-17 Thread Vivien Didelot
Hi Andrew, Andrew Lunn writes: > I never liked this. I think it is architecturally wrong for the switch > to be poking around in the PHY. It should ask the PHY driver. This is > especially true for external PHYs which might not be a Marvell PHY. I share the same concern. However this patch is j

Re: [PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-17 Thread Andrew Lunn
> diff --git a/drivers/net/dsa/mv88e6xxx/phy.c b/drivers/net/dsa/mv88e6xxx/phy.c > index 436668bd50dc..317ae89cfa68 100644 > --- a/drivers/net/dsa/mv88e6xxx/phy.c > +++ b/drivers/net/dsa/mv88e6xxx/phy.c > @@ -246,3 +246,99 @@ int mv88e6xxx_phy_setup(struct mv88e6xxx_chip *chip) > { > return

[PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-17 Thread Vivien Didelot
The 88E6352 family supports Energy Detect and has one bit for Sense and one bit for periodically transmit NLP (Energy Detect+TM). The 88E6390 family adds another bit to distinguish Auto or SW wake-up. Chips supporting EEE all have an EEE Enabled bit in the Port Status Register. This patch adds new

[PATCH net-next 11/12] net: dsa: mv88e6xxx: add Energy Detect ops

2017-07-04 Thread Vivien Didelot
The 88E6352 family supports Energy Detect and has one bit for Sense and one bit for periodically transmit NLP (Energy Detect+TM). The 88E6390 family adds another bit to distinguish Auto or SW wake-up. Chips supporting EEE all have an EEE Enabled bit in the Port Status Register. This patch adds new