]> git.hungrycats.org Git - linux/commitdiff
USB: serial: add Google simple serial SubClass support
authorAnton Staaf <robotboy@chromium.org>
Mon, 3 Nov 2014 16:43:20 +0000 (08:43 -0800)
committerJiri Slaby <jslaby@suse.cz>
Thu, 12 Mar 2015 16:31:23 +0000 (17:31 +0100)
commit 679315e5fae1e4614eed0d9aa26999ddcb6a0f77 upstream.

Add support for Google devices that export simple serial
interfaces using the vendor specific SubClass/Protocol pair
0x50/0x01.

Signed-off-by: Anton Staaf <robotboy@chromium.org>
Reviewed-by: Benson Leung <bleung@chromium.org>
[johan: move id entries and update Kconfig]
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/serial/Kconfig
drivers/usb/serial/usb-serial-simple.c

index ddb9c51f2c999c04a27aab9d7a2924c429205672..a9435cd819f8c13c92efb093538723a0f1212dc3 100644 (file)
@@ -59,6 +59,7 @@ config USB_SERIAL_SIMPLE
          driver.  Specifically, it supports:
                - Suunto ANT+ USB device.
                - Fundamental Software dongle.
+               - Google USB serial devices
                - HP4x calculators
                - a number of Motorola phones
                - Siemens USB/MPI adapter.
index 147f01971c3966995a510b4c0448a615f611713e..cc61d3781c21b64841cd7cc0837e3f3a5456e01f 100644 (file)
@@ -51,6 +51,14 @@ DEVICE(funsoft, FUNSOFT_IDS);
        { USB_DEVICE(0x8087, 0x0716) }
 DEVICE(flashloader, FLASHLOADER_IDS);
 
+/* Google Serial USB SubClass */
+#define GOOGLE_IDS()                                           \
+       { USB_VENDOR_AND_INTERFACE_INFO(0x18d1,                 \
+                                       USB_CLASS_VENDOR_SPEC,  \
+                                       0x50,                   \
+                                       0x01) }
+DEVICE(google, GOOGLE_IDS);
+
 /* ViVOpay USB Serial Driver */
 #define VIVOPAY_IDS()                  \
        { USB_DEVICE(0x1d5f, 0x1004) }  /* ViVOpay 8800 */
@@ -86,6 +94,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
        &zio_device,
        &funsoft_device,
        &flashloader_device,
+       &google_device,
        &vivopay_device,
        &moto_modem_device,
        &hp4x_device,
@@ -98,6 +107,7 @@ static const struct usb_device_id id_table[] = {
        ZIO_IDS(),
        FUNSOFT_IDS(),
        FLASHLOADER_IDS(),
+       GOOGLE_IDS(),
        VIVOPAY_IDS(),
        MOTO_IDS(),
        HP4X_IDS(),