set supported_mode for lots of llds
Subsystems (27)
PATCH 1/1 set supported_mode for lots of llds
The majority of llds don't set supported_mode in scsi_host_template so we get:
luce:/sys/class/scsi_host/host0$ cat supported_mode unknown
It's harmless but it would be better to get:
luce:/sys/class/scsi_host/host0$ cat supported_mode Initiator
--- drivers/message/fusion/mptfc.c | 1 + drivers/message/fusion/mptsas.c | 1 + drivers/message/fusion/mptspi.c | 1 + drivers/s390/scsi/zfcp_scsi.c | 1 + drivers/scsi/3w-9xxx.c | 1 + drivers/scsi/3w-xxxx.c | 1 + drivers/scsi/NCR_D700.c | 1 + drivers/scsi/NCR_Q720.c | 1 + drivers/scsi/a100u2w.c | 1 + drivers/scsi/a2091.c | 1 + drivers/scsi/a3000.c | 1 + drivers/scsi/a4000t.c | 1 + drivers/scsi/aacraid/linit.c | 1 + drivers/scsi/advansys.c | 1 + drivers/scsi/aha152x.c | 1 + drivers/scsi/aha1542.c | 1 + drivers/scsi/aha1740.c | 1 + drivers/scsi/aic7xxx/aic79xx_osm.c | 1 + drivers/scsi/aic7xxx/aic7xxx_osm.c | 1 + drivers/scsi/aic7xxx_old.c | 1 + drivers/scsi/aic94xx/aic94xx_init.c | 1 + drivers/scsi/arcmsr/arcmsr_hba.c | 1 + drivers/scsi/arm/acornscsi.c | 1 + drivers/scsi/arm/arxescsi.c | 1 + drivers/scsi/arm/cumana_1.c | 1 + drivers/scsi/arm/cumana_2.c | 1 + drivers/scsi/arm/eesox.c | 1 + drivers/scsi/arm/oak.c | 1 + drivers/scsi/arm/powertec.c | 1 + drivers/scsi/atari_scsi.c | 1 + drivers/scsi/atp870u.c | 1 + drivers/scsi/blz1230.c | 1 + drivers/scsi/blz2060.c | 1 + drivers/scsi/cyberstorm.c | 1 + drivers/scsi/cyberstormII.c | 1 + drivers/scsi/dc395x.c | 1 + drivers/scsi/dec_esp.c | 1 + drivers/scsi/dmx3191d.c | 1 + drivers/scsi/dtc.c | 1 + drivers/scsi/eata.c | 1 + drivers/scsi/eata_pio.c | 1 + drivers/scsi/esp_scsi.c | 1 + drivers/scsi/fastlane.c | 1 + drivers/scsi/fcal.c | 1 + drivers/scsi/fd_mcs.c | 1 + drivers/scsi/fdomain.c | 1 + drivers/scsi/g_NCR5380.c | 1 + drivers/scsi/gdth.c | 1 + drivers/scsi/gvp11.c | 1 + drivers/scsi/hptiop.c | 1 + drivers/scsi/ibmmca.c | 1 + drivers/scsi/ibmvscsi/ibmvscsi.c | 1 + drivers/scsi/imm.c | 1 + drivers/scsi/in2000.c | 1 + drivers/scsi/ipr.c | 1 + drivers/scsi/ips.c | 1 + drivers/scsi/iscsi_tcp.c | 1 + drivers/scsi/lpfc/lpfc_scsi.c | 2 ++ drivers/scsi/mac53c94.c | 1 + drivers/scsi/mac_esp.c | 1 + drivers/scsi/mac_scsi.c | 1 + drivers/scsi/mca_53c9x.c | 1 + drivers/scsi/megaraid.c | 1 + drivers/scsi/megaraid/megaraid_mbox.c | 1 + drivers/scsi/megaraid/megaraid_sas.c | 1 + drivers/scsi/mesh.c | 1 + drivers/scsi/mvme147.c | 1 + drivers/scsi/mvme16x_scsi.c | 1 + drivers/scsi/nsp32.c | 1 + drivers/scsi/oktagon_esp.c | 1 + drivers/scsi/pas16.c | 1 + drivers/scsi/pcmcia/nsp_cs.c | 1 + drivers/scsi/pcmcia/qlogic_stub.c | 1 + drivers/scsi/pcmcia/sym53c500_cs.c | 1 + drivers/scsi/pluto.c | 1 + drivers/scsi/ppa.c | 1 + drivers/scsi/psi240i.c | 1 + drivers/scsi/qla1280.c | 1 + drivers/scsi/qla2xxx/qla_os.c | 2 ++ drivers/scsi/qla4xxx/ql4_os.c | 1 + drivers/scsi/qlogicfas.c | 1 + drivers/scsi/qlogicpti.c | 1 + drivers/scsi/seagate.c | 1 + drivers/scsi/sgiwd93.c | 1 + drivers/scsi/sim710.c | 1 + drivers/scsi/sni_53c710.c | 1 + drivers/scsi/stex.c | 1 + drivers/scsi/sun3_scsi.c | 1 + drivers/scsi/sun3_scsi_vme.c | 1 + drivers/scsi/sun3x_esp.c | 1 + drivers/scsi/sym53c416.c | 1 + drivers/scsi/t128.c | 1 + drivers/scsi/tmscsim.c | 1 + drivers/scsi/u14-34f.c | 1 + drivers/scsi/ultrastor.c | 1 + drivers/scsi/wd7000.c | 1 + drivers/scsi/zalon.c | 1 + drivers/scsi/zorro7xx.c | 1 + 98 files changed, 100 insertions(+), 0 deletions(-)
drivers/message/fusion/mptfc.c +1 -0
@@ -111,6 +111,7 @@ static struct scsi_host_template mptfc_driver_template = { .proc_name = "mptfc", .proc_info = mptscsih_proc_info, .name = "MPT FC Host", + .supported_mode = MODE_INITIATOR, .info = mptscsih_info, .queuecommand = mptfc_qcmd, .target_alloc = mptfc_target_alloc,
drivers/message/fusion/mptsas.c +1 -0
@@ -1013,6 +1013,7 @@ static struct scsi_host_template mptsas_driver_template = { .proc_name = "mptsas", .proc_info = mptscsih_proc_info, .name = "MPT SPI Host", + .supported_mode = MODE_INITIATOR, .info = mptscsih_info, .queuecommand = mptsas_qcmd, .target_alloc = mptsas_target_alloc,
drivers/message/fusion/mptspi.c +1 -0
@@ -813,6 +813,7 @@ static struct scsi_host_template mptspi_driver_template = { .proc_name = "mptspi", .proc_info = mptscsih_proc_info, .name = "MPT SPI Host", + .supported_mode = MODE_INITIATOR, .info = mptscsih_info, .queuecommand = mptspi_qcmd, .target_alloc = mptspi_target_alloc,
drivers/s390/scsi/zfcp_scsi.c +1 -0
@@ -45,6 +45,7 @@ struct zfcp_data zfcp_data = { .name = ZFCP_NAME, .module = THIS_MODULE, .proc_name = "zfcp", + .supported_mode = MODE_INITIATOR, .slave_alloc = zfcp_scsi_slave_alloc, .slave_configure = zfcp_scsi_slave_configure, .slave_destroy = zfcp_scsi_slave_destroy,
drivers/scsi/3w-9xxx.c +1 -0
@@ -1980,6 +1980,7 @@ static void twa_unmap_scsi_data(TW_Device_Extension *tw_dev, int request_id)static struct scsi_host_template driver_template = { .module =THIS_MODULE , .name ="3ware 9000 Storage Controller" , + .supported_mode =MODE_INITIATOR , .queuecommand = twa_scsi_queue, .eh_host_reset_handler = twa_scsi_eh_reset, .bios_param = twa_scsi_biosparam,
drivers/scsi/3w-xxxx.c +1 -0
@@ -2251,6 +2251,7 @@ static void tw_shutdown(struct pci_dev *pdev)static struct scsi_host_template driver_template = { .module =THIS_MODULE , .name ="3ware Storage Controller" , + .supported_mode =MODE_INITIATOR , .queuecommand = tw_scsi_queue, .eh_host_reset_handler = tw_scsi_eh_reset, .bios_param = tw_scsi_biosparam,
drivers/scsi/NCR_D700.c +1 -0
@@ -161,6 +161,7 @@ static struct scsi_host_template NCR_D700_driver_template = { .module = THIS_MODULE, .name = "NCR Dual 700 MCA", .proc_name = "NCR_D700", + .supported_mode = MODE_INITIATOR, .this_id = 7, };
drivers/scsi/NCR_Q720.c +1 -0
@@ -51,6 +51,7 @@ struct NCR_Q720_private {static struct scsi_host_template NCR_Q720_tpnt = { .module =THIS_MODULE , .proc_name ="NCR_Q720" , + .supported_mode =MODE_INITIATOR , }; static irqreturn_t
drivers/scsi/a100u2w.c +1 -0
@@ -1062,6 +1062,7 @@ static irqreturn_t inia100_intr(int irqno, void *devid)static struct scsi_host_template inia100_template = { .proc_name ="inia100" , .name = inia100_REVID, + .supported_mode =MODE_INITIATOR , .queuecommand = inia100_queue, .eh_abort_handler = inia100_abort, .eh_bus_reset_handler = inia100_bus_reset,
drivers/scsi/a2091.c +1 -0
@@ -235,6 +235,7 @@ static int a2091_bus_reset(struct scsi_cmnd *cmd)static struct scsi_host_template driver_template = { .proc_name ="A2901" , .name ="Commodore A2091/A590 SCSI" , + .supported_mode =MODE_INITIATOR , .detect = a2091_detect, .release = a2091_release, .queuecommand = wd33c93_queuecommand,
drivers/scsi/a3000.c +1 -0
@@ -223,6 +223,7 @@ static int a3000_bus_reset(struct scsi_cmnd *cmd)static struct scsi_host_template driver_template = { .proc_name ="A3000" , .name ="Amiga 3000 built-in SCSI" , + .supported_mode =MODE_INITIATOR , .detect = a3000_detect, .release = a3000_release, .queuecommand = wd33c93_queuecommand,
drivers/scsi/a4000t.c +1 -0
@@ -27,6 +27,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template a4000t_scsi_driver_template = { .name ="A4000T builtin SCSI" , .proc_name ="A4000t" , + .supported_mode =MODE_INITIATOR , .this_id =7 , .module =THIS_MODULE , };
drivers/scsi/aacraid/linit.c +1 -0
@@ -922,6 +922,7 @@ static struct scsi_host_template aac_driver_template = { .module = THIS_MODULE, .name = "AAC", .proc_name = AAC_DRIVERNAME, + .supported_mode = MODE_INITIATOR, .info = aac_info, .ioctl = aac_ioctl,#ifdef CONFIG_COMPAT
drivers/scsi/advansys.c +1 -0
@@ -3219,6 +3219,7 @@ static struct scsi_host_template advansys_template = { .proc_info = advansys_proc_info, #endif .name = DRV_NAME, + .supported_mode = MODE_INITIATOR, .info = advansys_info, .queuecommand = advansys_queuecommand, .eh_bus_reset_handler = advansys_reset,
drivers/scsi/aha152x.c +1 -0
@@ -3486,6 +3486,7 @@ static struct scsi_host_template aha152x_driver_template = { .module = THIS_MODULE, .name = AHA152X_REVID, .proc_name = "aha152x", + .supported_mode = MODE_INITIATOR, .proc_info = aha152x_proc_info, .queuecommand = aha152x_queue, .eh_abort_handler = aha152x_abort,
drivers/scsi/aha1542.c +1 -0
@@ -1785,6 +1785,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template driver_template = { .proc_name ="aha1542" , .name ="Adaptec 1542" , + .supported_mode =MODE_INITIATOR , .detect = aha1542_detect, .release = aha1542_release, .queuecommand = aha1542_queuecommand,
drivers/scsi/aha1740.c +1 -0
@@ -556,6 +556,7 @@ static struct scsi_host_template aha1740_template = { .proc_name = "aha1740", .proc_info = aha1740_proc_info, .name = "Adaptec 174x (EISA)", + .supported_mode = MODE_INITIATOR, .queuecommand = aha1740_queuecommand, .bios_param = aha1740_biosparam, .can_queue = AHA1740_ECBS,
drivers/scsi/aic7xxx/aic79xx_osm.c +1 -0
@@ -752,6 +752,7 @@ struct scsi_host_template aic79xx_driver_template = { .module = THIS_MODULE, .name = "aic79xx", .proc_name = "aic79xx", + .supported_mode = MODE_INITIATOR, .proc_info = ahd_linux_proc_info, .info = ahd_linux_info, .queuecommand = ahd_linux_queue,
drivers/scsi/aic7xxx/aic7xxx_osm.c +1 -0
@@ -733,6 +733,7 @@ struct scsi_host_template aic7xxx_driver_template = { .module = THIS_MODULE, .name = "aic7xxx", .proc_name = "aic7xxx", + .supported_mode = MODE_INITIATOR, .proc_info = ahc_linux_proc_info, .info = ahc_linux_info, .queuecommand = ahc_linux_queue,
drivers/scsi/aic7xxx_old.c +1 -0
@@ -11125,6 +11125,7 @@ MODULE_VERSION(AIC7XXX_H_VERSION);static struct scsi_host_template driver_template = { + .supported_mode =MODE_INITIATOR , .proc_info = aic7xxx_proc_info, .detect = aic7xxx_detect, .release = aic7xxx_release,
drivers/scsi/aic94xx/aic94xx_init.c +1 -0
@@ -64,6 +64,7 @@ static struct scsi_host_template aic94xx_sht = { .module = THIS_MODULE,/* .name is initialized */ .name = "aic94xx", + .supported_mode = MODE_INITIATOR, .queuecommand = sas_queuecommand, .target_alloc = sas_target_alloc, .slave_configure = sas_slave_configure,
drivers/scsi/arcmsr/arcmsr_hba.c +1 -0
@@ -110,6 +110,7 @@ static struct scsi_host_template arcmsr_scsi_host_template = { .module = THIS_MODULE, .name ="ARCMSR ARECA SATA/SAS RAID HOST Adapter" ARCMSR_DRIVER_VERSION, + .supported_mode = MODE_INITIATOR, .info = arcmsr_info, .queuecommand = arcmsr_queue_command, .eh_abort_handler = arcmsr_abort,
drivers/scsi/arm/acornscsi.c +1 -0
@@ -2974,6 +2974,7 @@ static struct scsi_host_template acornscsi_template = { .module = THIS_MODULE, .proc_info = acornscsi_proc_info, .name = "AcornSCSI", + .supported_mode = MODE_INITIATOR, .info = acornscsi_info, .queuecommand = acornscsi_queuecmd,#warning fixme
drivers/scsi/arm/arxescsi.c +1 -0
@@ -262,6 +262,7 @@ arxescsi_proc_info(struct Scsi_Host *host, char *buffer, char **start, off_t offstatic struct scsi_host_template arxescsi_template = { .proc_info = arxescsi_proc_info, .name ="ARXE SCSI card" , + .supported_mode =MODE_INITIATOR , .info = arxescsi_info, .queuecommand = fas216_noqueue_command, .eh_host_reset_handler = fas216_eh_host_reset,
drivers/scsi/arm/cumana_1.c +1 -0
@@ -214,6 +214,7 @@ static void cumanascsi_write(struct Scsi_Host *host, unsigned int reg, unsignedstatic struct scsi_host_template cumanascsi_template = { .module =THIS_MODULE , .name ="Cumana 16-bit SCSI" , + .supported_mode =MODE_INITIATOR , .info = cumanascsi_info, .queuecommand = cumanascsi_queue_command, .eh_abort_handler = NCR5380_abort,
drivers/scsi/arm/cumana_2.c +1 -0
@@ -382,6 +382,7 @@ static struct scsi_host_template cumanascsi2_template = { .module = THIS_MODULE, .proc_info = cumanascsi_2_proc_info, .name = "Cumana SCSI II", + .supported_mode = MODE_INITIATOR, .info = cumanascsi_2_info, .queuecommand = fas216_queue_command, .eh_host_reset_handler = fas216_eh_host_reset,
drivers/scsi/arm/eesox.c +1 -0
@@ -500,6 +500,7 @@ static struct scsi_host_template eesox_template = { .module = THIS_MODULE, .proc_info = eesoxscsi_proc_info, .name = "EESOX SCSI", + .supported_mode = MODE_INITIATOR, .info = eesoxscsi_info, .queuecommand = fas216_queue_command, .eh_host_reset_handler = fas216_eh_host_reset,
drivers/scsi/arm/oak.c +1 -0
@@ -117,6 +117,7 @@ static struct scsi_host_template oakscsi_template = { .module = THIS_MODULE, .proc_info = oakscsi_proc_info, .name = "Oak 16-bit SCSI", + .supported_mode = MODE_INITIATOR, .info = oakscsi_info, .queuecommand = oakscsi_queue_command, .eh_abort_handler = NCR5380_abort,
drivers/scsi/arm/powertec.c +1 -0
@@ -293,6 +293,7 @@ static struct scsi_host_template powertecscsi_template = { .module = THIS_MODULE, .proc_info = powertecscsi_proc_info, .name = "PowerTec SCSI", + .supported_mode = MODE_INITIATOR, .info = powertecscsi_info, .queuecommand = fas216_queue_command, .eh_host_reset_handler = fas216_eh_host_reset,
drivers/scsi/atari_scsi.c +1 -0
@@ -1129,6 +1129,7 @@ static void atari_scsi_falcon_reg_write(unsigned char reg, unsigned char value)static struct scsi_host_template driver_template = { .proc_info = atari_scsi_proc_info, .name ="Atari native SCSI" , + .supported_mode =MODE_INITIATOR , .detect = atari_scsi_detect, .release = atari_scsi_release, .info = atari_scsi_info,
drivers/scsi/atp870u.c +1 -0
@@ -3234,6 +3234,7 @@ static struct scsi_host_template atp870u_template = { .module = THIS_MODULE, .name = "atp870u" /* name */, .proc_name = "atp870u", + .supported_mode = MODE_INITIATOR, .proc_info = atp870u_proc_info, .info = atp870u_info /* info */, .queuecommand = atp870u_queuecommand /* queuecommand */,
drivers/scsi/blz1230.c +1 -0
@@ -333,6 +333,7 @@ static struct scsi_host_template driver_template = { .proc_name = "esp-blz1230", .proc_info = esp_proc_info, .name = "Blizzard1230 SCSI IV", + .supported_mode = MODE_INITIATOR, .detect = blz1230_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/blz2060.c +1 -0
@@ -286,6 +286,7 @@ static struct scsi_host_template driver_template = { .proc_name = "esp-blz2060", .proc_info = esp_proc_info, .name = "Blizzard2060 SCSI", + .supported_mode = MODE_INITIATOR, .detect = blz2060_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/cyberstorm.c +1 -0
@@ -357,6 +357,7 @@ static struct scsi_host_template driver_template = { .proc_name = "esp-cyberstorm", .proc_info = esp_proc_info, .name = "CyberStorm SCSI", + .supported_mode = MODE_INITIATOR, .detect = cyber_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/cyberstormII.c +1 -0
@@ -294,6 +294,7 @@ static struct scsi_host_template driver_template = { .proc_name = "esp-cyberstormII", .proc_info = esp_proc_info, .name = "CyberStorm Mk II SCSI", + .supported_mode = MODE_INITIATOR, .detect = cyberII_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/dc395x.c +1 -0
@@ -4753,6 +4753,7 @@ static struct scsi_host_template dc395x_driver_template = { .proc_name = DC395X_NAME, .proc_info = dc395x_proc_info, .name = DC395X_BANNER " " DC395X_VERSION, + .supported_mode = MODE_INITIATOR, .queuecommand = dc395x_queue_command, .bios_param = dc395x_bios_param, .slave_alloc = dc395x_slave_alloc,
drivers/scsi/dec_esp.c +1 -0
@@ -101,6 +101,7 @@ static irqreturn_t scsi_dma_int(int, void *);static struct scsi_host_template dec_esp_template = { .module =THIS_MODULE , .name ="NCR53C94" , + .supported_mode =MODE_INITIATOR , .info = esp_info, .queuecommand = esp_queue, .eh_abort_handler = esp_abort,
drivers/scsi/dmx3191d.c +1 -0
@@ -58,6 +58,7 @@static struct scsi_host_template dmx3191d_driver_template = { .proc_name =DMX3191D_DRIVER_NAME , .name ="Domex DMX3191D" , + .supported_mode =MODE_INITIATOR , .queuecommand = NCR5380_queue_command, .eh_abort_handler = NCR5380_abort, .eh_bus_reset_handler = NCR5380_bus_reset,
drivers/scsi/dtc.c +1 -0
@@ -470,6 +470,7 @@ static int dtc_release(struct Scsi_Host *shost)static struct scsi_host_template driver_template = { .name ="DTC 3180/3280 " , + .supported_mode =MODE_INITIATOR , .detect = dtc_detect, .release = dtc_release, .queuecommand = dtc_queue_command,
drivers/scsi/eata.c +1 -0
@@ -514,6 +514,7 @@ static int eata2x_slave_configure(struct scsi_device *);static struct scsi_host_template driver_template = { .name ="EATA/DMA 2.0x rev. 8.10.00 " , + .supported_mode =MODE_INITIATOR , .detect = eata2x_detect, .release = eata2x_release, .queuecommand = eata2x_queuecommand,
drivers/scsi/eata_pio.c +1 -0
@@ -1000,6 +1000,7 @@ static int eata_pio_detect(struct scsi_host_template *tpnt)static struct scsi_host_template driver_template = { .proc_name ="eata_pio" , .name ="EATA (Extended Attachment) PIO driver" , + .supported_mode =MODE_INITIATOR , .proc_info = eata_pio_proc_info, .detect = eata_pio_detect, .release = eata_pio_release,
drivers/scsi/esp_scsi.c +1 -0
@@ -2593,6 +2593,7 @@ static const char *esp_info(struct Scsi_Host *host)struct scsi_host_template scsi_esp_template = { .module =THIS_MODULE , .name ="esp" , + .supported_mode =MODE_INITIATOR , .info = esp_info, .queuecommand = esp_queuecommand, .slave_alloc = esp_slave_alloc,
drivers/scsi/fastlane.c +1 -0
@@ -402,6 +402,7 @@ static struct scsi_host_template driver_template = { .proc_name = "esp-fastlane", .proc_info = esp_proc_info, .name = "Fastlane SCSI", + .supported_mode = MODE_INITIATOR, .detect = fastlane_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/fcal.c +1 -0
@@ -297,6 +297,7 @@ static int fcal_encode_addr(Scsi_Cmnd *SCpnt, u16 *addr, fc_channel *fc, fcp_cmnstatic struct scsi_host_template driver_template = { .name ="Fibre Channel Arbitrated Loop" , + .supported_mode =MODE_INITIATOR , .detect = fcal_detect, .release = fcal_release, .proc_info = fcal_proc_info,
drivers/scsi/fd_mcs.c +1 -0
@@ -1347,6 +1347,7 @@ static int fd_mcs_biosparam(struct scsi_device * disk, struct block_device *bdevstatic struct scsi_host_template driver_template = { .proc_name ="fd_mcs" , + .supported_mode =MODE_INITIATOR , .proc_info = fd_mcs_proc_info, .detect = fd_mcs_detect, .release = fd_mcs_release,
drivers/scsi/fdomain.c +1 -0
@@ -1749,6 +1749,7 @@ struct scsi_host_template fdomain_driver_template = { .module = THIS_MODULE, .name = "fdomain", .proc_name = "fdomain", + .supported_mode = MODE_INITIATOR, .detect = fdomain_16x0_detect, .info = fdomain_16x0_info, .queuecommand = fdomain_16x0_queue,
drivers/scsi/g_NCR5380.c +1 -0
@@ -912,6 +912,7 @@ static int generic_NCR5380_proc_info(struct Scsi_Host *scsi_ptr, char *buffer, cstatic struct scsi_host_template driver_template = { .proc_info = generic_NCR5380_proc_info, .name ="Generic NCR5380/NCR53C400 Scsi Driver" , + .supported_mode =MODE_INITIATOR , .detect = generic_NCR5380_detect, .release = generic_NCR5380_release_resources, .info = generic_NCR5380_info,
drivers/scsi/gdth.c +1 -0
@@ -5645,6 +5645,7 @@ static Scsi_Host_Template driver_template = { .proc_name = "gdth", .proc_info = gdth_proc_info, .name = "GDT SCSI Disk Array Controller", + .supported_mode = MODE_INITIATOR, .detect = gdth_detect, .release = gdth_release, .info = gdth_info,
drivers/scsi/gvp11.c +1 -0
@@ -363,6 +363,7 @@ static int gvp11_bus_reset(struct scsi_cmnd *cmd)static struct scsi_host_template driver_template = { .proc_name ="GVP11" , .name ="GVP Series II SCSI" , + .supported_mode =MODE_INITIATOR , .detect = gvp11_detect, .release = gvp11_release, .queuecommand = wd33c93_queuecommand,
drivers/scsi/hptiop.c +1 -0
@@ -648,6 +648,7 @@ static struct class_device_attribute *hptiop_attrs[] = {static struct scsi_host_template driver_template = { .module =THIS_MODULE , .name = driver_name, + .supported_mode =MODE_INITIATOR , .queuecommand = hptiop_queuecommand, .eh_device_reset_handler = hptiop_reset, .eh_bus_reset_handler = hptiop_reset,
drivers/scsi/ibmmca.c +1 -0
@@ -1499,6 +1499,7 @@ static struct scsi_host_template ibmmca_driver_template = { .proc_name = "ibmmca", .proc_info = ibmmca_proc_info, .name = "IBM SCSI-Subsystem", + .supported_mode = MODE_INITIATOR, .queuecommand = ibmmca_queuecommand, .eh_abort_handler = ibmmca_abort, .eh_host_reset_handler = ibmmca_host_reset,
drivers/scsi/ibmvscsi/ibmvscsi.c +1 -0
@@ -1534,6 +1534,7 @@ static struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = "IBM POWER Virtual SCSI Adapter " IBMVSCSI_VERSION, .proc_name = "ibmvscsi", + .supported_mode = MODE_INITIATOR, .queuecommand = ibmvscsi_queuecommand, .eh_abort_handler = ibmvscsi_eh_abort_handler, .eh_device_reset_handler = ibmvscsi_eh_device_reset_handler,
drivers/scsi/imm.c +1 -0
@@ -1128,6 +1128,7 @@ static struct scsi_host_template imm_template = { .proc_name = "imm", .proc_info = imm_proc_info, .name = "Iomega VPI2 (imm) interface", + .supported_mode = MODE_INITIATOR, .queuecommand = imm_queuecommand, .eh_abort_handler = imm_abort, .eh_bus_reset_handler = imm_reset,
drivers/scsi/in2000.c +1 -0
@@ -2321,6 +2321,7 @@ static struct scsi_host_template driver_template = { .proc_name = "in2000", .proc_info = in2000_proc_info, .name = "Always IN2000", + .supported_mode = MODE_INITIATOR, .detect = in2000_detect, .release = in2000_release, .queuecommand = in2000_queuecommand,
drivers/scsi/ipr.c +1 -0
@@ -4929,6 +4929,7 @@ static const char * ipr_ioa_info(struct Scsi_Host *host)static struct scsi_host_template driver_template = { .module =THIS_MODULE , .name ="IPR" , + .supported_mode =MODE_INITIATOR , .info = ipr_ioa_info, .ioctl = ipr_ioctl, .queuecommand = ipr_queuecommand,
drivers/scsi/ips.c +1 -0
@@ -368,6 +368,7 @@ static struct scsi_host_template ips_driver_template = { .eh_abort_handler = ips_eh_abort, .eh_host_reset_handler = ips_eh_reset, .proc_name = "ips", + .supported_mode = MODE_INITIATOR, .proc_info = ips_proc_info, .slave_configure = ips_slave_configure, .bios_param = ips_biosparam,
drivers/scsi/iscsi_tcp.c +1 -0
@@ -2224,6 +2224,7 @@ static int iscsi_tcp_slave_configure(struct scsi_device *sdev)static struct scsi_host_template iscsi_sht = { .module =THIS_MODULE , .name ="iSCSI Initiator over TCP/IP" , + .supported_mode =MODE_INITIATOR , .queuecommand = iscsi_queuecommand, .change_queue_depth = iscsi_change_queue_depth, .can_queue =ISCSI_DEF_XMIT_CMDS_MAX -1 ,
drivers/scsi/lpfc/lpfc_scsi.c +2 -0
@@ -1427,6 +1427,7 @@ lpfc_slave_destroy(struct scsi_device *sdev)struct scsi_host_template lpfc_template = { .module =THIS_MODULE , .name =LPFC_DRIVER_NAME , + .supported_mode =MODE_INITIATOR , .info = lpfc_info, .queuecommand = lpfc_queuecommand, .eh_abort_handler = lpfc_abort_handler,
@@ -1447,6 +1448,7 @@ struct scsi_host_template lpfc_template = {struct scsi_host_template lpfc_vport_template = { .module =THIS_MODULE , .name =LPFC_DRIVER_NAME , + .supported_mode =MODE_INITIATOR , .info = lpfc_info, .queuecommand = lpfc_queuecommand, .eh_abort_handler = lpfc_abort_handler,
drivers/scsi/mac53c94.c +1 -0
@@ -395,6 +395,7 @@ static void set_dma_cmds(struct fsc_state *state, struct scsi_cmnd *cmd)static struct scsi_host_template mac53c94_template = { .proc_name ="53c94" , .name ="53C94" , + .supported_mode =MODE_INITIATOR , .queuecommand = mac53c94_queue, .eh_host_reset_handler = mac53c94_host_reset, .can_queue =1 ,
drivers/scsi/mac_esp.c +1 -0
@@ -730,6 +730,7 @@ static void dma_setup_quick(struct NCR_ESP * esp, __u32 addr, int count, int wristatic struct scsi_host_template driver_template = { .proc_name ="mac_esp" , .name ="Mac 53C9x SCSI" , + .supported_mode =MODE_INITIATOR , .detect = mac_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/mac_scsi.c +1 -0
@@ -581,6 +581,7 @@ static struct scsi_host_template driver_template = { .proc_name = "Mac5380", .proc_info = macscsi_proc_info, .name = "Macintosh NCR5380 SCSI", + .supported_mode = MODE_INITIATOR, .detect = macscsi_detect, .release = macscsi_release, .info = macscsi_info,
drivers/scsi/mca_53c9x.c +1 -0
@@ -447,6 +447,7 @@ static void dma_led_off(struct NCR_ESP *esp)static struct scsi_host_template driver_template = { .proc_name ="mca_53c9x" , .name ="NCR 53c9x SCSI" , + .supported_mode =MODE_INITIATOR , .detect = mca_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/megaraid.c +1 -0
@@ -4475,6 +4475,7 @@ static struct scsi_host_template megaraid_template = { .module = THIS_MODULE, .name = "MegaRAID", .proc_name = "megaraid_legacy", + .supported_mode = MODE_INITIATOR, .info = megaraid_info, .queuecommand = megaraid_queue, .bios_param = megaraid_biosparam,
drivers/scsi/megaraid/megaraid_mbox.c +1 -0
@@ -354,6 +354,7 @@ static struct scsi_host_template megaraid_template_g = { .module = THIS_MODULE, .name = "LSI Logic MegaRAID driver", .proc_name = "megaraid", + .supported_mode = MODE_INITIATOR, .queuecommand = megaraid_queue_command, .eh_abort_handler = megaraid_abort_handler, .eh_device_reset_handler = megaraid_reset_handler,
drivers/scsi/megaraid/megaraid_sas.c +1 -0
@@ -1102,6 +1102,7 @@ static struct scsi_host_template megasas_template = { .module = THIS_MODULE, .name = "LSI Logic SAS based MegaRAID driver", .proc_name = "megaraid_sas", + .supported_mode = MODE_INITIATOR, .slave_configure = megasas_slave_configure, .queuecommand = megasas_queue_command, .eh_device_reset_handler = megasas_reset_device,
drivers/scsi/mesh.c +1 -0
@@ -1835,6 +1835,7 @@ static int mesh_shutdown(struct macio_dev *mdev)static struct scsi_host_template mesh_template = { .proc_name ="mesh" , .name ="MESH" , + .supported_mode =MODE_INITIATOR , .queuecommand = mesh_queue, .eh_abort_handler = mesh_abort, .eh_host_reset_handler = mesh_host_reset,
drivers/scsi/mvme147.c +1 -0
@@ -132,6 +132,7 @@ static int mvme147_bus_reset(struct scsi_cmnd *cmd)static struct scsi_host_template driver_template = { .proc_name ="MVME147" , .name ="MVME147 built-in SCSI" , + .supported_mode =MODE_INITIATOR , .detect = mvme147_detect, .release = mvme147_release, .queuecommand = wd33c93_queuecommand,
drivers/scsi/mvme16x_scsi.c +1 -0
@@ -27,6 +27,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template mvme16x_scsi_driver_template = { .name ="MVME16x NCR53c710 SCSI" , .proc_name ="MVME16x" , + .supported_mode =MODE_INITIATOR , .this_id =7 , .module =THIS_MODULE , };
drivers/scsi/nsp32.c +1 -0
@@ -272,6 +272,7 @@ static void nsp32_dmessage(const char *, int, int, char *, ...);static struct scsi_host_template nsp32_template = { .proc_name ="nsp32" , .name ="Workbit NinjaSCSI-32Bi/UDE" , + .supported_mode =MODE_INITIATOR , .proc_info = nsp32_proc_info, .info = nsp32_info, .queuecommand = nsp32_queuecommand,
drivers/scsi/oktagon_esp.c +1 -0
@@ -588,6 +588,7 @@ static struct scsi_host_template driver_template = { .proc_name = "esp-oktagon", .proc_info = &esp_proc_info, .name = "BSC Oktagon SCSI", + .supported_mode = MODE_INITIATOR, .detect = oktagon_esp_detect, .slave_alloc = esp_slave_alloc, .slave_destroy = esp_slave_destroy,
drivers/scsi/pas16.c +1 -0
@@ -616,6 +616,7 @@ static int pas16_release(struct Scsi_Host *shost)static struct scsi_host_template driver_template = { .name ="Pro Audio Spectrum-16 SCSI" , + .supported_mode =MODE_INITIATOR , .detect = pas16_detect, .release = pas16_release, .queuecommand = pas16_queue_command,
drivers/scsi/pcmcia/nsp_cs.c +1 -0
@@ -83,6 +83,7 @@ static struct scsi_host_template nsp_driver_template = { .proc_name = "nsp_cs", .proc_info = nsp_proc_info, .name = "WorkBit NinjaSCSI-3/32Bi(16bit)", + .supported_mode = MODE_INITIATOR,#if (LINUX_VERSION_CODE <KERNEL_VERSION (2 ,5 ,0 )) .detect = nsp_detect_old, .release = nsp_release_old,
drivers/scsi/pcmcia/qlogic_stub.c +1 -0
@@ -75,6 +75,7 @@ static struct scsi_host_template qlogicfas_driver_template = { .module = THIS_MODULE, .name = qlogic_name, .proc_name = qlogic_name, + .supported_mode = MODE_INITIATOR, .info = qlogicfas408_info, .queuecommand = qlogicfas408_queuecommand, .eh_abort_handler = qlogicfas408_abort,
drivers/scsi/pcmcia/sym53c500_cs.c +1 -0
@@ -689,6 +689,7 @@ static struct scsi_host_template sym53c500_driver_template = { .eh_host_reset_handler = SYM53C500_host_reset, .bios_param = SYM53C500_biosparm, .proc_name = "SYM53C500", + .supported_mode = MODE_INITIATOR, .can_queue = 1, .this_id = 7, .sg_tablesize = 32,
drivers/scsi/pluto.c +1 -0
@@ -329,6 +329,7 @@ static int pluto_encode_addr(Scsi_Cmnd *SCpnt, u16 *addr, fc_channel *fc, fcp_cmstatic struct scsi_host_template driver_template = { .name ="Sparc Storage Array 100/200" , + .supported_mode =MODE_INITIATOR , .detect = pluto_detect, .release = pluto_release, .info = pluto_info,
drivers/scsi/ppa.c +1 -0
@@ -985,6 +985,7 @@ static struct scsi_host_template ppa_template = { .proc_name = "ppa", .proc_info = ppa_proc_info, .name = "Iomega VPI0 (ppa) interface", + .supported_mode = MODE_INITIATOR, .queuecommand = ppa_queuecommand, .eh_abort_handler = ppa_abort, .eh_bus_reset_handler = ppa_reset,
drivers/scsi/psi240i.c +1 -0
@@ -676,6 +676,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template driver_template = { .proc_name ="psi240i" , .name ="PSI-240I EIDE Disk Controller" , + .supported_mode =MODE_INITIATOR , .detect = Psi240i_Detect, .release = Psi240i_Release, .queuecommand = Psi240i_QueueCommand,
drivers/scsi/qla1280.c +1 -0
@@ -4235,6 +4235,7 @@ static struct scsi_host_template qla1280_driver_template = { .module = THIS_MODULE, .proc_name = "qla1280", .name = "Qlogic ISP 1280/12160", + .supported_mode = MODE_INITIATOR, .info = qla1280_info, .slave_configure = qla1280_slave_configure, .queuecommand = qla1280_queuecommand,
drivers/scsi/qla2xxx/qla_os.c +2 -0
@@ -114,6 +114,7 @@ static int qla2x00_change_queue_type(struct scsi_device *, int);struct scsi_host_template qla2x00_driver_template = { .module =THIS_MODULE , .name =QLA2XXX_DRIVER_NAME , + .supported_mode =MODE_INITIATOR , .queuecommand = qla2x00_queuecommand, .eh_abort_handler = qla2xxx_eh_abort,
@@ -145,6 +146,7 @@ struct scsi_host_template qla2x00_driver_template = {struct scsi_host_template qla24xx_driver_template = { .module =THIS_MODULE , .name =QLA2XXX_DRIVER_NAME , + .supported_mode =MODE_INITIATOR , .queuecommand = qla24xx_queuecommand, .eh_abort_handler = qla2xxx_eh_abort,
drivers/scsi/qla4xxx/ql4_os.c +1 -0
@@ -82,6 +82,7 @@ static struct scsi_host_template qla4xxx_driver_template = { .module = THIS_MODULE, .name = DRIVER_NAME, .proc_name = DRIVER_NAME, + .supported_mode = MODE_INITIATOR, .queuecommand = qla4xxx_queuecommand, .eh_device_reset_handler = qla4xxx_eh_device_reset,
drivers/scsi/qlogicfas.c +1 -0
@@ -187,6 +187,7 @@ static struct scsi_host_template qlogicfas_driver_template = { .module = THIS_MODULE, .name = qlogicfas_name, .proc_name = qlogicfas_name, + .supported_mode = MODE_INITIATOR, .info = qlogicfas408_info, .queuecommand = qlogicfas408_queuecommand, .eh_abort_handler = qlogicfas408_abort,
drivers/scsi/qlogicpti.c +1 -0
@@ -1389,6 +1389,7 @@ static int qlogicpti_reset(struct scsi_cmnd *Cmnd)static struct scsi_host_template qpti_template = { .module =THIS_MODULE , .name ="qlogicpti" , + .supported_mode =MODE_INITIATOR , .info = qlogicpti_info, .queuecommand = qlogicpti_queuecommand_slow, .eh_abort_handler = qlogicpti_abort,
drivers/scsi/seagate.c +1 -0
@@ -1652,6 +1652,7 @@ static int seagate_st0x_release(struct Scsi_Host *shost) }static struct scsi_host_template driver_template = { + .supported_mode =MODE_INITIATOR , .detect = seagate_st0x_detect, .release = seagate_st0x_release, .info = seagate_st0x_info,
drivers/scsi/sgiwd93.c +1 -0
@@ -201,6 +201,7 @@ static struct scsi_host_template sgiwd93_template = { .module = THIS_MODULE, .proc_name = "SGIWD93", .name = "SGI WD93", + .supported_mode = MODE_INITIATOR, .queuecommand = wd33c93_queuecommand, .eh_abort_handler = wd33c93_abort, .eh_bus_reset_handler = sgiwd93_bus_reset,
drivers/scsi/sim710.c +1 -0
@@ -90,6 +90,7 @@ __setup("sim710=", param_setup);static struct scsi_host_template sim710_driver_template = { .name ="LSI (Symbios) 710 MCA/EISA" , .proc_name ="sim710" , + .supported_mode =MODE_INITIATOR , .this_id =7 , .module =THIS_MODULE , };
drivers/scsi/sni_53c710.c +1 -0
@@ -59,6 +59,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template snirm710_template = { .name ="SNI RM SCSI 53c710" , .proc_name ="snirm_53c710" , + .supported_mode =MODE_INITIATOR , .this_id =7 , .module =THIS_MODULE , };
drivers/scsi/stex.c +1 -0
@@ -1112,6 +1112,7 @@ static struct scsi_host_template driver_template = { .module = THIS_MODULE, .name = DRV_NAME, .proc_name = DRV_NAME, + .supported_mode = MODE_INITIATOR, .bios_param = stex_biosparam, .queuecommand = stex_queuecommand, .slave_alloc = stex_slave_alloc,
drivers/scsi/sun3_scsi.c +1 -0
@@ -623,6 +623,7 @@ static int sun3scsi_dma_finish(int write_flag)static struct scsi_host_template driver_template = { .name =SUN3_SCSI_NAME , + .supported_mode =MODE_INITIATOR , .detect = sun3scsi_detect, .release = sun3scsi_release, .info = sun3scsi_info,
drivers/scsi/sun3_scsi_vme.c +1 -0
@@ -566,6 +566,7 @@ static int sun3scsi_dma_finish(int write_flag)static struct scsi_host_template driver_template = { .name =SUN3_SCSI_NAME , + .supported_mode =MODE_INITIATOR , .detect = sun3scsi_detect, .release = sun3scsi_release, .info = sun3scsi_info,
drivers/scsi/sun3x_esp.c +1 -0
@@ -371,6 +371,7 @@ static struct scsi_host_template driver_template = { .proc_name = "sun3x_esp", .proc_info = &esp_proc_info, .name = "Sun ESP 100/100a/200", + .supported_mode = MODE_INITIATOR, .detect = sun3x_esp_detect, .release = sun3x_esp_release, .slave_alloc = esp_slave_alloc,
drivers/scsi/sym53c416.c +1 -0
@@ -842,6 +842,7 @@ module_param_array(sym53c416_3, uint, NULL, 0);static struct scsi_host_template driver_template = { .proc_name ="sym53c416" , .name ="Symbios Logic 53c416" , + .supported_mode =MODE_INITIATOR , .detect = sym53c416_detect, .info = sym53c416_info, .queuecommand = sym53c416_queuecommand,
drivers/scsi/t128.c +1 -0
@@ -431,6 +431,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template driver_template = { .name ="Trantor T128/T128F/T228" , + .supported_mode =MODE_INITIATOR , .detect = t128_detect, .release = t128_release, .queuecommand = t128_queue_command,
drivers/scsi/tmscsim.c +1 -0
@@ -2201,6 +2201,7 @@ static struct scsi_host_template driver_template = { .module = THIS_MODULE, .proc_name = "tmscsim", .name = DC390_BANNER " V" DC390_VERSION, + .supported_mode = MODE_INITIATOR, .slave_alloc = dc390_slave_alloc, .slave_configure = dc390_slave_configure, .slave_destroy = dc390_slave_destroy,
drivers/scsi/u14-34f.c +1 -0
@@ -441,6 +441,7 @@ static int u14_34f_slave_configure(struct scsi_device *);static struct scsi_host_template driver_template = { .name ="UltraStor 14F/34F rev. 8.10.00 " , + .supported_mode =MODE_INITIATOR , .detect = u14_34f_detect, .release = u14_34f_release, .queuecommand = u14_34f_queuecommand,
drivers/scsi/ultrastor.c +1 -0
@@ -1185,6 +1185,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template driver_template = { .name ="UltraStor 14F/24F/34F" , + .supported_mode =MODE_INITIATOR , .detect = ultrastor_detect, .release = ultrastor_release, .info = ultrastor_info,
drivers/scsi/wd7000.c +1 -0
@@ -1660,6 +1660,7 @@ static struct scsi_host_template driver_template = { .proc_name = "wd7000", .proc_info = wd7000_proc_info, .name = "Western Digital WD-7000", + .supported_mode = MODE_INITIATOR, .detect = wd7000_detect, .release = wd7000_release, .queuecommand = wd7000_queuecommand,
drivers/scsi/zalon.c +1 -0
@@ -80,6 +80,7 @@ lasi_scsi_clock(void * hpa, int defaultclock)static struct scsi_host_template zalon7xx_template = { .module =THIS_MODULE , .proc_name ="zalon7xx" , + .supported_mode =MODE_INITIATOR , }; static int __init
drivers/scsi/zorro7xx.c +1 -0
@@ -26,6 +26,7 @@ MODULE_LICENSE("GPL");static struct scsi_host_template zorro7xx_scsi_driver_template = { .proc_name ="zorro7xx" , + .supported_mode =MODE_INITIATOR , .this_id =7 , .module =THIS_MODULE , };
Signature · 1 line
1.5.2.4
Quoted 10 lines · FUJITA Tomonori
The majority of llds don't set
supported_modeinscsi_host_templateso we get:luce:/sys/class/scsi_host/host0$ cat supported_mode unknownIt's harmless but it would be better to get:
luce:/sys/class/scsi_host/host0$ cat supported_mode Initiator
Given that this is the /vast/ majority, just set it once as a default value, and let target drivers change the mode if different.
Jeff
Quoted 7 lines · On Sat, 15 Sep 2007 23:07:10 -0400 Jeff Garzik <[email protected]> wrote:
Quoted 6 lines · FUJITA Tomonori
The majority of llds don't set
supported_modeinscsi_host_templateso we get:luce:/sys/class/scsi_host/host0$ cat supported_mode unknown
Quoted 7 lines
Quoted 4 lines
It's harmless but it would be better to get:
luce:/sys/class/scsi_host/host0$ cat supported_mode InitiatorGiven that this is the /vast/ majority, just set it once as a default value, and let target drivers change the mode if different.
I thought that it's a bit hacky but it should work.
From: FUJITA Tomonori <[email protected]>
Subject: [PATCH] set supported_mode to MODE_INITIATOR by default
This sets supported_mode to MODE_INITIATOR if a lld doesn't set supported_mode in scsi_host_template.
--- drivers/scsi/hosts.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
drivers/scsi/hosts.c +4 -0
@@ -342,6 +342,10 @@ struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *sht, int privsize) shost->unchecked_isa_dma = sht->unchecked_isa_dma; shost->use_clustering = sht->use_clustering; shost->ordered_tag = sht->ordered_tag; + +if (!sht->supported_mode) + sht->supported_mode =MODE_INITIATOR ; + shost->active_mode = sht->supported_mode;if (sht->max_host_blocked)
Signature · 1 line
1.5.2.4