Re: [PARPORT] Re: IMM driver weirdness.


Tim Waugh (tim@cyberelk.demon.co.uk)
Sat, 26 Sep 1998 15:02:39 +0100 (BST)


On Fri, 25 Sep 1998, Matthias Welwarsky wrote:

> > What other device cause the lock out? the lp driver?
>
> Hm, no. Actually it's one of the amateur radio modem drivers using the
> parallel port for wireless communication. The problem is that this
> device ist just a big FIFO buffer with no on board intelligence. The
> data is exchanged as a raw bytestream and all processing is done in
> software. The adapter just feeds a constant stream of bytes into the
> computer, so no way to release the port even for a short moment.
> Wouldn't make sense either, cause this adapter cannot share the port
> with any other device due to the hardware design.

Okay, here's a patch to actually use the exclusion stuff. Please let me
know how much success you have with it.

It should be applied on top of 2.1.122 + parport-arca-2.1.122-8 +
parport-excl-patch.

Tim.
*/

--- linux/drivers/net/hamradio/baycom_par.c~ Mon Jun 8 13:26:34 1998
+++ linux/drivers/net/hamradio/baycom_par.c Sat Sep 26 14:58:25 1998
@@ -397,7 +397,7 @@
         memset(&bc->modem, 0, sizeof(bc->modem));
         bc->hdrv.par.bitrate = 9600;
         if (!(bc->pdev = parport_register_device(pp, dev->name, par96_preempt, par96_wakeup,
- par96_interrupt, PARPORT_DEV_LURK, dev))) {
+ par96_interrupt, PARPORT_DEV_EXCL, dev))) {
                 printk(KERN_ERR "baycom_par: cannot register parport at 0x%lx\n", pp->base);
                 return -ENXIO;
         }
--- linux/drivers/net/hamradio/baycom_epp.c~ Wed Jul 22 00:33:48 1998
+++ linux/drivers/net/hamradio/baycom_epp.c Sat Sep 26 14:58:26 1998
@@ -1071,7 +1071,7 @@
 #endif
         memset(&bc->modem, 0, sizeof(bc->modem));
         if (!(bc->pdev = parport_register_device(pp, dev->name, epp_preempt, epp_wakeup,
- epp_interrupt, PARPORT_DEV_LURK, dev))) {
+ epp_interrupt, PARPORT_DEV_EXCL, dev))) {
                 printk(KERN_ERR "%s: cannot register parport at 0x%lx\n", bc_drvname, pp->base);
                 return -ENXIO;
         }

-- 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:18:25 EST