]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ehea: Modified initial autoneg state determination
authorThomas Klein <osstklei@de.ibm.com>
Mon, 22 Jan 2007 11:53:20 +0000 (12:53 +0100)
committerJeff Garzik <jeff@garzik.org>
Tue, 23 Jan 2007 05:59:20 +0000 (00:59 -0500)
Logical partitions are not allowed to (try to) set the autonegotiation status.
This patch removes the respective function call from the port setup function.

Signed-off-by: Thomas Klein <tklein@de.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/ehea/ehea_main.c

index 3e9c760cb283b288e64d3e6d74cd3124d1b8a6b4..d84d0950b658cd5f92b88b737491fb37d0891016 100644 (file)
@@ -642,6 +642,8 @@ int ehea_sense_port_attr(struct ehea_port *port)
                break;
        }
 
+       port->autoneg = 1;
+
        /* Number of default QPs */
        port->num_def_qps = cb0->num_default_qps;
 
@@ -2334,8 +2336,6 @@ static int ehea_setup_single_port(struct ehea_port *port,
 
        INIT_LIST_HEAD(&port->mc_list->list);
 
-       ehea_set_portspeed(port, EHEA_SPEED_AUTONEG);
-
        ret = ehea_sense_port_attr(port);
        if (ret)
                goto out;