summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorGirish Mahadevan <girishm@codeaurora.org>2016-07-21 16:03:08 -0600
committerGirish Mahadevan <girishm@codeaurora.org>2016-08-16 13:32:54 -0600
commitd64c7bb096de11642a93bd27c38df9fab73983dc (patch)
treead5a383b1367e3ba32eca1be79fde30000fa709c /tools/perf/scripts/python
parente94b446eac88a43e42ecde105275d48b677ea5b3 (diff)
serial: msm_serial_hs: Add extra delay during close with pending tx
In some cases the userspace can do a back to back write() followed by close(). In such cases the tty framework does account for this by asking the driver the status of the tx buffer and if not empty wait for a timeout computed as a function of the current port baud rate. However in some cases, this timeout doesn't seem sufficient, so when checking the state of the tx buffer insert an extra delay if not empty before returning to the framework. This will do a double wait at driver and at framework, but this shouldn't adversely affect timing of usecases and the flip side of having a pending byte in the tx buffer can result in the peer hardware being left in a bad state. Change-Id: I372e2e1c68f13f5d537ea33980eb63487f31d589 CRs-Fixed: 1044170 Signed-off-by: Girish Mahadevan <girishm@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions