* USB: serial: simple: add libtransistor console
@ 2018-04-07 21:32 Collin May
0 siblings, 0 replies; 2+ messages in thread
From: Collin May @ 2018-04-07 21:32 UTC (permalink / raw)
Cc: Johan Hovold, linux-usb, Collin May
Add simple driver for libtransistor USB console.
This device is implemented in software:
https://github.com/reswitched/libtransistor/blob/development/lib/usb_serial.c
Signed-off-by: Collin May <collin@collinswebsite.com>
Tested-by: Collin May <collin@collinswebsite.com>
---
drivers/usb/serial/Kconfig | 1 +
drivers/usb/serial/usb-serial-simple.c | 7 +++++++
2 files changed, 8 insertions(+)
diff --git a/drivers/usb/serial/Kconfig b/drivers/usb/serial/Kconfig
index c66b93664d54..dac738364950 100644
--- a/drivers/usb/serial/Kconfig
+++ b/drivers/usb/serial/Kconfig
@@ -69,6 +69,7 @@ config USB_SERIAL_SIMPLE
- ViVOtech ViVOpay USB device.
- Infineon Modem Flashloader USB interface
- ZIO Motherboard USB serial interface
+ - Libtransistor USB console
To compile this driver as a module, choose M here: the module
will be called usb-serial-simple.
diff --git a/drivers/usb/serial/usb-serial-simple.c b/drivers/usb/serial/usb-serial-simple.c
index 4ef79e29cb26..e77017285fcd 100644
--- a/drivers/usb/serial/usb-serial-simple.c
+++ b/drivers/usb/serial/usb-serial-simple.c
@@ -103,6 +103,11 @@ DEVICE(suunto, SUUNTO_IDS);
{ USB_DEVICE(0x908, 0x0004) }
DEVICE(siemens_mpi, SIEMENS_IDS);
+/* Libtransistor USB console */
+#define LIBTRANSISTOR_IDS() \
+ { USB_DEVICE(0x1209, 0x8b00) }
+DEVICE(libtransistor, LIBTRANSISTOR_IDS);
+
/* All of the above structures mushed into two lists */
static struct usb_serial_driver * const serial_drivers[] = {
&carelink_device,
@@ -117,6 +122,7 @@ static struct usb_serial_driver * const serial_drivers[] = {
&hp4x_device,
&suunto_device,
&siemens_mpi_device,
+ &libtransistor_device,
NULL
};
@@ -133,6 +139,7 @@ static const struct usb_device_id id_table[] = {
HP4X_IDS(),
SUUNTO_IDS(),
SIEMENS_IDS(),
+ LIBTRANSISTOR_IDS(),
{ },
};
MODULE_DEVICE_TABLE(usb, id_table);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* USB: serial: simple: add libtransistor console
@ 2018-04-16 7:23 Johan Hovold
0 siblings, 0 replies; 2+ messages in thread
From: Johan Hovold @ 2018-04-16 7:23 UTC (permalink / raw)
To: Collin May; +Cc: Johan Hovold, linux-usb
On Sat, Apr 07, 2018 at 02:32:48PM -0700, Collin May wrote:
> Add simple driver for libtransistor USB console.
> This device is implemented in software:
> https://github.com/reswitched/libtransistor/blob/development/lib/usb_serial.c
>
> Signed-off-by: Collin May <collin@collinswebsite.com>
> Tested-by: Collin May <collin@collinswebsite.com>
No need to add your own Test-by-tag as it's assumed that you as the
author has tested your own code.
Now applied for 4.17-rc with a stable tag.
Thanks,
Johan
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-04-16 7:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-16 7:23 USB: serial: simple: add libtransistor console Johan Hovold
-- strict thread matches above, loose matches on Subject: below --
2018-04-07 21:32 Collin May
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).