[1840] in linux-scsi channel archive
Re: using ppa with the ZIP drive without power
daemon@ATHENA.MIT.EDU (Tim Waugh)
Sat May 10 12:59:31 1997
Date: Sat, 10 May 1997 17:54:02 +0100 (BST)
From: Tim Waugh <tmw20@cam.ac.uk>
Reply-To: Tim Waugh <tmw20@cam.ac.uk>
To: Andrea Arcangeli <arcangeli@mbox.queen.it>
cc: linux-parport@torque.net, linux-scsi@vger.rutgers.edu
In-Reply-To: <Pine.LNX.3.96.970510162200.269B-100000@arca.queen.it>
On Sat, 10 May 1997, Andrea Arcangeli wrote:
> With kernel [pre-2.1.37-7] patched with the new campbell ppa.tgz, if I
> don' t give power the ZIP drive and I run:
>
> arca:/home/andrea# modprobe ppa
> /lib/modules/2.1.37/scsi/ppa.o: init_module: Device or resource busy
> scsi_mod: Device or resource busy
> arca:/home/andrea# modprobe -r ppa
> arca:/home/andrea# lsmod
> Module Size Used by
> scsi_mod 27960 1
> parport 9896 0
> sound 151896 0
> vfat 12160 1
> fat 23724 1 [vfat]
> arca:/home/andrea# rmmod scsi_mod
> rmmod: scsi_mod: Device or resource busy
>
> I can' t remove in any way scsi_mod.
I think you need to apply this patch:
--- linux/drivers/scsi/scsi_module.c~ Sat May 10 17:50:02 1997
+++ linux/drivers/scsi/scsi_module.c Sat May 10 17:50:03 1997
@@ -34,6 +34,8 @@
int init_module(void) {
driver_template.module = &__this_module;
scsi_register_module(MODULE_SCSI_HA, &driver_template);
+ if (driver_template.present == 0)
+ scsi_unregister_module(MODULE_SCSI_HA, &driver_template);
return (driver_template.present == 0);
}
David originally included this in the old "parbus" distribution and I'd
assumed it had been merged in, but it looks like it hasn't.
I've cc'd the SCSI people to let them know.
Tim.
*/