Commit 476b1ec9 authored by Anton Staaf's avatar Anton Staaf Committed by Jiri Slaby

USB: serial: add Google simple serial SubClass support

commit 679315e5 upstream.

Add support for Google devices that export simple serial
interfaces using the vendor specific SubClass/Protocol pair
0x50/0x01.
Signed-off-by: default avatarAnton Staaf <robotboy@chromium.org>
Reviewed-by: default avatarBenson Leung <bleung@chromium.org>
[johan: move id entries and update Kconfig]
Signed-off-by: default avatarJohan Hovold <johan@kernel.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent 8a4eb1f9
...@@ -59,6 +59,7 @@ config USB_SERIAL_SIMPLE ...@@ -59,6 +59,7 @@ config USB_SERIAL_SIMPLE
driver. Specifically, it supports: driver. Specifically, it supports:
- Suunto ANT+ USB device. - Suunto ANT+ USB device.
- Fundamental Software dongle. - Fundamental Software dongle.
- Google USB serial devices
- HP4x calculators - HP4x calculators
- a number of Motorola phones - a number of Motorola phones
- Siemens USB/MPI adapter. - Siemens USB/MPI adapter.
......
...@@ -51,6 +51,14 @@ DEVICE(funsoft, FUNSOFT_IDS); ...@@ -51,6 +51,14 @@ DEVICE(funsoft, FUNSOFT_IDS);
{ USB_DEVICE(0x8087, 0x0716) } { USB_DEVICE(0x8087, 0x0716) }
DEVICE(flashloader, FLASHLOADER_IDS); 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 */ /* ViVOpay USB Serial Driver */
#define VIVOPAY_IDS() \ #define VIVOPAY_IDS() \
{ USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */ { USB_DEVICE(0x1d5f, 0x1004) } /* ViVOpay 8800 */
...@@ -86,6 +94,7 @@ static struct usb_serial_driver * const serial_drivers[] = { ...@@ -86,6 +94,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
&zio_device, &zio_device,
&funsoft_device, &funsoft_device,
&flashloader_device, &flashloader_device,
&google_device,
&vivopay_device, &vivopay_device,
&moto_modem_device, &moto_modem_device,
&hp4x_device, &hp4x_device,
...@@ -98,6 +107,7 @@ static const struct usb_device_id id_table[] = { ...@@ -98,6 +107,7 @@ static const struct usb_device_id id_table[] = {
ZIO_IDS(), ZIO_IDS(),
FUNSOFT_IDS(), FUNSOFT_IDS(),
FLASHLOADER_IDS(), FLASHLOADER_IDS(),
GOOGLE_IDS(),
VIVOPAY_IDS(), VIVOPAY_IDS(),
MOTO_IDS(), MOTO_IDS(),
HP4X_IDS(), HP4X_IDS(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment