diff mbox

[2/2] hw/usb-ohci: Fix OHCI_TD_T1 bit position definition

Message ID 1316022540-31355-3-git-send-email-peter.maydell@linaro.org
State Accepted
Commit 8d11b78c9a243ae2d9cf27a15216f8554b6fc63d
Headers show

Commit Message

Peter Maydell Sept. 14, 2011, 5:49 p.m. UTC
The OHCI Transfer Descriptor T (DataToggle) bits are 24 and 25;
fix an error which accidentally overlaid them both on the same bit.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 hw/usb-ohci.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Gerd Hoffmann Sept. 15, 2011, 7:34 a.m. UTC | #1
On 09/14/11 19:49, Peter Maydell wrote:
> The OHCI Transfer Descriptor T (DataToggle) bits are 24 and 25;
> fix an error which accidentally overlaid them both on the same bit.
>
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>

Patch added to usb patch queue.

thanks,
   Gerd
diff mbox

Patch

diff --git a/hw/usb-ohci.c b/hw/usb-ohci.c
index 7487188..d314743 100644
--- a/hw/usb-ohci.c
+++ b/hw/usb-ohci.c
@@ -150,7 +150,7 @@  static void ohci_async_cancel_device(OHCIState *ohci, USBDevice *dev);
 #define OHCI_TD_DI_SHIFT  21
 #define OHCI_TD_DI_MASK   (7<<OHCI_TD_DI_SHIFT)
 #define OHCI_TD_T0        (1<<24)
-#define OHCI_TD_T1        (1<<24)
+#define OHCI_TD_T1        (1<<25)
 #define OHCI_TD_EC_SHIFT  26
 #define OHCI_TD_EC_MASK   (3<<OHCI_TD_EC_SHIFT)
 #define OHCI_TD_CC_SHIFT  28