Remove the call to ulpt_reset(). Although this *shouldn't* cause printers to

disconnect, it does, and this is *not* what the "prime" behavior was for in
lpt.
This commit is contained in:
mycroft 2004-07-03 19:33:15 +00:00
parent f702e25494
commit 81ff095ed7
1 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ulpt.c,v 1.63 2004/06/14 13:52:55 augustss Exp $ */
/* $NetBSD: ulpt.c,v 1.64 2004/07/03 19:33:15 mycroft Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
/*
@ -43,7 +43,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.63 2004/06/14 13:52:55 augustss Exp $");
__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.64 2004/07/03 19:33:15 mycroft Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -543,8 +543,10 @@ ulptopen(dev_t dev, int flag, int mode, usb_proc_ptr p)
error = 0;
sc->sc_refcnt++;
#if 0 /* XXX causes some printers to disconnect */
if ((flags & ULPT_NOPRIME) == 0)
ulpt_reset(sc);
#endif
for (spin = 0; (ulpt_status(sc) & LPS_SELECT) == 0; spin += STEP) {
DPRINTF(("ulpt_open: waiting a while\n"));