Skip to contentSkip to conversation

serial: rp2: New driver for Comtrol RocketPort 2 cards

PATCH Superseded Kevin Cernekee 2 participants 2 messages Dec 30, 2012 – Jan 16, 2013

Subsystems (2)

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore

Kevin Cernekee

author maintainer
#0 lore raw

PATCH v3 1/1 serial: rp2: New driver for Comtrol RocketPort 2 cards

---
 drivers/tty/serial/Kconfig       |   24 +
 drivers/tty/serial/Makefile      |    1 +
 drivers/tty/serial/rp2.c         |  892 ++++++++++++++++++++++++++++++++++++++
 include/uapi/linux/serial_core.h |    3 +
 4 files changed, 920 insertions(+)
 create mode 100644 drivers/tty/serial/rp2.c

V2->V3 changes:

- Don't try to unregister the device if rp2_fw_cb() fails
- Add MODULE_FIRMWARE declaration

drivers/tty/serial/Kconfig +24 -0
index 59c23d0..555f3ca 100644
@@ -1447,4 +1447,28 @@ config SERIAL_ARC_NR_PORTS
 	  Set this to the number of serial ports you want the driver
 	  to support.
 
+config SERIAL_RP2
+	tristate "Comtrol RocketPort EXPRESS/INFINITY support"
+	depends on PCI
+	select SERIAL_CORE
+	help
+	  This driver supports the Comtrol RocketPort EXPRESS and
+	  RocketPort INFINITY families of PCI/PCIe multiport serial adapters.
+	  These adapters use a "RocketPort 2" ASIC that is not compatible
+	  with the original RocketPort driver (CONFIG_ROCKETPORT).
+
+	  To compile this driver as a module, choose M here: the
+	  module will be called rp2.
+
+	  If you want to compile this driver into the kernel, say Y here.  If
+	  you don't have a suitable RocketPort card installed, say N.
+
+config SERIAL_RP2_NR_UARTS
+	int "Maximum number of RocketPort EXPRESS/INFINITY ports"
+	depends on SERIAL_RP2
+	default "32"
+	help
+	  If multiple cards are present, the default limit of 32 ports may
+	  need to be increased.
+
 endmenu
drivers/tty/serial/Makefile +1 -0
index df1b998..a582ee9 100644
@@ -83,3 +83,4 @@ obj-$(CONFIG_SERIAL_SIRFSOC) += sirfsoc_uart.o
 obj-$(CONFIG_SERIAL_AR933X)   += ar933x_uart.o
 obj-$(CONFIG_SERIAL_EFM32_UART) += efm32-uart.o
 obj-$(CONFIG_SERIAL_ARC)	+= arc_uart.o
+obj-$(CONFIG_SERIAL_RP2)	+= rp2.o
drivers/tty/serial/rp2.c new file +892 -0

892 lines not on this page · raw message

include/uapi/linux/serial_core.h +3 -0
index 78f99d9..9dd47a5 100644
@@ -219,4 +219,7 @@
 /* ARC (Synopsys) on-chip UART */
 #define PORT_ARC       101
 
+/* Rocketport EXPRESS/INFINITY */
+#define PORT_RP2	102
+
 #endif /* _UAPILINUX_SERIAL_CORE_H */
Signature · 1 line
1.7.10.4
maintainer
#1 lore raw
Quoted 1 line · Kevin Cernekee

You seem to have forgotten a changelog entry here. Please provide some sort of information, and resend these two patches.

thanks,

greg k-h