• Maya Erez's avatar
    wil6210: reset buff id in status message after completion · b4a967b7
    Maya Erez authored
    Since DR bit and buffer id are written in different dwords of
    the status message, the DR bit can already be set to 1 while the
    buffer id is not updated yet.
    Resetting the buffer id in the status message will allow the driver
    to identify such cases and re-read the status message until the buffer
    id is written by HW.
    In case DR bit is set but buffer id is zero, need to read the status
    message again, until a valid id is identified.
    
    In addition to that, move the completed buffer id to the tail of the
    free list to prevent its immediate reuse in the upcoming refill.
    Signed-off-by: default avatarMaya Erez <merez@codeaurora.org>
    Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
    b4a967b7
wil6210.h 47.6 KB