[PARPORT] automatically setting the TRUST_IRQ flag in a modularized setup...


amalmin@coho.halcyon.com
Sat, 12 Jun 1999 23:58:58 -0700


        Howdy.

        I have an HP Deskjet 694C printer which parport says could benefit from
the use of the TRUST_IRQ flag. However, I am using a modularized printing
setup...so parport only gets loaded when I actually print something. Is there
a way, short of recompiling the kernel, to set this flag automatically when
the module loads?

        The same port also hosts an old (PPA) zip drive. Will the TRUST_IRQ flag
annoy it? I suspect it won't, because I don't think the PPA module uses
interrupts...but I though I'd ask anyway.

        I've included some relevant syslog entries just for the hell of it...

Jun 6 12:43:54 skaro kernel: parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP]
Jun 6 12:43:54 skaro kernel: lp0: using parport0 (interrupt-driven).
Jun 6 12:44:07 skaro kernel: lp0: the printing could be optimized using the TRUST_IRQ flag, see the top of linux/drivers/char/lp.c

=============

Jun 12 21:12:49 skaro kernel: parport0: PC-style at 0x378, irq 7 [SPP,PS2,EPP]
Jun 12 21:12:51 skaro kernel: parport0: Printer, HEWLETT-PACKARD DESKJET 690C
Jun 12 21:12:51 skaro kernel: lp0: using parport0 (interrupt-driven).

=============

Jun 11 16:56:02 skaro kernel: ppa: Version 2.03 (for Linux 2.2.x)
Jun 11 16:56:02 skaro kernel: ppa: Found device at ID 6, Attempting to use EPP 32 bit
Jun 11 16:56:02 skaro kernel: ppa: Communication established with ID 6 using EPP 32 bit
Jun 11 16:56:02 skaro kernel: scsi1 : Iomega VPI0 (ppa) interface
Jun 11 16:56:02 skaro kernel: scsi : 2 hosts.
Jun 11 16:56:02 skaro kernel: Vendor: IOMEGA Model: ZIP 100 Rev: J.03
Jun 11 16:56:02 skaro kernel: Type: Direct-Access ANSI SCSI revision: 02
Jun 11 16:56:02 skaro kernel: Detected scsi removable disk sda at scsi1, channel 0, id 6, lun 0
Jun 11 16:56:03 skaro kernel: sda : READ CAPACITY failed.
Jun 11 16:56:03 skaro kernel: sda : status = 0, message = 00, host = 0, driver = 28
Jun 11 16:56:03 skaro kernel: sda : extended sense code = 2
Jun 11 16:56:03 skaro kernel: sda : block size assumed to be 512 bytes, disk size 1GB.
Jun 11 16:56:03 skaro kernel: sda:scsidisk I/O error: dev 08:00, sector 0
Jun 11 16:56:03 skaro kernel: unable to read partition table

        There was no disk in the drive at this point, so the errors don't mean
anything.

-- 
Audin Malmin - amalmin@halcyon.com
http://www.halcyon.com/amalmin - http://coho.halcyon.com:5023/
PGP fingerprint: 09 AD 5B BD CF 38 58 36  69 D3 38 45 86 27 8A 3B

-- 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 Sun 13 Jun 1999 - 04:12:40 EDT