some internal modems need LOTS of time to generate an interrupt
on demand.. increase DELAY from 1000 uS to 10000uS
This commit is contained in:
parent
cb9bf21103
commit
75d050aeaa
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.142 1996/05/02 09:34:40 phk Exp $
|
||||
* $Id: sio.c,v 1.143 1996/06/17 14:23:39 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -670,7 +670,7 @@ sioprobe(dev)
|
||||
failures[0] = inb(iobase + com_cfcr) - CFCR_8BITS;
|
||||
failures[1] = inb(iobase + com_ier) - IER_ETXRDY;
|
||||
failures[2] = inb(iobase + com_mcr) - mcr_image;
|
||||
DELAY(1000); /* XXX */
|
||||
DELAY(10000); /* Some internal modems need this time */
|
||||
if (idev->id_irq != 0)
|
||||
failures[3] = isa_irq_pending(idev) ? 0 : 1;
|
||||
failures[4] = (inb(iobase + com_iir) & IIR_IMASK) - IIR_TXRDY;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.142 1996/05/02 09:34:40 phk Exp $
|
||||
* $Id: sio.c,v 1.143 1996/06/17 14:23:39 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -670,7 +670,7 @@ sioprobe(dev)
|
||||
failures[0] = inb(iobase + com_cfcr) - CFCR_8BITS;
|
||||
failures[1] = inb(iobase + com_ier) - IER_ETXRDY;
|
||||
failures[2] = inb(iobase + com_mcr) - mcr_image;
|
||||
DELAY(1000); /* XXX */
|
||||
DELAY(10000); /* Some internal modems need this time */
|
||||
if (idev->id_irq != 0)
|
||||
failures[3] = isa_irq_pending(idev) ? 0 : 1;
|
||||
failures[4] = (inb(iobase + com_iir) & IIR_IMASK) - IIR_TXRDY;
|
||||
|
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
|
||||
* $Id: sio.c,v 1.142 1996/05/02 09:34:40 phk Exp $
|
||||
* $Id: sio.c,v 1.143 1996/06/17 14:23:39 bde Exp $
|
||||
*/
|
||||
|
||||
#include "opt_comconsole.h"
|
||||
@ -670,7 +670,7 @@ sioprobe(dev)
|
||||
failures[0] = inb(iobase + com_cfcr) - CFCR_8BITS;
|
||||
failures[1] = inb(iobase + com_ier) - IER_ETXRDY;
|
||||
failures[2] = inb(iobase + com_mcr) - mcr_image;
|
||||
DELAY(1000); /* XXX */
|
||||
DELAY(10000); /* Some internal modems need this time */
|
||||
if (idev->id_irq != 0)
|
||||
failures[3] = isa_irq_pending(idev) ? 0 : 1;
|
||||
failures[4] = (inb(iobase + com_iir) & IIR_IMASK) - IIR_TXRDY;
|
||||
|
Loading…
x
Reference in New Issue
Block a user