grub-devel
[Top][All Lists]
Advanced

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

[PATCH] correct definition of GRUB_EHCI_MULT_ONE, TWO and THREE


From: Christer Weinigel
Subject: [PATCH] correct definition of GRUB_EHCI_MULT_ONE, TWO and THREE
Date: Thu, 31 May 2012 13:46:02 +0200 (CEST)

I might as well submit this "obviously correct" patch also and save
the big EHCI patch for later.  This patch was made against the latest
version in the trunk on bzr.savannah.gnu.org.

  /Christer

GRUB_EHCI_MULT_ONE, TWO and THREE should be 1, 2 and 3 but were
all zero.  Use the correct values instead.

diff --git a/grub-core/bus/usb/ehci.c b/grub-core/bus/usb/ehci.c
index 5e3a723..2e5d799 100644
--- a/grub-core/bus/usb/ehci.c
+++ b/grub-core/bus/usb/ehci.c
@@ -209,9 +209,9 @@ enum
 {
   GRUB_EHCI_MULT_MASK = (3 << 30),
   GRUB_EHCI_MULT_RESERVED = (0 << 30),
-  GRUB_EHCI_MULT_ONE = (0 << 30),
-  GRUB_EHCI_MULT_TWO = (0 << 30),
-  GRUB_EHCI_MULT_THREE = (0 << 30),
+  GRUB_EHCI_MULT_ONE = (1 << 30),
+  GRUB_EHCI_MULT_TWO = (2 << 30),
+  GRUB_EHCI_MULT_THREE = (3 << 30),
   GRUB_EHCI_DEVPORT_MASK = (0x7f << 23),
   GRUB_EHCI_HUBADDR_MASK = (0x7f << 16)
 };

-- 
Have laptop, will travel.  I'm a consultant looking for interesting
jobs anywhere in the world.  I'm an experienced software engineer with
a solid understanding of hardware.  Specialities: Linux, device
drivers and embedded systems in general.  Find me at www.weinigel.se.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]