Fix OHCI ISO TD state never being written back.
PATCH 1/1 Fix OHCI ISO TD state never being written back.
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.
PATCH 1/1 Fix OHCI ISO TD state never being written back.
--- hw/usb/hcd-ohci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
hw/usb/hcd-ohci.c +2 -2
@@ -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,
Signature · 1 line
2.0.4
Hi,
Quoted 22 lines
Subject: [Qemu-devel] [PATCH] Fix OHCI ISO TD state never being written back.
Signed-off-by Jack Un <[email protected]>--- hw/usb/hcd-ohci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)hw/usb/hcd-ohci.c +2
-2@@ -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 ); }
Quoted 4 lines
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
Quoted 3 lines · Jack Un
Hi,
Hope i'm doing this right.
Almost.
Quoted 3 lines
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