Skip to contentSkip to conversation

ehea: Modified initial autoneg state determination

PATCH In review Thomas Klein 1 participant 1 message Jan 22, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/7 ehea: Modified initial autoneg state determination

Logical partitions are not allowed to (try to) set the autonegotiation status. This patch removes the respective function call from the port setup function.

---

 drivers/net/ehea/ehea_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ehea/ehea_main.c +2 -2
diff -Nurp -X dontdiff linux-2.6.20-rc5/drivers/net/ehea/ehea_main.c patched_kernel/drivers/net/ehea/ehea_main.c
@@ -642,6 +642,8 @@ int ehea_sense_port_attr(struct ehea_por
 		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
 
 	INIT_LIST_HEAD(&port->mc_list->list);
 
-	ehea_set_portspeed(port, EHEA_SPEED_AUTONEG);
-
 	ret = ehea_sense_port_attr(port);
 	if (ret)
 		goto out;