PATCH: SNI RM 53c710 driver
This patch adds a SCSI driver for the onboard 53c710 chip of some SNI RM machines.
Thomas.
From ec2d61072027892d67a34d261bd39b32bacd1e64 Mon Sep 17 00:00:00 2001
From: Thomas Bogendoerfer <[email protected]>
Date: Mon, 25 Dec 2006 21:04:17 +0100
Subject: [PATCH] Support for onboard SCSI controller on older SNI RM machines
--- drivers/scsi/Kconfig | 9 +++ drivers/scsi/Makefile | 1 + drivers/scsi/sni_53c710.c | 159 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 169 insertions(+), 0 deletions(-)
drivers/scsi/Kconfig +9 -0
@@ -973,6 +973,15 @@ config SCSI_LASI700 many PA-RISC workstations & servers. If you do not know whether you have a Lasi chip, it is safe to say "Y" here. +config SCSI_SNI_53C710 + tristate "SNI RM SCSI support for 53c710" + depends on SNI_RM && SCSI + select SCSI_SPI_ATTRS + select 53C700_LE_ON_BE + help + This is a driver for the onboard SCSI controller found in older + SNI RM workstations & servers. + config 53C700_LE_ON_BE bool depends on SCSI_LASI700
drivers/scsi/Makefile +1 -0
@@ -124,6 +124,7 @@ obj-$(CONFIG_JAZZ_ESP) += NCR53C9x.o ja obj-$(CONFIG_SUN3X_ESP) += NCR53C9x.o sun3x_esp.o obj-$(CONFIG_SCSI_FCAL) += fcal.o obj-$(CONFIG_SCSI_LASI700) += 53c700.o lasi700.o +obj-$(CONFIG_SCSI_SNI_53C710) += 53c700.o sni_53c710.o obj-$(CONFIG_SCSI_NSP32) += nsp32.o obj-$(CONFIG_SCSI_IPR) += ipr.o obj-$(CONFIG_SCSI_SRP) += libsrp.o
drivers/scsi/sni_53c710.c new file +159 -0
159 lines not on this page · raw message
Signature · 9 lines
1.4.3.2 -- Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ RFC1925, 2.3 ] - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 2 lines · Thomas Bogendoerfer
This patch adds a SCSI driver for the onboard 53c710 chip of some SNI RM machines.
Nice, this looks really clean. I haven't seen the code to declare the platform devices in the mips queue yet, do you plan to submit it soon?
drivers/scsi/sni_53c710.c line 151
Quoted 10 lines
drivers/scsi/sni_53c710.c new file +10
-0+static int __init snirm710_init (void ) +{ +int err; + +if ((err =platform_driver_register (&snirm710_driver))) { +printk (KERN_ERR "Driver registration failed\n" ); +return err; + } +return 0 ; +}
Please just write this as:
static int __init snirm710_init(void)
{
return platform_driver_register(&snirm710_driver)));
}In the modular case we already get a message from modprobe and in the builtin-case verbose initcalls also display the error.
Quoted 7 lines · Christoph Hellwig
Quoted 2 lines · Thomas Bogendoerfer
This patch adds a SCSI driver for the onboard 53c710 chip of some SNI RM machines.
Nice, this looks really clean. I haven't seen the code to declare the platform devices in the mips queue yet, do you plan to submit it soon?
yes, it's now in Ralf queue branch and I hope it gets merged in the 2.6.21 timeframe.
Quoted 1 line
Please just write this as:
ok, attached is a new diff.
--- drivers/scsi/Kconfig | 9 +++ drivers/scsi/Makefile | 1 + drivers/scsi/sni_53c710.c | 153 +++++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 187 insertions(+), 4 deletions(-)
drivers/scsi/Kconfig +9 -0
@@ -973,6 +973,15 @@ config SCSI_LASI700 many PA-RISC workstations & servers. If you do not know whether you have a Lasi chip, it is safe to say "Y" here. +config SCSI_SNI_53C710 + tristate "SNI RM SCSI support for 53c710" + depends on SNI_RM && SCSI + select SCSI_SPI_ATTRS + select 53C700_LE_ON_BE + help + This is a driver for the onboard SCSI controller found in older + SNI RM workstations & servers. + config 53C700_LE_ON_BE bool depends on SCSI_LASI700
drivers/scsi/Makefile +1 -0
@@ -124,6 +124,7 @@ obj-$(CONFIG_JAZZ_ESP) += NCR53C9x.o ja obj-$(CONFIG_SUN3X_ESP) += NCR53C9x.o sun3x_esp.o obj-$(CONFIG_SCSI_FCAL) += fcal.o obj-$(CONFIG_SCSI_LASI700) += 53c700.o lasi700.o +obj-$(CONFIG_SCSI_SNI_53C710) += 53c700.o sni_53c710.o obj-$(CONFIG_SCSI_NSP32) += nsp32.o obj-$(CONFIG_SCSI_IPR) += ipr.o obj-$(CONFIG_SCSI_SRP) += libsrp.o
drivers/scsi/sni_53c710.c new file +153 -0
153 lines not on this page · raw message
Signature · 6 lines
Crap can work. Given enough thrust pigs will fly, but it's not necessary a good idea. [ RFC1925, 2.3 ] - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html