[PATCH] usb: power off devices at shutdown

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mohamed Amine IL Idrissi
Sometimes, usb devices won't be powered off at shutdown. This change
will make it power off.
Signed-off-by: Mohamed Amine IL Idrissi <ilidrissiamine@xxxxxxxxx>
---
This is related to bug 16576: https://bugzilla.kernel.org/show_bug.cgi?id=16576
--- linux-2.6/drivers/usb/host/ohci-hcd.c.orig  2010-08-26
12:58:45.978958450 +0000
+++ linux-2.6/drivers/usb/host/ohci-hcd.c       2010-08-26
13:00:01.401898124 +0000
@@ -383,7 +383,7 @@ static int ohci_get_frame (struct usb_hc
 static void ohci_usb_reset (struct ohci_hcd *ohci)
 {
        ohci->hc_control = ohci_readl (ohci, &ohci->regs->control);
-       ohci->hc_control &= OHCI_CTRL_RWC;
+      ohci->hc_control &= (OHCI_CTRL_RWC | OHCI_CTRL_HCFS);
        ohci_writel (ohci, ohci->hc_control, &ohci->regs->control);
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux