diff options
author | Michael Hanselmann <public@hansmi.ch> | 2020-04-01 02:37:18 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-05-27 16:00:56 +0300 |
commit | c404bf4aa9236cb4d1068e499ae42acf48a6ff97 (patch) | |
tree | c4f0e6a7b60ade26eba4a51b3627d88cb2cb56f5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 986c1748c84d7727defeaeca74a73b37f7d5cce1 (diff) | |
download | linux-c404bf4aa9236cb4d1068e499ae42acf48a6ff97.tar.xz |
USB: serial: ch341: add basis for quirk detection
A subset of CH341 devices does not support all features, namely the
prescaler is limited to a reduced precision and there is no support for
sending a RS232 break condition. This patch adds a detection function
which will be extended to set quirk flags as they're implemented.
The author's affected device has an imprint of "340" on the
turquoise-colored plug, but not all such devices appear to be affected.
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Link: https://lore.kernel.org/r/1e1ae0da6082bb528a44ef323d4e1d3733d38858.1585697281.git.public@hansmi.ch
[ johan: use long type for quirks; rephrase and use port device for
messages; handle short reads; set quirk flags directly in
helper function ]
Cc: stable <stable@vger.kernel.org> # 5.5
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions