]> git.baikalelectronics.ru Git - kernel.git/commit
82xx: FCC: Fixing a bug causing to FCC port lock-up
authorMartin Roth <martin.roth@motorolasolutions.com>
Tue, 15 Dec 2015 02:17:53 +0000 (04:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Dec 2015 23:32:35 +0000 (18:32 -0500)
commita4db7f79b21cf018515dc1d6efd8156ac9cd4220
tree1fc77f55d999d4021c6783b6e65e935defef3de7
parentc14e70bdad7ac534149693cdb9bec201d0e3006b
82xx: FCC: Fixing a bug causing to FCC port lock-up

The patch fixes FCC port lock-up, which occurs as a result of a bug
during underrun/collision handling. Within the tx_startup() function
in mac-fcc.c, the address of last BD is not calculated correctly.
As a result of wrong calculation of the last BD address, the next
transmitted BD may be set to an area out of the transmit BD ring.
This actually causes to port lock-up and it is not recoverable.

Signed-off-by: Martin Roth <martin.roth@motorolasolutions.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fs_enet/mac-fcc.c