]> 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)
commit4f43617153398c2b36307ba131ac782ff7c0c860
tree1fc77f55d999d4021c6783b6e65e935defef3de7
parentddae2bea3c0f9455ad0decac6ec030d2acb60fb7
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