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:
Justin T. Gibbs 2003-06-23 22:06:34 +00:00
parent ce3ae5c7e3
commit f5db59f9d6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=116767

View File

@ -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)