aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorRichard Röjfors <[email protected]>2010-04-27 14:16:34 -0700
committerGreg Kroah-Hartman <[email protected]>2010-05-21 09:34:29 -0700
commit24cd73a3942f3df214d7953f0cfd65d5085fa583 (patch)
treeead53b3f9d40915b629fdcef2e2af89c21c66b0b /tools/perf/util/trace-event-scripting.c
parent44051996230510ccb125cfa552d464950d1767b9 (diff)
serial: timbuart: make sure last byte is sent when port is closed
Fix a problem in early versions of the FPGA IP. In certain situations the IP reports that the FIFO is empty, but a byte is still clocked out. If a flush is done at that point the currently clocked byte is canceled. This causes incompatibilities with the upper layers when a port is closed, it waits until the FIFO is empty and then closes the port. During close the FIFO is flushed -> the last byte is not sent properly. Now the FIFO is only flushed if it is reported to be non-empty. Which makes the currently clocked out byte to finish. [[email protected]: fix build] Signed-off-by: Richard Röjfors <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions