diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-31 14:19:50 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2012-08-31 15:11:30 +0200 |
commit | fa8c09ca668d27af39c28b9590c5c48410c6b3d5 (patch) | |
tree | 36043feea3781fb90b41b110ddcf1538379ebb34 /src/main.c | |
parent | 061e184d393e22d4331f8f004be110a0176ea4dc (diff) |
port-probe: speed up QCDM probing a bit
This is the port to git master of the following commit:
commit 01201860de5565a78823913423c6b2a762e3731f
Author: Dan Williams <dcbw@redhat.com>
Date: Tue Aug 28 21:12:14 2012 -0500
core: speed up QCDM probing a bit
The point of sending two "version info" commands was to ensure that
the terminating 0x7E of the first one was processed as a QCDM frame
boundary and that any random data in the buffer (like AT commands
from probing) got cleared out. The second command would always
get processed as a valid QCDM command if the device supported QCDM,
since there was no garbage before it.
Instead of that dance, just prepend the version info message with
an extra 0x7E to ensure a clean QCDM frame which the device hopefully
responds to immediately. Second, actually process that response
instead of throwing it away. Should save about 3 seconds when
probing QCDM ports.
Diffstat (limited to 'src/main.c')
0 files changed, 0 insertions, 0 deletions