synclink_gt: fix transmit race and timeout
authorPaul Fulghum <paulkf@microgate.com>
Wed, 24 Jun 2009 17:34:51 +0000 (18:34 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 24 Jun 2009 16:55:50 +0000 (09:55 -0700)
commitce89294c056805019d8369b3b74bb52ef51b4708
tree533da71951aa6e6ccd88cd2569f4640836adea90
parent2a13373cf84477460365c32842cda9a6374b845d
synclink_gt: fix transmit race and timeout

Fix race condition when adding transmit data to active DMA buffer ring
that can cause transmit stall.

Update transmit timeout when adding data to active DMA buffer ring.
Base transmit timeout on amount of buffered data instead of using fixed
value.

Signed-off-by: Paul Fulghum <paulkf@microgate.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/synclink_gt.c