Skip to contentSkip to conversation

KingSun/DonShine USB IrDA dongle support

PATCH Applied Samuel Ortiz 2 participants 2 messages May 9, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 KingSun/DonShine USB IrDA dongle support

From: Alex Villac�s Lasso <[email protected]>

This dongle does not follow the usb-irda specification, so it needs its own special driver. In addition, it uses interrupt endpoints instead of bulk ones as the rest of USB IrDA dongles supported by Linux (just to be different?) and data reads need to be parsed to extract the valid bytes before being unwrapped (details in the comment at the start of the source). No speed commands have been discovered for this dongle, and I suspect it does not have any at all.

On plugin, this dongle reports vendor and device IDs: 0x07c0:0x4200 .

The Windows driver that is used normally to control this dongle has a filename of DSIR620.SYS .

---
 drivers/net/irda/Kconfig       |   14 +
 drivers/net/irda/Makefile      |    1 +
 drivers/net/irda/kingsun-sir.c |  657 ++++++++++++++++++++++++++++++++++++++++
 3 files changed, 672 insertions(+), 0 deletions(-)
 create mode 100644 drivers/net/irda/kingsun-sir.c
drivers/net/irda/Kconfig +14 -0
index 7c8ccc0..9d28c75 100644
@@ -141,6 +141,20 @@ config ACT200L_DONGLE
 	  To activate support for ACTiSYS IR-200L dongle you will have to
 	  start irattach like this: "irattach -d act200l".
 
+config KINGSUN_DONGLE
+	tristate "KingSun/DonShine DS-620 IrDA-USB dongle"
+	depends on IRDA && USB && EXPERIMENTAL
+	help
+	  Say Y or M here if you want to build support for the KingSun/DonShine
+	  DS-620 IrDA-USB bridge device driver.
+
+	  This USB bridge does not conform to the IrDA-USB device class
+	  specification, and therefore needs its own specific driver. This
+	  dongle supports SIR speed only (9600 bps).
+
+	  To compile it as a module, choose M here: the module will be called
+	  kingsun-sir.
+
 comment "Old SIR device drivers"
 
 config IRPORT_SIR
drivers/net/irda/Makefile +1 -0
index 5be09f1..233a2f9 100644
@@ -45,6 +45,7 @@ obj-$(CONFIG_MCP2120_DONGLE)	+= mcp2120-sir.o
 obj-$(CONFIG_ACT200L_DONGLE)	+= act200l-sir.o
 obj-$(CONFIG_MA600_DONGLE)	+= ma600-sir.o
 obj-$(CONFIG_TOIM3232_DONGLE)	+= toim3232-sir.o
+obj-$(CONFIG_KINGSUN_DONGLE)	+= kingsun-sir.o
 
 # The SIR helper module
 sir-dev-objs := sir_dev.o sir_dongle.o
drivers/net/irda/kingsun-sir.c new file +657 -0

657 lines not on this page · raw message

Signature · 1 line
1.5.1.1
maintainer Applied
#1 lore raw

From: Samuel Ortiz <[email protected]>
Date: Thu, 10 May 2007 01:40:27 +0300

Quoted 10 lines

From: Alex Villac$,3u=(Bs Lasso <[email protected]>

This dongle does not follow the usb-irda specification, so it needs its own special driver. In addition, it uses interrupt endpoints instead of bulk ones as the rest of USB IrDA dongles supported by Linux (just to be different?) and data reads need to be parsed to extract the valid bytes before being unwrapped (details in the comment at the start of the source). No speed commands have been discovered for this dongle, and I suspect it does not have any at all.

Quoted 7 lines

On plugin, this dongle reports vendor and device IDs: 0x07c0:0x4200 .

The Windows driver that is used normally to control this dongle has a filename of DSIR620.SYS .

Applied, thanks a lot.