Reset the service bit of ECP register, so that write threshold would

be identified correctly
Problem reported and fix provided in PR kern/24185 by Paul Shupak
This commit is contained in:
jdolecek 2004-01-22 14:22:20 +00:00
parent 20f66016c1
commit e17503e59e
1 changed files with 5 additions and 1 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: atppc.c,v 1.4 2004/01/22 01:21:41 bjh21 Exp $ */
/* $NetBSD: atppc.c,v 1.5 2004/01/22 14:22:20 jdolecek Exp $ */
/*
* Copyright (c) 2001 Alcove - Nicolas Souchu
@ -556,6 +556,10 @@ atppc_detect_fifo(struct atppc_softc * atppc)
/* Change direction */
atppc_w_ctr(atppc, (ctr_sav & ~IRQENABLE) & ~PCD);
atppc_barrier_w(atppc);
/* Clear the serviceIntr bit we've already set in the above loop */
atppc_w_ecr(atppc, ATPPC_ECR_TST);
atppc_barrier_w(atppc);
/* Determine writeIntrThreshold - empty FIFO until serviceIntr is set */
for(atppc->sc_wthr = 0; i > -1; i--) {