* [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back. @ 2014-08-09 20:34 Jack Un 2014-08-09 20:34 ` Jack Un 2014-08-28 8:32 ` Gerd Hoffmann 0 siblings, 2 replies; 4+ messages in thread From: Jack Un @ 2014-08-09 20:34 UTC (permalink / raw) To: qemu-devel; +Cc: kraxel Hi, Hope i'm doing this right. There appears to be typo in OHCI with isochronous transfers resulting in isoch. transfer descriptor state never being written back. The'put_words' function is in a OR statement hence it is never called. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back. 2014-08-09 20:34 [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back Jack Un @ 2014-08-09 20:34 ` Jack Un 2014-08-10 2:39 ` Gonglei 2014-08-28 8:32 ` Gerd Hoffmann 1 sibling, 1 reply; 4+ messages in thread From: Jack Un @ 2014-08-09 20:34 UTC (permalink / raw) To: qemu-devel; +Cc: kraxel, Jack Un 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 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back. 2014-08-09 20:34 ` Jack Un @ 2014-08-10 2:39 ` Gonglei 0 siblings, 0 replies; 4+ messages in thread From: Gonglei @ 2014-08-10 2:39 UTC (permalink / raw) To: 'Jack Un', qemu-devel; +Cc: kraxel 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 ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back. 2014-08-09 20:34 [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back Jack Un 2014-08-09 20:34 ` Jack Un @ 2014-08-28 8:32 ` Gerd Hoffmann 1 sibling, 0 replies; 4+ messages in thread From: Gerd Hoffmann @ 2014-08-28 8:32 UTC (permalink / raw) To: Jack Un; +Cc: qemu-devel On Sa, 2014-08-09 at 23:34 +0300, Jack Un wrote: > Hi, > > Hope i'm doing this right. Almost. > There appears to be typo in OHCI with isochronous transfers > resulting in isoch. transfer descriptor state never being written back. > The'put_words' function is in a OR statement hence it is never called. This patch description should go into the commit message of the patch so it doesn't get lost when applying the patch. You also don't need a cover letter for single patches then, just 'git send-email' the patch as-is. No need to resend, I've fixed it up this time. Patch added to usb queue. thanks, Gerd ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-08-28 8:33 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-08-09 20:34 [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back Jack Un 2014-08-09 20:34 ` Jack Un 2014-08-10 2:39 ` Gonglei 2014-08-28 8:32 ` Gerd Hoffmann
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).