diff options
author | Anton Staaf <robotboy@chromium.org> | 2016-06-13 11:15:28 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-06-15 13:08:22 -0700 |
commit | 4e3cbd845b1709369c1784a5a5a83be28c004933 (patch) | |
tree | 7a46b516789217897db7974fe1617bdc3a942397 /extra/usb_serial/51-google-serial-fallback.rules | |
parent | 1957187084451471e8ecbce77df38513b8998335 (diff) | |
download | chrome-ec-4e3cbd845b1709369c1784a5a5a83be28c004933.tar.gz |
USB Serial: Add fallback rule and script
This rule makes it easier to use CCD devices when the raiden module
can't be installed for some reason. The rule informs the usbserial
module that it should handle anything that looks like a simple serial
port for any CCD compatible USB devices.
The install script now detects failure when building and installing
the raiden module and offers the --fallback option in that case.
Signed-off-by: Anton Staaf <robotboy@chromium.org>
BRANCH=None
BUG=None
TEST=make buildall -j
Change-Id: I617bbdfb4c5cb9e9803f4088c651f84e3f72bd28
Reviewed-on: https://chromium-review.googlesource.com/351873
Commit-Ready: Anton Staaf <robotboy@chromium.org>
Tested-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'extra/usb_serial/51-google-serial-fallback.rules')
-rw-r--r-- | extra/usb_serial/51-google-serial-fallback.rules | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/extra/usb_serial/51-google-serial-fallback.rules b/extra/usb_serial/51-google-serial-fallback.rules new file mode 100644 index 0000000000..5f43e58e30 --- /dev/null +++ b/extra/usb_serial/51-google-serial-fallback.rules @@ -0,0 +1,6 @@ +# +# Add USB VID/PID for usb-serial compatible CCD devices. This is a fallback +# rule that can be used if the raiden module can't be built, or used for some +# reason. +# +SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ATTR{idVendor}=="18d1", ENV{ID_USB_INTERFACES}=="*:ff5001:*", RUN+="add_usb_serial_id $attr{idVendor} $attr{idProduct}" |