If AMD doesn't publish their workaround soon, I'd be inclined
to send a patch like this to Linus. The "WILL KILL SYSTEM"
bit is overstated ... it's not quite that certain.
----- Original Message -----
From: "Manuel Estrada Sainz" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 12, 2001 6:46 AM
Subject: [linux-usb-devel] [PATCH] usb-ohci: forcing usage of a blacklisted device
>
> Hello all,
>
> I personaly didn't have much trouble with my AMD-756 and anyway, I
> can't exchange the hardware so I wrote the following patch agains 2.4.3
> to be able to force usage of my hardware.
>
> I tried to clearly state that doing so is dangerous, if someone finds
> a more frightening way of saying it, please do.
>
>
> Hope you like it
>
> Manuel
>
> PS: Please reply directly, as I am not on the list.
>
> diff -urN kernel-source-2.4/drivers/usb/usb-ohci.c
>kernel-source-2.4-mine/drivers/usb/usb-ohci.c
> --- kernel-source-2.4/drivers/usb/usb-ohci.c Fri Mar 30 11:52:38 2001
> +++ kernel-source-2.4-mine/drivers/usb/usb-ohci.c Thu Apr 12 11:51:01 2001
> @@ -89,6 +89,15 @@
>
> #define OHCI_UNLINK_TIMEOUT (HZ / 10)
>
> +/* PARAMETER VARIABLES: */
> +static int force_blacklisted = 0; /* Use devices even if blacklisted.
> + Warning: someone has blacklisted your
> + hardware for a reason, by using this
> + you are on your own */
> +
> +MODULE_PARM(force_blacklisted, "i");
> +MODULE_PARM_DESC(force_blacklisted, "Use devices even if blacklisted (THIS WILL
>KILL YOUR
SYSTEM)");
> +
> static LIST_HEAD (ohci_hcd_list);
> static spinlock_t usb_ed_lock = SPIN_LOCK_UNLOCKED;
>
> @@ -2335,7 +2344,8 @@
> if (id->driver_data) {
> info ("%s (%s): %s", dev->slot_name,
> dev->name, (char *) id->driver_data);
> - return -ENODEV;
> + if(!force_blacklisted)
> + return -ENODEV;
> }
>
> if (pci_enable_device(dev) < 0)
> --
>
> -------------------------------------------------
> Manuel Estrada
>
> [EMAIL PROTECTED]
> -------------------------------------------------
> God grant us the serenity to accept the things we cannot change, courage to
> change the things we can, and wisdom to know the difference.
>
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel