summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2012-03-12 21:45:47 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-04-02 09:27:13 -0700
commit07ef0938d89b3c5af9d3ff23e482b26202bd012c (patch)
tree7ec972b4c806a1936030a7a94f42387581fe2248 /Makefile
parentdfa5919bcc4079b0d48bb0441da8d5b144fef34f (diff)
downloadlinux-07ef0938d89b3c5af9d3ff23e482b26202bd012c.tar.gz
firewire: ohci: fix too-early completion of IR multichannel buffers
commit 0c0efbacab8d70700d13301e0ae7975783c0cb0a upstream. handle_ir_buffer_fill() assumed that a completed descriptor would be indicated by a non-zero transfer_status (as in most other descriptors). However, this field is written by the controller as soon as (the end of) the first packet has been written into the buffer. As a consequence, if we happen to run into such a descriptor when the interrupt handler is executed after such a packet has completed, the descriptor would be taken out of the list of active descriptors as soon as the buffer had been partially filled, so the event for the buffer being completely filled would never be sent. To fix this, handle descriptors only when they have been completely filled, i.e., when res_count == 0. (This also matches the condition that is reported by the controller with an interrupt.) Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions