]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: et131x: Remove ai_force_[duplex|speed] from et131x_adapter
authorMark Einon <mark.einon@gmail.com>
Sun, 4 Sep 2011 10:24:42 +0000 (11:24 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 6 Sep 2011 23:54:58 +0000 (16:54 -0700)
The ai_force settings were used to set the ethernet speed and duplex manually.
This is now being done by the phy_device, so remove.

Signed-off-by: Mark Einon <mark.einon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et1310_phy.c
drivers/staging/et131x/et131x_adapter.h

index 3c82f44a9615f35e760c57148d52653e123e188e..c4bc41dd185bd6db22189d745c67ff9111f59ab5 100644 (file)
@@ -498,10 +498,8 @@ void et131x_mii_check(struct et131x_adapter *adapter,
                }
        }
 
-       if ((bmsr_ints & BMSR_ANEGCOMPLETE) ||
-          (adapter->ai_force_duplex == 3 && (bmsr_ints & BMSR_LSTATUS))) {
-               if ((bmsr & BMSR_ANEGCOMPLETE) ||
-                   adapter->ai_force_duplex == 3) {
+       if (bmsr_ints & BMSR_ANEGCOMPLETE) {
+               if (bmsr & BMSR_ANEGCOMPLETE) {
                        et1310_phy_link_status(adapter,
                                             &link_status, &autoneg_status,
                                             &speed, &duplex, &mdi_mdix,
index 292a7719b599655dc396fb95dd4750eec1ce31ec..78f2894d76e855b839563b931cfbb4d59ba10275 100644 (file)
@@ -181,8 +181,6 @@ struct et131x_adapter {
        u32 registry_jumbo_packet;      /* Max supported ethernet packet size */
 
        /* Derived from the registry: */
-       u8 ai_force_duplex;     /* duplex setting */
-       u16 ai_force_speed;     /* 'Speed', user over-ride of line speed */
        u8 flowcontrol;         /* flow control validated by the far-end */
 
        /* Minimize init-time */