Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Don't comment out printer reset on open, if this...
details: https://anonhg.NetBSD.org/src/rev/b7578d3f3fe5
branches: trunk
changeset: 763639:b7578d3f3fe5
user: mbalmer <mbalmer%NetBSD.org@localhost>
date: Tue Mar 29 07:48:13 2011 +0000
description:
Don't comment out printer reset on open, if this causes a problem, use the
/dev/ulpnX device node which sets a flag that prevents the reset.
diffstat:
sys/dev/usb/ulpt.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 26cac75a4ecc -r b7578d3f3fe5 sys/dev/usb/ulpt.c
--- a/sys/dev/usb/ulpt.c Tue Mar 29 07:22:31 2011 +0000
+++ b/sys/dev/usb/ulpt.c Tue Mar 29 07:48:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ulpt.c,v 1.85 2010/11/03 22:34:24 dyoung Exp $ */
+/* $NetBSD: ulpt.c,v 1.86 2011/03/29 07:48:13 mbalmer Exp $ */
/* $FreeBSD: src/sys/dev/usb/ulpt.c,v 1.24 1999/11/17 22:33:44 n_hibma Exp $ */
/*
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.85 2010/11/03 22:34:24 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ulpt.c,v 1.86 2011/03/29 07:48:13 mbalmer Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -524,10 +524,8 @@
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) {
DPRINTFN(2, ("ulpt_open: waiting a while\n"));
Home |
Main Index |
Thread Index |
Old Index