Message ID | 1407616476-6181-2-git-send-email-jack.un@gmail.com |
---|---|
State | New |
Headers | show |
Hi, > Subject: [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back. > > Signed-off-by: Jack Un <jack.un@gmail.com> > --- > hw/usb/hcd-ohci.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c > index 13afdf5..cacf7b0 100644 > --- a/hw/usb/hcd-ohci.c > +++ b/hw/usb/hcd-ohci.c > @@ -619,8 +619,8 @@ static inline int ohci_put_td(OHCIState *ohci, > static inline int ohci_put_iso_td(OHCIState *ohci, > dma_addr_t addr, struct > ohci_iso_td *td) > { > - return put_dwords(ohci, addr, (uint32_t *)td, 4 || > - put_words(ohci, addr + 16, td->offset, 8)); > + return put_dwords(ohci, addr, (uint32_t *)td, 4) || > + put_words(ohci, addr + 16, td->offset, 8); > } > > static inline int ohci_put_hcca(OHCIState *ohci, > -- > 2.0.4 > Good catch. You can post a patch attaching a good commit message. Follow the rule please: http://wiki.qemu.org/Contribute/SubmitAPatch Best regards, -Gonglei
diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c index 13afdf5..cacf7b0 100644 --- a/hw/usb/hcd-ohci.c +++ b/hw/usb/hcd-ohci.c @@ -619,8 +619,8 @@ static inline int ohci_put_td(OHCIState *ohci, static inline int ohci_put_iso_td(OHCIState *ohci, dma_addr_t addr, struct ohci_iso_td *td) { - return put_dwords(ohci, addr, (uint32_t *)td, 4 || - put_words(ohci, addr + 16, td->offset, 8)); + return put_dwords(ohci, addr, (uint32_t *)td, 4) || + put_words(ohci, addr + 16, td->offset, 8); } static inline int ohci_put_hcca(OHCIState *ohci,
Signed-off-by: Jack Un <jack.un@gmail.com> --- hw/usb/hcd-ohci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)