diff options
author | Stanislaw Gruszka <sgruszka@redhat.com> | 2012-03-14 11:16:19 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-03-15 13:40:31 -0400 |
commit | f421111b5e69020c047eb3ff057e50f446c3c7a2 (patch) | |
tree | 71c24323599231fc53df752966a52d197f1301b7 /Documentation/memory-hotplug.txt | |
parent | ed61e2b02027935520d1be884fac0b2ffce8379a (diff) | |
download | op-kernel-dev-f421111b5e69020c047eb3ff057e50f446c3c7a2.zip op-kernel-dev-f421111b5e69020c047eb3ff057e50f446c3c7a2.tar.gz |
rt2x00: rt2800usb: rework txstatus code
Currently we read tx status register after each urb data transfer. As
callback procedure also trigger reading, that causing we have many
"threads" of reading status. To prevent that introduce TX_STATUS_READING
flags, and check if we are already in process of sequential reading
TX_STA_FIFO, before requesting new reads.
Change timer to hrtimer, that make TX_STA_FIFO overruns less possible.
Use 200 us for initial timeout, and then reschedule in 100 us period,
this values probably have to be tuned.
Make changes on txdone work. Schedule it from
rt2800usb_tx_sta_fifo_read_completed() callback when first valid status
show up. Check in callback if tx status timeout happens, and schedule
work on that condition too. That make possible to remove tx status
timeout from generic watchdog. I moved that to rt2800usb.
Loop in txdone work, that should prevent situation when we queue work,
which is already processed, and after finish work is not rescheduled
again.
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'Documentation/memory-hotplug.txt')
0 files changed, 0 insertions, 0 deletions