Commit:     6fd75b19483b2f6e6619602a535b4939e46921c1
Parent:     615ae11b3b4af7a5adb0819ff11b3b764eb92268
Author:     Alan Stern <[EMAIL PROTECTED]>
AuthorDate: Fri May 4 11:57:00 2007 -0400
Committer:  Greg Kroah-Hartman <[EMAIL PROTECTED]>
CommitDate: Fri Jun 8 16:24:31 2007 -0700

    OHCI: Fix machine check in ohci_hub_status_data
    This patch (as901) fixes an oversight in ohci-hcd.  The
    hub_status_data routine must not try to access the controller's
    memory-mapped registers if the controller is in a low-power state;
    such attempts will cause a crash on some architectures (such as PPC).
    Signed-off-by: Alan Stern <[EMAIL PROTECTED]>
    Signed-off-by: Greg Kroah-Hartman <[EMAIL PROTECTED]>
 drivers/usb/host/ohci-hub.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/usb/host/ohci-hub.c b/drivers/usb/host/ohci-hub.c
index 216c9c9..bb9cc59 100644
--- a/drivers/usb/host/ohci-hub.c
+++ b/drivers/usb/host/ohci-hub.c
@@ -417,6 +417,8 @@ ohci_hub_status_data (struct usb_hcd *hcd, char *buf)
        unsigned long   flags;
        spin_lock_irqsave (&ohci->lock, flags);
+       if (!test_bit(HCD_FLAG_HW_ACCESSIBLE, &hcd->flags))
+               goto done;
        /* undocumented erratum seen on at least rev D */
        if ((ohci->flags & OHCI_QUIRK_AMD756)
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to