]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
Shut down PHCI controller harder
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 2 Jun 2010 03:00:54 +0000 (05:00 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Wed, 2 Jun 2010 03:00:54 +0000 (05:00 +0200)
bus/usb/ohci.c

index fd378cc8d0ee63389420fa5179fde0c3bbf20584..a42d9fee135f78533374cc8244648f06d47948d9 100644 (file)
@@ -970,7 +970,10 @@ grub_ohci_fini_hw (int noreturn __attribute__ ((unused)))
       grub_ohci_writereg32 (o, GRUB_OHCI_REG_BULKHEAD, 0);
       grub_ohci_writereg32 (o, GRUB_OHCI_REG_BULKCURR, 0);
       grub_ohci_writereg32 (o, GRUB_OHCI_REG_DONEHEAD, 0);
+      grub_ohci_writereg32 (o, GRUB_OHCI_REG_CONTROL, 0);
+      grub_ohci_writereg32 (o, GRUB_OHCI_REG_CMDSTATUS, 1);
     }
+  grub_millisleep (10);
 
   return GRUB_ERR_NONE;
 }