Search Linux Wireless

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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 14 Mar 2013 13:46:19 -0500
Larry Finger <Larry.Finger@xxxxxxxxxxxx> 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

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux