[RFC/RFT] b43: A fix for DMA transmission sequence errors

Michael Büsch m at bues.ch
Thu Mar 14 14:55:49 EDT 2013


On Thu, 14 Mar 2013 13:46:19 -0500
Larry Finger <Larry.Finger at lwfinger.net> wrote:

>  	if (unlikely(slot != firstused)) {
>  		/* This possibly is a firmware bug and will result in
> -		 * malfunction, memory leaks and/or stall of DMA functionality. */
> +		 * malfunction, memory leaks and/or stall of DMA functionality.
> +		 */
>  		b43dbg(dev->wl, "Out of order TX status report on DMA ring %d. "
>  		       "Expected %d, but got %d\n",
>  		       ring->index, firstused, slot);
> -		return;
> +		if (slot == firstused + 2) {

I guess you need to handle wrap-over here.
This would probably do:
		if (slot == next_slot(ring, next_slot(ring, firstused)))

-- 
Michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/b43-dev/attachments/20130314/bbcb41a3/attachment.sig>


More information about the b43-dev mailing list