Re: [RFC 2/8] net-next: phy: dont auto handle carrier state when multiple phys are attached

2015-11-24 Thread Florian Fainelli
On 22/11/15 00:40, John Crispin wrote: > A network core might have more than one phy attached to its cpu port via a > switch. The current code will set the carrier state to on/off when ever a > cable is plugged into any of these ports. Not really, no. The current PHY library implementation does

[RFC 2/8] net-next: phy: dont auto handle carrier state when multiple phys are attached

2015-11-22 Thread John Crispin
A network core might have more than one phy attached to its cpu port via a switch. The current code will set the carrier state to on/off when ever a cable is plugged into any of these ports. The patch adds a new bool that allows the driver to tell the phy_device to not set the carrier state.