[sane-devel] Re: umax_pp works well with "port 0x378" bot not with "/dev/parport0"

stef svoltz@wanadoo.fr
Sat, 18 Oct 2003 14:23:29 +0000


	Hello,

	after reading the spec 686a datasheet, I've seen something that I think 
worth trying. Could apply the following patch to 
linux-2.4.21/drivers/parport/parport_pc.c, rebuild and install modules, then reboot.
I'd like to know what the message 'Parallel port printer control=xx' reports. You
should get it with 'dmesg | grep "Parallel"'.


	The patch:

--- parport_pc.c-stock  2003-10-18 14:12:55.000000000 +0000
+++ parport_pc.c        2003-10-18 14:14:40.000000000 +0000
@@ -2577,8 +2577,9 @@
 
        /* 0xF0_5: EPP+ECP enable */
        outb (0xF0, 0x3F0);
-       printk (KERN_INFO "parport_pc: ing\n",
-       have_eppecp = (inb (0x3F1) & (1 << 5));
+       tmp=inb (0x3F1);
+       printk (KERN_INFO "Parallel port printer control=%02X\n",tmp);
+       have_eppecp = (tmp & (1 << 5));
        
        /*
         * lock super i/o configuration, clear 0x85_1



Regards,
	Stef