]> git.baikalelectronics.ru Git - kernel.git/commit
tg3: Fix flow control settings not propagated to hardware
authorNithin Sujir <nsujir@broadcom.com>
Tue, 9 Apr 2013 08:48:01 +0000 (08:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Apr 2013 19:14:14 +0000 (15:14 -0400)
commite9a7ee7c9ba4de627560972a318fe255cb435d6f
treeecb9648a3045c23c0318af8cf5d1485472b4ff75
parentd493a294c7fd8274fd03cdf9e7b0a9b8cff35c62
tg3: Fix flow control settings not propagated to hardware

In tg3_setup_copper_phy(), if autonegotiation is disabled, we need to
relink only if the speed or duplex does not match the configured
setting.  If flow control does not match, a relink is not necessary as
flow control is not a PHY setting.  Later on, we'll call
tg3_setup_flow_ctrl() to set up the MAC to the desired flow control
settings if we're in full duplex mode.

Signed-off-by: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/tg3.c