[PARPORT] Patch in 2.1.105


Tim Waugh (tim@cyberelk.demon.co.uk)
Mon, 8 Jun 1998 20:33:28 +0100 (BST)


Hi,

I can see what prompted this change, but wouldn't it be better to still
write something vaguely sensible to a potential ECR (i.e. base isn't
something like 0x3bc) before checking for SPP?

(Is it possible for ECR to be so badly wrong that the read-write test
could fail?)

Tim.
*/

@@ -304,7 +314,6 @@
 static int parport_SPP_supported(struct parport *pb)
 {
        /* Do a simple read-write test to make sure the port exists. */
- parport_pc_write_econtrol(pb, 0xc);
        parport_pc_write_control(pb, 0xc);
        parport_pc_write_data(pb, 0xaa);
        if (parport_pc_read_data(pb) != 0xaa) return 0;

-- To unsubscribe, send mail to: linux-parport-request@torque.net --
-- with the single word "unsubscribe" in the body of the message. --



This archive was generated by hypermail 2.0b3 on Wed 30 Dec 1998 - 10:17:49 EST