net: phy: add mdix_ctrl to hold the user configuration.
authorRaju Lakkaraju <Raju.Lakkaraju@microsemi.com>
Tue, 29 Nov 2016 09:46:46 +0000 (15:16 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 1 Dec 2016 16:26:47 +0000 (11:26 -0500)
Add new parameter mdix_ctrl to hold the user configuration.
Existing mdix maintain the current status of MDI(X) crossover performed or
not.
mdix_ctrl can configure either ETH_TP_MDI or ETH_TP_MDI_X orETH_TP_MDI_AUTO.

Signed-off-by: Raju Lakkaraju <Raju.Lakkaraju@microsemi.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/phy.h

index b53177fd38af36faf8a5c5e5fca6ccca3c939ff1..feb8a98e8dd3bf71618b6edbcb6324c92972baa8 100644 (file)
@@ -450,6 +450,7 @@ struct phy_device {
        struct net_device *attached_dev;
 
        u8 mdix;
+       u8 mdix_ctrl;
 
        void (*adjust_link)(struct net_device *dev);
 };