mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 09:11:07 -04:00
Add parenthesis so that we get all of the bits all
of the contents of the CCSCBCTL register into our local varaible. The other bits are used in later tests. This avoids a potential deadlock in ahd_run_qoutfifo() if we happen to catch the DMA engine in just the right state.
This commit is contained in:
parent
ce3ae5c7e3
commit
f5db59f9d6
1 changed files with 2 additions and 2 deletions
|
|
@ -37,7 +37,7 @@
|
|||
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
||||
* POSSIBILITY OF SUCH DAMAGES.
|
||||
*
|
||||
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#198 $
|
||||
* $Id: //depot/aic7xxx/aic7xxx/aic79xx.c#199 $
|
||||
*
|
||||
* $FreeBSD$
|
||||
*/
|
||||
|
|
@ -378,7 +378,7 @@ ahd_flush_qoutfifo(struct ahd_softc *ahd)
|
|||
* Wait for any inprogress DMA to complete and clear DMA state
|
||||
* if this if for an SCB in the qinfifo.
|
||||
*/
|
||||
while ((ccscbctl = ahd_inb(ahd, CCSCBCTL) & (CCARREN|CCSCBEN)) != 0) {
|
||||
while (((ccscbctl = ahd_inb(ahd, CCSCBCTL)) & (CCARREN|CCSCBEN)) != 0) {
|
||||
|
||||
if ((ccscbctl & (CCSCBDIR|CCARREN)) == (CCSCBDIR|CCARREN)) {
|
||||
if ((ccscbctl & ARRDONE) != 0)
|
||||
|
|
|
|||
Loading…
Reference in a new issue