]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
EHCI reset fix
authorVladimir Serbinenko <phcoder@gmail.com>
Mon, 22 Feb 2016 02:33:59 +0000 (03:33 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Mon, 22 Feb 2016 02:33:59 +0000 (03:33 +0100)
grub-core/bus/usb/ehci.c

index 268ae5a2342765fbcd39e9bf6bdb8a185b2f4ac7..4a39d2531e16d7a8c5f2f2a8ddfbfde2b3ee5397 100644 (file)
@@ -424,9 +424,10 @@ grub_ehci_reset (struct grub_ehci *e)
 {
   grub_uint64_t maxtime;
 
+  grub_dprintf ("ehci", "reset\n");
+
   grub_ehci_oper_write32 (e, GRUB_EHCI_COMMAND,
-                         GRUB_EHCI_CMD_HC_RESET
-                         | grub_ehci_oper_read32 (e, GRUB_EHCI_COMMAND));
+                         GRUB_EHCI_CMD_HC_RESET);
   /* Ensure command is written */
   grub_ehci_oper_read32 (e, GRUB_EHCI_COMMAND);
   /* XXX: How long time could take reset of HC ? */