qla3xxx: bugfix: Fix bad logical operation in link state machine.
Luckily, this wasn't reported or reproduced. The logical operation for setting duplex had wrong grouping. Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
3e23b7d3b5
commit
ad4c9a09c7
1 changed files with 5 additions and 10 deletions
|
@ -1456,15 +1456,10 @@ static void ql_phy_start_neg_ex(struct ql3_adapter *qdev)
|
||||||
PHYAddr[qdev->mac_index]);
|
PHYAddr[qdev->mac_index]);
|
||||||
reg &= ~PHY_GIG_ALL_PARAMS;
|
reg &= ~PHY_GIG_ALL_PARAMS;
|
||||||
|
|
||||||
if(portConfiguration &
|
if(portConfiguration & PORT_CONFIG_1000MB_SPEED) {
|
||||||
PORT_CONFIG_FULL_DUPLEX_ENABLED &
|
if(portConfiguration & PORT_CONFIG_FULL_DUPLEX_ENABLED)
|
||||||
PORT_CONFIG_1000MB_SPEED) {
|
|
||||||
reg |= PHY_GIG_ADV_1000F;
|
reg |= PHY_GIG_ADV_1000F;
|
||||||
}
|
else
|
||||||
|
|
||||||
if(portConfiguration &
|
|
||||||
PORT_CONFIG_HALF_DUPLEX_ENABLED &
|
|
||||||
PORT_CONFIG_1000MB_SPEED) {
|
|
||||||
reg |= PHY_GIG_ADV_1000H;
|
reg |= PHY_GIG_ADV_1000H;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue