]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf4c67c5a3d4d4df7def8f804dccfd8bd48e4697
tree533da71951aa6e6ccd88cd2569f4640836adea90
parent9967e657020ae096582a8e9912956ade1694ea53
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