diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-07-21 11:30:36 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-21 11:30:36 -0400 |
commit | ebbdbd7c02f4f8dea84e2956aa942bd18e1ddf93 (patch) | |
tree | b44dad848bb2c88d7f88cb071d5a36cf7c0f8bdc /drivers/net/ucc_geth.c | |
parent | afc079465e991ffb7fe197d1ad80eb8140e2c341 (diff) |
ucc_geth: do not touch net queue in adjust_link phylib callback
If the net queue has not been started, we'll get this nice oops
and non-working ethernet:
------------[ cut here ]------------
Kernel BUG at c01f4648 [verbose debug info unavailable]
Oops: Exception in kernel mode, sig: 5 [#1]
MPC836x RDK
Modules linked in:
NIP: c01f4648 LR: c01c0a10 CTR: c01c08e4
REGS: cf839e40 TRAP: 0700 Not tainted (2.6.26-05254-gc7b9969)
MSR: 00021032 <ME,IR,DR> CR: 22042044 XER: 00000000
TASK = cf828c30[4] 'events/0' THREAD: cf838000
GPR00: c01c0a10 cf839ef0 cf828c30 c035ceb0 cf8469a0 00000064 00000000 00000000
GPR08: c035ceb0 00000001 00000001 cf99c280 22044044 7ca81020 0fffc000 00000000
GPR16: 0fff2544 0fff63c0 00000000 0fff78e0 0ffa5580 00000004 00000000 00000000
GPR24: 02082000 cf9d0000 d1068000 00009032 cf846800 cf846b80 00000001 00000014
NIP [c01f4648] __netif_schedule+0x28/0x8c
LR [c01c0a10] adjust_link+0x12c/0x1e4
Call Trace:
[cf839ef0] [c0380f50] 0xc0380f50 (unreliable)
[cf839f10] [c01c0a10] adjust_link+0x12c/0x1e4
[cf839f40] [c01c2628] phy_state_machine+0x2e0/0x448
[cf839f60] [c00425e8] run_workqueue+0xc8/0x168
[cf839f90] [c0042c6c] worker_thread+0x70/0xd0
[cf839fd0] [c0046954] kthread+0x48/0x84
[cf839ff0] [c0012488] kernel_thread+0x44/0x60
Instruction dump:
7c0803a6 4e800020 3d20c036 9421ffe0 7c0802a6 7c681b78 3929ceb0 7c694a78
7d290034 90010024 bfa10014 5529d97e <0f090000> 39600002 38030024 7d200028
---[ end trace a57d367843bd2904 ]---
Since the driver is using phylib (which is doing netif_carrier_on/off()),
we should simply remove netif_tx_schedule_all() from adjust_link().
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ucc_geth.c')
-rw-r--r-- | drivers/net/ucc_geth.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ucc_geth.c b/drivers/net/ucc_geth.c index 756ba10b79d6..8f944e57fd55 100644 --- a/drivers/net/ucc_geth.c +++ b/drivers/net/ucc_geth.c | |||
@@ -1588,7 +1588,6 @@ static void adjust_link(struct net_device *dev) | |||
1588 | if (!ugeth->oldlink) { | 1588 | if (!ugeth->oldlink) { |
1589 | new_state = 1; | 1589 | new_state = 1; |
1590 | ugeth->oldlink = 1; | 1590 | ugeth->oldlink = 1; |
1591 | netif_tx_schedule_all(dev); | ||
1592 | } | 1591 | } |
1593 | } else if (ugeth->oldlink) { | 1592 | } else if (ugeth->oldlink) { |
1594 | new_state = 1; | 1593 | new_state = 1; |