From: Michael Chan Date: Wed, 13 Jul 2011 17:24:18 +0000 (+0000) Subject: cnic: Fix port_mode setting X-Git-Tag: MMI-PSA29.97-13-9~18929^2~152 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7d40315c9643034ac4b5c9dda480d0124416f89;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git cnic: Fix port_mode setting CHIP_2_PORT_MODE was not set correctly. Signed-off-by: Michael Chan Reviewed-by: Matt Carlson Signed-off-by: David S. Miller --- diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index 23d6108c64c6..a881e42c0add 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c @@ -4834,7 +4834,7 @@ static int cnic_start_bnx2x_hw(struct cnic_dev *dev) cp->port_mode = CHIP_4_PORT_MODE; cp->pfid = func >> 1; } else { - cp->port_mode = CHIP_4_PORT_MODE; + cp->port_mode = CHIP_2_PORT_MODE; cp->pfid = func & 0x6; } } else {