ChangeSet 1.2000.12.5, 2004/10/21 13:29:07-07:00, [EMAIL PROTECTED]

[PATCH] USB: ohci module param for broken bios

This patch provides a way to work around especially broken BIOS/SMM
implementations which claim they support the OS-handoff handshake
but actually don't.  It's confirmed that this resolves some OSDL bug
(ID isn't handy just now).

Signed-off-by: David Brownell <[EMAIL PROTECTED]>
Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>


 drivers/usb/host/ohci-hcd.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletion(-)


diff -Nru a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c
--- a/drivers/usb/host/ohci-hcd.c       2004-10-22 16:12:51 -07:00
+++ b/drivers/usb/host/ohci-hcd.c       2004-10-22 16:12:51 -07:00
@@ -154,6 +154,11 @@
 module_param (power_switching, bool, 0);
 MODULE_PARM_DESC (power_switching, "true (not default) to switch port power");
 
+/* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */
+static int no_handshake = 0;
+module_param (no_handshake, bool, 0);
+MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake");
+
 /*-------------------------------------------------------------------------*/
 
 /*
@@ -426,7 +431,7 @@
 
 #ifndef IR_DISABLE
        /* SMM owns the HC?  not for long! */
-       if (ohci_readl (&ohci->regs->control) & OHCI_CTRL_IR) {
+       if (!no_handshake && ohci_readl (&ohci->regs->control) & OHCI_CTRL_IR) {
                ohci_dbg (ohci, "USB HC TakeOver from BIOS/SMM\n");
 
                /* this timeout is arbitrary.  we make it long, so systems



-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to