All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Stakenvicius <axs@gentoo.org>
To: johan@kernel.org
Cc: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] cypress_m8: please add vendor/product id to support Prior Scientific OptiScan2
Date: Mon, 04 May 2015 11:45:11 -0400	[thread overview]
Message-ID: <55479407.4050909@gentoo.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 654 bytes --]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

The microscope automation controllers from Prior Scientific,
specifically the OptiScan2 controller (the only one I have access to at
present) use a Cypress CY7C64013-SXC for USB->serial conversion.  I've
tested the following patch against drivers/usb/serial/cypress_m8.{c,h}
with success (it just adds the vendor-id and product-id), and I was
wondering if it could be added to the kernel?



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iF0EAREIAAYFAlVHlAcACgkQ2ugaI38ACPCEYAEAti0AMDVAn3VR0s0NmaOI8n2S
qjj2rTooBjnZAZY8UE8A927oAR/8AbK7q8QT4AKPYpnPrA4timaXLCv6KR8LJCE=
=14hZ
-----END PGP SIGNATURE-----

[-- Attachment #2: prior_scientific_drivers_usb_serial_cypress_m8.patch --]
[-- Type: text/x-diff, Size: 1953 bytes --]

commit 875820b3d6fce226fe146cc97f7850e86915af16
Author: Ian Stakenvicius <axs@gentoo.org>
Date:   Mon Apr 13 15:49:33 2015 -0400

    Prior Scientific OptiScan2 controllers contain a
    Cypress CY7C64013-SXC chip for RS232 conversion,
    which can be served by the cypress_m8 device driver.

diff --git a/drivers/usb/serial/cypress_m8.c b/drivers/usb/serial/cypress_m8.c
index 01bf533..5bc07d8 100644
--- a/drivers/usb/serial/cypress_m8.c
+++ b/drivers/usb/serial/cypress_m8.c
@@ -63,6 +63,7 @@ static const struct usb_device_id id_table_earthmate[] = {
 
 static const struct usb_device_id id_table_cyphidcomrs232[] = {
 	{ USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) },
+	{ USB_DEVICE(VENDOR_ID_PRIORSCIENTIFIC, PRODUCT_ID_OPTISCAN2) },
 	{ USB_DEVICE(VENDOR_ID_POWERCOM, PRODUCT_ID_UPS) },
 	{ USB_DEVICE(VENDOR_ID_FRWD, PRODUCT_ID_CYPHIDCOM_FRWD) },
 	{ }						/* Terminating entry */
@@ -77,6 +78,7 @@ static const struct usb_device_id id_table_combined[] = {
 	{ USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB) },
 	{ USB_DEVICE(VENDOR_ID_DELORME, PRODUCT_ID_EARTHMATEUSB_LT20) },
 	{ USB_DEVICE(VENDOR_ID_CYPRESS, PRODUCT_ID_CYPHIDCOM) },
+	{ USB_DEVICE(VENDOR_ID_PRIORSCIENTIFIC, PRODUCT_ID_OPTISCAN2) },
 	{ USB_DEVICE(VENDOR_ID_POWERCOM, PRODUCT_ID_UPS) },
 	{ USB_DEVICE(VENDOR_ID_FRWD, PRODUCT_ID_CYPHIDCOM_FRWD) },
 	{ USB_DEVICE(VENDOR_ID_DAZZLE, PRODUCT_ID_CA42) },
diff --git a/drivers/usb/serial/cypress_m8.h b/drivers/usb/serial/cypress_m8.h
index 119d2e1..1d5e1d9 100644
--- a/drivers/usb/serial/cypress_m8.h
+++ b/drivers/usb/serial/cypress_m8.h
@@ -24,6 +24,10 @@
 #define VENDOR_ID_CYPRESS		0x04b4
 #define PRODUCT_ID_CYPHIDCOM		0x5500
 
+/* Cypress HID->COM RS232 Adapter, used by Prior Scientific controllers */
+#define VENDOR_ID_PRIORSCIENTIFIC	0x10db
+#define PRODUCT_ID_OPTISCAN2		0x1234
+
 /* FRWD Dongle - a GPS sports watch */
 #define VENDOR_ID_FRWD			0x6737
 #define PRODUCT_ID_CYPHIDCOM_FRWD	0x0001




             reply	other threads:[~2015-05-04 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-04 15:45 Ian Stakenvicius [this message]
2015-05-05  7:35 ` [PATCH] cypress_m8: please add vendor/product id to support Prior Scientific OptiScan2 Johan Hovold

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55479407.4050909@gentoo.org \
    --to=axs@gentoo.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=johan@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.