firewire: use split transaction timeout only for split transactions
authorClemens Ladisch <clemens@ladisch.de>
Mon, 13 Dec 2010 13:56:02 +0000 (14:56 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Tue, 4 Jan 2011 07:48:34 +0000 (08:48 +0100)
commit410cf2bd3dc6ec1ed9e1b36b25b9d7aa927ed14e
tree4226510c642e882fde0cc801e626492577b61fd0
parent693a50b511818e07a131efc944cba1a504b63d3d
firewire: use split transaction timeout only for split transactions

Instead of starting the split transaction timeout timer when any request
is submitted, start it only when the destination's ACK_PENDING has been
received.  This prevents us from using a timeout that is too short, and,
if the controller's AT queue is emptying very slowly, from cancelling
a packet that has not yet been sent.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-transaction.c
include/linux/firewire.h