]> git.ipfire.org Git - people/arne_f/kernel.git/commit
B43: Handle DMA RX descriptor underrun
authorThommy Jakobsson <thommyj@gmail.com>
Tue, 23 Apr 2013 19:45:11 +0000 (21:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 19 May 2013 17:54:41 +0000 (10:54 -0700)
commit5219d3dd6f96a7640929307a2344d9905cdf6b2c
tree02e238b6e9d50f0ef70aa044ae815eff9f75eda3
parent2969620bf1452ec310fdcbf0d5a567627d0f5c74
B43: Handle DMA RX descriptor underrun

commit 73b82bf0bfbf58e6ff328d3726934370585f6e78 upstream.

Add handling of rx descriptor underflow. This fixes a fault that could
happen on slow machines, where data is received faster than the CPU can
handle. In such a case the device will use up all rx descriptors and
refuse to send any more data before confirming that it is ok. This
patch enables necessary interrupt to discover such a situation and will
handle them by dropping everything in the ring buffer.

Reviewed-by: Michael Buesch <m@bues.ch>
Signed-off-by: Thommy Jakobsson <thommyj@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/b43/dma.c
drivers/net/wireless/b43/dma.h
drivers/net/wireless/b43/main.c