]> err.no Git - linux-2.6/commitdiff
[SCSI] Remove no-op implementations of SCSI EH hooks
authorJeff Garzik <jgarzik@pobox.com>
Sat, 28 May 2005 11:52:51 +0000 (07:52 -0400)
committerJeff Garzik <jgarzik@pobox.com>
Fri, 17 Jun 2005 17:04:45 +0000 (12:04 -0500)
Drivers need not implement a hook that returns FAILED, and does nothing
else, since the SCSI midlayer code will do that for us.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
40 files changed:
drivers/scsi/53c700.c
drivers/scsi/NCR5380.c
drivers/scsi/NCR5380.h
drivers/scsi/NCR53c406a.c
drivers/scsi/aacraid/linit.c
drivers/scsi/aha1542.c
drivers/scsi/aha1542.h
drivers/scsi/arm/cumana_1.c
drivers/scsi/arm/ecoscsi.c
drivers/scsi/arm/oak.c
drivers/scsi/dmx3191d.c
drivers/scsi/dtc.c
drivers/scsi/dtc.h
drivers/scsi/eata.c
drivers/scsi/fcal.c
drivers/scsi/fd_mcs.c
drivers/scsi/g_NCR5380.c
drivers/scsi/g_NCR5380.h
drivers/scsi/gdth.c
drivers/scsi/in2000.c
drivers/scsi/in2000.h
drivers/scsi/mac53c94.c
drivers/scsi/mac_scsi.c
drivers/scsi/mac_scsi.h
drivers/scsi/nsp32.c
drivers/scsi/pas16.c
drivers/scsi/pas16.h
drivers/scsi/pcmcia/nsp_cs.c
drivers/scsi/pcmcia/qlogic_stub.c
drivers/scsi/pluto.c
drivers/scsi/qlogicfas.c
drivers/scsi/qlogicfas408.c
drivers/scsi/qlogicfas408.h
drivers/scsi/seagate.c
drivers/scsi/seagate.h
drivers/scsi/sym53c416.c
drivers/scsi/sym53c416.h
drivers/scsi/t128.c
drivers/scsi/t128.h
drivers/scsi/u14-34f.c

index 4b1bb529f676dcbb158bbc05d43b90378ce9c313..8c64212e96082c447d2ed8f5cffb44ca32d7abfe 100644 (file)
@@ -170,7 +170,6 @@ MODULE_LICENSE("GPL");
 STATIC int NCR_700_queuecommand(struct scsi_cmnd *, void (*done)(struct scsi_cmnd *));
 STATIC int NCR_700_abort(struct scsi_cmnd * SCpnt);
 STATIC int NCR_700_bus_reset(struct scsi_cmnd * SCpnt);
-STATIC int NCR_700_dev_reset(struct scsi_cmnd * SCpnt);
 STATIC int NCR_700_host_reset(struct scsi_cmnd * SCpnt);
 STATIC void NCR_700_chip_setup(struct Scsi_Host *host);
 STATIC void NCR_700_chip_reset(struct Scsi_Host *host);
@@ -330,7 +329,6 @@ NCR_700_detect(struct scsi_host_template *tpnt,
        /* Fill in the missing routines from the host template */
        tpnt->queuecommand = NCR_700_queuecommand;
        tpnt->eh_abort_handler = NCR_700_abort;
-       tpnt->eh_device_reset_handler = NCR_700_dev_reset;
        tpnt->eh_bus_reset_handler = NCR_700_bus_reset;
        tpnt->eh_host_reset_handler = NCR_700_host_reset;
        tpnt->can_queue = NCR_700_COMMAND_SLOTS_PER_HOST;
@@ -1979,16 +1977,6 @@ NCR_700_bus_reset(struct scsi_cmnd * SCp)
        return SUCCESS;
 }
 
-STATIC int
-NCR_700_dev_reset(struct scsi_cmnd * SCp)
-{
-       printk(KERN_INFO "scsi%d (%d:%d) New error handler wants device reset\n\t",
-              SCp->device->host->host_no, SCp->device->id, SCp->device->lun);
-       scsi_print_command(SCp);
-       
-       return FAILED;
-}
-
 STATIC int
 NCR_700_host_reset(struct scsi_cmnd * SCp)
 {
index 770fa841e389e9e60981a918957a160d84f4a1b1..7ae19d4181bed6a1432bd515d105fc1149f8e3e2 100644 (file)
@@ -2833,31 +2833,3 @@ static int NCR5380_bus_reset(Scsi_Cmnd * cmd) {
        do_reset(cmd->device->host);
        return SUCCESS;
 }
-
-/* 
- * Function : int NCR5380_device_reset (Scsi_Cmnd *cmd)
- * 
- * Purpose : reset a SCSI device
- *
- * Returns : FAILED
- *
- * Locks: io_request_lock held by caller
- */
-
-static int NCR5380_device_reset(Scsi_Cmnd * cmd) {
-       return FAILED;
-}
-
-/* 
- * Function : int NCR5380_host_reset (Scsi_Cmnd *cmd)
- * 
- * Purpose : reset a SCSI device
- *
- * Returns : FAILED
- *
- * Locks: io_request_lock held by caller
- */
-
-static int NCR5380_host_reset(Scsi_Cmnd * cmd) {
-       return FAILED;
-}
index b5103f94d627aa8f8df5ab1cbaa0da4069c81a74..c3462e358d1cb512baed35b9748c2df69b15383d 100644 (file)
@@ -306,8 +306,6 @@ static void NCR5380_print(struct Scsi_Host *instance);
 #endif
 static int NCR5380_abort(Scsi_Cmnd * cmd);
 static int NCR5380_bus_reset(Scsi_Cmnd * cmd);
-static int NCR5380_host_reset(Scsi_Cmnd * cmd);
-static int NCR5380_device_reset(Scsi_Cmnd * cmd);
 static int NCR5380_queue_command(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *));
 static int NCR5380_proc_info(struct Scsi_Host *instance, char *buffer, char **start,
 off_t offset, int length, int inout);
index c685d546f8381e68a8e99a348e5d054caf6c472c..7c025b6cdd7ccf167bf578198652dbe218fdb254 100644 (file)
@@ -722,12 +722,6 @@ static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
        return 0;
 }
 
-static int NCR53c406a_abort(Scsi_Cmnd * SCpnt)
-{
-       DEB(printk("NCR53c406a_abort called\n"));
-       return FAILED;          /* Don't know how to abort */
-}
-
 static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt)
 {
        DEB(printk("NCR53c406a_reset called\n"));
@@ -741,16 +735,6 @@ static int NCR53c406a_host_reset(Scsi_Cmnd * SCpnt)
        return SUCCESS;
 }
 
-static int NCR53c406a_device_reset(Scsi_Cmnd * SCpnt)
-{
-       return FAILED;
-}
-
-static int NCR53c406a_bus_reset(Scsi_Cmnd * SCpnt)
-{
-       return FAILED;
-}
-
 static int NCR53c406a_biosparm(struct scsi_device *disk,
                                struct block_device *dev,
                               sector_t capacity, int *info_array)
@@ -1075,9 +1059,6 @@ static Scsi_Host_Template driver_template =
      .release                  = NCR53c406a_release,
      .info                     = NCR53c406a_info               /* info */,             
      .queuecommand             = NCR53c406a_queue      /* queuecommand */,     
-     .eh_abort_handler         = NCR53c406a_abort      /* abort */,            
-     .eh_bus_reset_handler      = NCR53c406a_bus_reset /* reset */,            
-     .eh_device_reset_handler   = NCR53c406a_device_reset      /* reset */,            
      .eh_host_reset_handler     = NCR53c406a_host_reset        /* reset */,            
      .bios_param               = NCR53c406a_biosparm   /* biosparm */,         
      .can_queue                = 1                     /* can_queue */,        
index c2be8380dad5f6ba10c8187f26e52279c1dabba5..b48843402cf423d01581764fe5219055db0f0af0 100644 (file)
@@ -366,14 +366,6 @@ static int aac_ioctl(struct scsi_device *sdev, int cmd, void __user * arg)
        return aac_do_ioctl(dev, cmd, arg);
 }
 
-/*
- * XXX: does aac really need no error handling??
- */
-static int aac_eh_abort(struct scsi_cmnd *cmd)
-{
-       return FAILED;
-}
-
 /*
  *     aac_eh_reset    - Reset command handling
  *     @scsi_cmd:      SCSI command block causing the reset
@@ -683,7 +675,6 @@ static struct scsi_host_template aac_driver_template = {
        .bios_param                     = aac_biosparm, 
        .shost_attrs                    = aac_attrs,
        .slave_configure                = aac_slave_configure,
-       .eh_abort_handler               = aac_eh_abort,
        .eh_host_reset_handler          = aac_eh_reset,
        .can_queue                      = AAC_NUM_IO_FIB,       
        .this_id                        = 16,
index e9920a009593c8d55a75732f38179b29c7f80c84..eb8bc6822cc1cb220cf2adac228d7d5f0da7447b 100644 (file)
@@ -1348,20 +1348,6 @@ static int aha1542_restart(struct Scsi_Host *shost)
        return 0;
 }
 
-static int aha1542_abort(Scsi_Cmnd * SCpnt)
-{
-
-       /*
-        * The abort command does not leave the device in a clean state where
-        *  it is available to be used again.  Until this gets worked out, we
-        * will leave it commented out.  
-        */
-
-       printk(KERN_ERR "aha1542.c: Unable to abort command for target %d\n",
-              SCpnt->device->id);
-       return FAILED;
-}
-
 /*
  * This is a device reset.  This is handled by sending a special command
  * to the device.
@@ -1817,7 +1803,6 @@ static Scsi_Host_Template driver_template = {
        .detect                 = aha1542_detect,
        .release                = aha1542_release,
        .queuecommand           = aha1542_queuecommand,
-       .eh_abort_handler       = aha1542_abort,
        .eh_device_reset_handler= aha1542_dev_reset,
        .eh_bus_reset_handler   = aha1542_bus_reset,
        .eh_host_reset_handler  = aha1542_host_reset,
index c402351dc79a8ec7b6ccac9e8c645df15b8fdf1f..3821ee17f47114fe7493fb874b6d534d055a8a56 100644 (file)
@@ -133,7 +133,6 @@ struct ccb {                        /* Command Control Block 5.3 */
 
 static int aha1542_detect(Scsi_Host_Template *);
 static int aha1542_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
-static int aha1542_abort(Scsi_Cmnd * SCpnt);
 static int aha1542_bus_reset(Scsi_Cmnd * SCpnt);
 static int aha1542_dev_reset(Scsi_Cmnd * SCpnt);
 static int aha1542_host_reset(Scsi_Cmnd * SCpnt);
index 27271bfc01d70a63ef5d288ae65c34bbf45b27b9..26498553a7cc52f2b216e1fa7176686aa756f5c1 100644 (file)
@@ -244,9 +244,7 @@ static Scsi_Host_Template cumanascsi_template = {
        .info                   = cumanascsi_info,
        .queuecommand           = cumanascsi_queue_command,
        .eh_abort_handler       = NCR5380_abort,
-       .eh_device_reset_handler= NCR5380_device_reset,
        .eh_bus_reset_handler   = NCR5380_bus_reset,
-       .eh_host_reset_handler  = NCR5380_host_reset,
        .can_queue              = 16,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
index 303648a847090d080ccea83e8b6db5b4b329fd80..f8a7fdd3c46523b5b69081b5844331f3943aa4b0 100644 (file)
@@ -162,9 +162,7 @@ static Scsi_Host_Template ecoscsi_template =  {
        .info           = ecoscsi_info,
        .queuecommand   = ecoscsi_queue_command,
        .eh_abort_handler       = NCR5380_abort,
-       .eh_device_reset_handler= NCR5380_device_reset,
        .eh_bus_reset_handler   = NCR5380_bus_reset,
-       .eh_host_reset_handler  = NCR5380_host_reset,
        .can_queue      = 16,
        .this_id        = 7,
        .sg_tablesize   = SG_ALL,
index ff2554f4cb802651189ca764c788c218e606d1c0..de24bb991f1d74ff1a50f34c2a6c8dd2a99de11d 100644 (file)
@@ -118,9 +118,7 @@ static Scsi_Host_Template oakscsi_template = {
        .info                   = oakscsi_info,
        .queuecommand           = oakscsi_queue_command,
        .eh_abort_handler       = NCR5380_abort,
-       .eh_device_reset_handler= NCR5380_device_reset,
        .eh_bus_reset_handler   = NCR5380_bus_reset,
-       .eh_host_reset_handler  = NCR5380_host_reset,
        .can_queue              = 16,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
index 1d2242403db8f7f8531e7b08730b497e82003963..7905b904e01d8dae9351b4600bda767ad400a630 100644 (file)
@@ -61,8 +61,6 @@ static struct scsi_host_template dmx3191d_driver_template = {
        .queuecommand           = NCR5380_queue_command,
        .eh_abort_handler       = NCR5380_abort,
        .eh_bus_reset_handler   = NCR5380_bus_reset,
-       .eh_device_reset_handler= NCR5380_device_reset,
-       .eh_host_reset_handler  = NCR5380_host_reset,
        .can_queue              = 32,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
index da1aaa413fed3ab8011beb81f1a75db959945c48..ab9de39bb50b3fa11535b7e70e0bc2fec466536d 100644 (file)
@@ -482,8 +482,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand                   = dtc_queue_command,
        .eh_abort_handler               = dtc_abort,
        .eh_bus_reset_handler           = dtc_bus_reset,
-       .eh_device_reset_handler        = dtc_device_reset,
-       .eh_host_reset_handler          = dtc_host_reset,
        .bios_param                     = dtc_biosparam,
        .can_queue                      = CAN_QUEUE,
        .this_id                        = 7,
index c4bcdbf338a26e02a8fbe865619ed66dc3c1a414..ed73629eb2f9d6d6705b2a20e1608726f205fd1f 100644 (file)
@@ -34,8 +34,6 @@ static int dtc_biosparam(struct scsi_device *, struct block_device *,
 static int dtc_detect(Scsi_Host_Template *);
 static int dtc_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
 static int dtc_bus_reset(Scsi_Cmnd *);
-static int dtc_device_reset(Scsi_Cmnd *);
-static int dtc_host_reset(Scsi_Cmnd *);
 
 #ifndef CMD_PER_LUN
 #define CMD_PER_LUN 2
@@ -86,8 +84,6 @@ static int dtc_host_reset(Scsi_Cmnd *);
 #define NCR5380_queue_command          dtc_queue_command
 #define NCR5380_abort                  dtc_abort
 #define NCR5380_bus_reset              dtc_bus_reset
-#define NCR5380_device_reset           dtc_device_reset
-#define NCR5380_host_reset             dtc_host_reset
 #define NCR5380_proc_info              dtc_proc_info 
 
 /* 15 12 11 10
index 81d16cfbe69e29143e58ba0dbc118dbf389d6d14..8394529ba552f0e6ba5c831b730b78393250f73d 100644 (file)
@@ -518,8 +518,6 @@ static struct scsi_host_template driver_template = {
        .release = eata2x_release,
        .queuecommand = eata2x_queuecommand,
        .eh_abort_handler = eata2x_eh_abort,
-       .eh_device_reset_handler = NULL,
-       .eh_bus_reset_handler = NULL,
        .eh_host_reset_handler = eata2x_eh_host_reset,
        .bios_param = eata2x_bios_param,
        .slave_configure = eata2x_slave_configure,
index 0dad89d4cb3ea77939feb5af3b27ff577539eace..a6f120dcdfc37ae8e5c452d45d6065ff40b9f01d 100644 (file)
@@ -311,7 +311,6 @@ static Scsi_Host_Template driver_template = {
        .use_clustering         = ENABLE_CLUSTERING,
        .eh_abort_handler       = fcp_scsi_abort,
        .eh_device_reset_handler = fcp_scsi_dev_reset,
-       .eh_bus_reset_handler   = fcp_scsi_bus_reset,
        .eh_host_reset_handler  = fcp_scsi_host_reset,
 };
 #include "scsi_module.c"
index 770930e2aec336e2f0f2268290dfcd58e1673bd2..4a358aec2e597065e6d79dddddc478a275af41a8 100644 (file)
@@ -1241,16 +1241,6 @@ static int fd_mcs_abort(Scsi_Cmnd * SCpnt)
        return SUCCESS;
 }
 
-static int fd_mcs_host_reset(Scsi_Cmnd * SCpnt)
-{
-       return FAILED;
-}
-
-static int fd_mcs_device_reset(Scsi_Cmnd * SCpnt) 
-{
-       return FAILED;
-}
-
 static int fd_mcs_bus_reset(Scsi_Cmnd * SCpnt) {
        struct Scsi_Host *shpnt = SCpnt->device->host;
 
@@ -1357,8 +1347,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand                   = fd_mcs_queue, 
        .eh_abort_handler               = fd_mcs_abort,
        .eh_bus_reset_handler           = fd_mcs_bus_reset,
-       .eh_host_reset_handler          = fd_mcs_host_reset,
-       .eh_device_reset_handler        = fd_mcs_device_reset,
        .bios_param                     = fd_mcs_biosparam,
        .can_queue                      = 1,
        .this_id                        = 7,
index ca9d5bd26ca31bf87449b49f73c083d39daf4af5..a3aa729b9d3c4a6eb553bec2124fe2614ad8d064 100644 (file)
@@ -908,8 +908,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand           = generic_NCR5380_queue_command,
        .eh_abort_handler       = generic_NCR5380_abort,
        .eh_bus_reset_handler   = generic_NCR5380_bus_reset,
-       .eh_device_reset_handler = generic_NCR5380_device_reset,
-       .eh_host_reset_handler  = generic_NCR5380_host_reset,
        .bios_param             = NCR5380_BIOSPARAM,
        .can_queue              = CAN_QUEUE,
         .this_id               = 7,
index 0c04cefb2a88317aded8f106fcdfaefa6c64d654..c8adc5a948848381d80931daa396dccc793f4f21 100644 (file)
@@ -49,8 +49,6 @@ static int generic_NCR5380_detect(Scsi_Host_Template *);
 static int generic_NCR5380_release_resources(struct Scsi_Host *);
 static int generic_NCR5380_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
 static int generic_NCR5380_bus_reset(Scsi_Cmnd *);
-static int generic_NCR5380_host_reset(Scsi_Cmnd *);
-static int generic_NCR5380_device_reset(Scsi_Cmnd *);
 static const char* generic_NCR5380_info(struct Scsi_Host *);
 
 #ifndef CMD_PER_LUN
@@ -114,8 +112,6 @@ static const char* generic_NCR5380_info(struct Scsi_Host *);
 #define NCR5380_queue_command generic_NCR5380_queue_command
 #define NCR5380_abort generic_NCR5380_abort
 #define NCR5380_bus_reset generic_NCR5380_bus_reset
-#define NCR5380_device_reset generic_NCR5380_device_reset
-#define NCR5380_host_reset generic_NCR5380_host_reset
 #define NCR5380_pread generic_NCR5380_pread
 #define NCR5380_pwrite generic_NCR5380_pwrite
 #define NCR5380_proc_info notyet_generic_proc_info
index a9eaab9fbd5ea7761e53d436dee64654a1402236..4552cccd283484e4b863d4c1f9a77e1c052f1647 100644 (file)
@@ -4703,19 +4703,6 @@ static const char *gdth_info(struct Scsi_Host *shp)
     return ((const char *)ha->binfo.type_string);
 }
 
-/* new error handling */
-static int gdth_eh_abort(Scsi_Cmnd *scp)
-{
-    TRACE2(("gdth_eh_abort()\n"));
-    return FAILED;
-}
-
-static int gdth_eh_device_reset(Scsi_Cmnd *scp)
-{
-    TRACE2(("gdth_eh_device_reset()\n"));
-    return FAILED;
-}
-
 static int gdth_eh_bus_reset(Scsi_Cmnd *scp)
 {
     int i, hanum;
@@ -4770,13 +4757,6 @@ static int gdth_eh_bus_reset(Scsi_Cmnd *scp)
     return SUCCESS;
 }
 
-static int gdth_eh_host_reset(Scsi_Cmnd *scp)
-{
-    TRACE2(("gdth_eh_host_reset()\n"));
-    return FAILED;
-}
-
-
 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
 static int gdth_bios_param(struct scsi_device *sdev,struct block_device *bdev,sector_t cap,int *ip)
 #else
@@ -5713,10 +5693,7 @@ static Scsi_Host_Template driver_template = {
         .release                = gdth_release,
         .info                   = gdth_info, 
         .queuecommand           = gdth_queuecommand,
-        .eh_abort_handler       = gdth_eh_abort, 
-        .eh_device_reset_handler = gdth_eh_device_reset,
         .eh_bus_reset_handler   = gdth_eh_bus_reset,
-        .eh_host_reset_handler  = gdth_eh_host_reset,
         .bios_param             = gdth_bios_param,
         .can_queue              = GDTH_MAXCMDS,
         .this_id                = -1,
index 0bb0369efb2dafe325245f61fd5d2e31c72e029d..e1fe6f13b8291cb15b8acba6832c036d5892b836 100644 (file)
@@ -1671,17 +1671,6 @@ static int in2000_bus_reset(Scsi_Cmnd * cmd)
        return SUCCESS;
 }
 
-static int in2000_host_reset(Scsi_Cmnd * cmd)
-{
-       return FAILED;
-}
-
-static int in2000_device_reset(Scsi_Cmnd * cmd)
-{
-       return FAILED;
-}
-
-
 static int in2000_abort(Scsi_Cmnd * cmd)
 {
        struct Scsi_Host *instance;
@@ -2311,8 +2300,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand                   = in2000_queuecommand,
        .eh_abort_handler               = in2000_abort,
        .eh_bus_reset_handler           = in2000_bus_reset,
-       .eh_device_reset_handler        = in2000_device_reset,
-       .eh_host_reset_handler  = in2000_host_reset, 
        .bios_param                     = in2000_biosparam, 
        .can_queue                      = IN2000_CAN_Q,
        .this_id                        = IN2000_HOST_ID,
index 019e45df30163c1ddfc77f927da7bf7d4d119e4c..a240b52554d81dc3c9020559d4b9e6909fad5900 100644 (file)
@@ -401,9 +401,7 @@ static int in2000_abort(Scsi_Cmnd *);
 static void in2000_setup(char *, int *) in2000__INIT;
 static int in2000_biosparam(struct scsi_device *, struct block_device *,
                sector_t, int *);
-static int in2000_host_reset(Scsi_Cmnd *);
 static int in2000_bus_reset(Scsi_Cmnd *);
-static int in2000_device_reset(Scsi_Cmnd *);
 
 
 #define IN2000_CAN_Q    16
index 3ef2a1443996d0700da7e1389e60b44ccf44a1b0..9a792a5494b562ac86eaa1128e6ed217c5c79b37 100644 (file)
@@ -98,11 +98,6 @@ static int mac53c94_queue(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *
        return 0;
 }
 
-static int mac53c94_abort(struct scsi_cmnd *cmd)
-{
-       return FAILED;
-}
-
 static int mac53c94_host_reset(struct scsi_cmnd *cmd)
 {
        struct fsc_state *state = (struct fsc_state *) cmd->device->host->hostdata;
@@ -416,7 +411,6 @@ static struct scsi_host_template mac53c94_template = {
        .proc_name      = "53c94",
        .name           = "53C94",
        .queuecommand   = mac53c94_queue,
-       .eh_abort_handler = mac53c94_abort,
        .eh_host_reset_handler = mac53c94_host_reset,
        .can_queue      = 1,
        .this_id        = 7,
index d5fd17ef74dbb3bdc293c0721fd4e07c75dac79e..92d2c8379abf529989afd58f10976aedb901d325 100644 (file)
@@ -591,8 +591,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand                   = macscsi_queue_command,
        .eh_abort_handler               = macscsi_abort,
        .eh_bus_reset_handler           = macscsi_bus_reset,
-       .eh_device_reset_handler        = macscsi_device_reset,
-       .eh_host_reset_handler          = macscsi_host_reset,
        .can_queue                      = CAN_QUEUE,
        .this_id                        = 7,
        .sg_tablesize                   = SG_ALL,
index 23ab2c18a01644f90d1c69addf872ec2b81d5675..d26e331c6c12e3d6e37790e92ed124a74b34309d 100644 (file)
@@ -72,8 +72,6 @@
 #define NCR5380_queue_command macscsi_queue_command
 #define NCR5380_abort macscsi_abort
 #define NCR5380_bus_reset macscsi_bus_reset
-#define NCR5380_device_reset macscsi_device_reset
-#define NCR5380_host_reset macscsi_host_reset
 #define NCR5380_proc_info macscsi_proc_info
 
 #define BOARD_NORMAL   0
index d28c0d99c3442c79808887672c1f78d26b7bfa94..029cef4ad69451ad34bceda848b1ce24fe60795f 100644 (file)
@@ -294,7 +294,6 @@ static struct scsi_host_template nsp32_template = {
        .this_id                        = NSP32_HOST_SCSIID,
        .use_clustering                 = DISABLE_CLUSTERING,
        .eh_abort_handler               = nsp32_eh_abort,
-/*     .eh_device_reset_handler        = NULL, */
        .eh_bus_reset_handler           = nsp32_eh_bus_reset,
        .eh_host_reset_handler          = nsp32_eh_host_reset,
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,5,74))
index 7976947c03225670d6c511b315c43b6eb1e401fd..363e0ebd4a390753de9de4e599c6d26c19dda3b4 100644 (file)
@@ -621,8 +621,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand   = pas16_queue_command,
        .eh_abort_handler = pas16_abort,
        .eh_bus_reset_handler = pas16_bus_reset,
-       .eh_device_reset_handler = pas16_device_reset,
-       .eh_host_reset_handler = pas16_host_reset,
        .bios_param     = pas16_biosparam, 
        .can_queue      = CAN_QUEUE,
        .this_id        = 7,
index 58d4d67aed241bd954bf49971b84c1f938b18cbb..65ce1cc40d9a362723fdedf139763ee4e0b9a720 100644 (file)
@@ -120,8 +120,6 @@ static int pas16_biosparam(struct scsi_device *, struct block_device *,
 static int pas16_detect(Scsi_Host_Template *);
 static int pas16_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
 static int pas16_bus_reset(Scsi_Cmnd *);
-static int pas16_host_reset(Scsi_Cmnd *);
-static int pas16_device_reset(Scsi_Cmnd *);
 
 #ifndef CMD_PER_LUN
 #define CMD_PER_LUN 2
@@ -164,9 +162,7 @@ static int pas16_device_reset(Scsi_Cmnd *);
 #define do_NCR5380_intr do_pas16_intr
 #define NCR5380_queue_command pas16_queue_command
 #define NCR5380_abort pas16_abort
-#define NCR5380_device_reset pas16_device_reset
 #define NCR5380_bus_reset pas16_bus_reset
-#define NCR5380_host_reset pas16_host_reset
 #define NCR5380_proc_info pas16_proc_info
 
 /* 15 14 12 10 7 5 3 
index 496c412c88546a854c9d13223c5d7123dc57a38b..3dddb323e7186a1224a6f3d0b8a6715ffeeced45 100644 (file)
@@ -92,9 +92,7 @@ static Scsi_Host_Template nsp_driver_template = {
 #endif
        .info                    = nsp_info,
        .queuecommand            = nsp_queuecommand,
-/*     .eh_strategy_handler     = nsp_eh_strategy,*/
 /*     .eh_abort_handler        = nsp_eh_abort,*/
-/*     .eh_device_reset_handler = nsp_eh_device_reset,*/
        .eh_bus_reset_handler    = nsp_eh_bus_reset,
        .eh_host_reset_handler   = nsp_eh_host_reset,
        .can_queue               = 1,
@@ -1536,11 +1534,6 @@ nsp_proc_info(
 /* error handler                                                 */
 /*---------------------------------------------------------------*/
 
-/*static int nsp_eh_strategy(struct Scsi_Host *Shost)
-{
-       return FAILED;
-}*/
-
 /*
 static int nsp_eh_abort(Scsi_Cmnd *SCpnt)
 {
@@ -1549,14 +1542,6 @@ static int nsp_eh_abort(Scsi_Cmnd *SCpnt)
        return nsp_eh_bus_reset(SCpnt);
 }*/
 
-/*
-static int nsp_eh_device_reset(Scsi_Cmnd *SCpnt)
-{
-       nsp_dbg(NSP_DEBUG_BUSRESET, "%s: SCpnt=0x%p", SCpnt);
-
-       return FAILED;
-}*/
-
 static int nsp_bus_reset(nsp_hw_data *data)
 {
        unsigned int base = data->BaseAddress;
index 4766bcd6369265b125eca53cef412afae50d1667..a0175f5d11cd3e2430fada5124a42dc59abd58f6 100644 (file)
@@ -81,8 +81,6 @@ static Scsi_Host_Template qlogicfas_driver_template = {
        .queuecommand           = qlogicfas408_queuecommand,
        .eh_abort_handler       = qlogicfas408_abort,
        .eh_bus_reset_handler   = qlogicfas408_bus_reset,
-       .eh_device_reset_handler= qlogicfas408_device_reset,
-       .eh_host_reset_handler  = qlogicfas408_host_reset,
        .bios_param             = qlogicfas408_biosparam,
        .can_queue              = 1,
        .this_id                = -1,
index c01b7191fcf59cabfbd6f0b56238ef81665d8f25..623082d3a83f5369d8184be262d9eb1c0404459d 100644 (file)
@@ -354,7 +354,6 @@ static Scsi_Host_Template driver_template = {
        .use_clustering         = ENABLE_CLUSTERING,
        .eh_abort_handler       = fcp_scsi_abort,
        .eh_device_reset_handler = fcp_scsi_dev_reset,
-       .eh_bus_reset_handler   = fcp_scsi_bus_reset,
        .eh_host_reset_handler  = fcp_scsi_host_reset,
 };
 
index a1adb38f69bb7eae5ac34bfe9e80bebc0be42cf2..55e698b651d694364c6f99ed9d109da5ba47ab27 100644 (file)
@@ -191,8 +191,6 @@ static Scsi_Host_Template qlogicfas_driver_template = {
        .queuecommand           = qlogicfas408_queuecommand,
        .eh_abort_handler       = qlogicfas408_abort,
        .eh_bus_reset_handler   = qlogicfas408_bus_reset,
-       .eh_device_reset_handler= qlogicfas408_device_reset,
-       .eh_host_reset_handler  = qlogicfas408_host_reset,
        .bios_param             = qlogicfas408_biosparam,
        .can_queue              = 1,
        .this_id                = -1,
index 5b6ce0a88f085651ef5cb104442dfbee8dbf992b..575f8a8fcf34a4540816aa152d4a298506c2685a 100644 (file)
@@ -516,24 +516,6 @@ int qlogicfas408_bus_reset(Scsi_Cmnd * cmd)
        return SUCCESS;
 }
 
-/* 
- *     Reset SCSI host controller
- */
-
-int qlogicfas408_host_reset(Scsi_Cmnd * cmd)
-{
-       return FAILED;
-}
-
-/* 
- *     Reset SCSI device
- */
-
-int qlogicfas408_device_reset(Scsi_Cmnd * cmd)
-{
-       return FAILED;
-}
-
 /*
  *     Return info string
  */
@@ -626,8 +608,6 @@ EXPORT_SYMBOL(qlogicfas408_info);
 EXPORT_SYMBOL(qlogicfas408_queuecommand);
 EXPORT_SYMBOL(qlogicfas408_abort);
 EXPORT_SYMBOL(qlogicfas408_bus_reset);
-EXPORT_SYMBOL(qlogicfas408_device_reset);
-EXPORT_SYMBOL(qlogicfas408_host_reset);
 EXPORT_SYMBOL(qlogicfas408_biosparam);
 EXPORT_SYMBOL(qlogicfas408_ihandl);
 EXPORT_SYMBOL(qlogicfas408_get_chip_type);
index f01cbd66c224e8c136f8661339acf463123b0507..4b3df200366042c2b1a76ab9d7f747e53dedbefa 100644 (file)
@@ -109,8 +109,6 @@ int qlogicfas408_biosparam(struct scsi_device * disk,
                        sector_t capacity, int ip[]);
 int qlogicfas408_abort(Scsi_Cmnd * cmd);
 int qlogicfas408_bus_reset(Scsi_Cmnd * cmd);
-int qlogicfas408_host_reset(Scsi_Cmnd * cmd);
-int qlogicfas408_device_reset(Scsi_Cmnd * cmd);
 const char *qlogicfas408_info(struct Scsi_Host *host);
 int qlogicfas408_get_chip_type(int qbase, int int_type);
 void qlogicfas408_setup(int qbase, int id, int int_type);
index 4c95abb540571dc301ee3c1385f90c0f15b417ee..ae9fdb52847b94d7fb51e1695b3a98648abac219 100644 (file)
@@ -1640,16 +1640,6 @@ static int seagate_st0x_bus_reset(Scsi_Cmnd * SCpnt)
        return SUCCESS;
 }
 
-static int seagate_st0x_host_reset(Scsi_Cmnd *SCpnt)
-{
-       return FAILED;
-}
-
-static int seagate_st0x_device_reset(Scsi_Cmnd *SCpnt)
-{
-       return FAILED;
-}
-
 static int seagate_st0x_release(struct Scsi_Host *shost)
 {
        if (shost->irq)
@@ -1665,8 +1655,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand           = seagate_st0x_queue_command,
        .eh_abort_handler       = seagate_st0x_abort,
        .eh_bus_reset_handler   = seagate_st0x_bus_reset,
-       .eh_host_reset_handler  = seagate_st0x_host_reset,
-       .eh_device_reset_handler = seagate_st0x_device_reset,
        .can_queue              = 1,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
index e49e8ecfb54dce81b040006fb9263627e7168dcd..8889ff1a6b20c861d09ef099d76df854728ac476 100644 (file)
@@ -15,7 +15,5 @@ static int seagate_st0x_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
 static int seagate_st0x_abort(Scsi_Cmnd *);
 static const char *seagate_st0x_info(struct Scsi_Host *);
 static int seagate_st0x_bus_reset(Scsi_Cmnd *);
-static int seagate_st0x_device_reset(Scsi_Cmnd *);
-static int seagate_st0x_host_reset(Scsi_Cmnd *);
 
 #endif /* _SEAGATE_H */
index ebfddd40ce67322840d8e115bbe773617126de2a..ca9a04cf4d3f055742a82cab85bfd94f5f3683f5 100644 (file)
@@ -785,21 +785,6 @@ int sym53c416_queuecommand(Scsi_Cmnd *SCpnt, void (*done)(Scsi_Cmnd *))
        return 0;
 }
 
-static int sym53c416_abort(Scsi_Cmnd *SCpnt)
-{
-       return FAILED;
-}
-
-static int sym53c416_bus_reset(Scsi_Cmnd *SCpnt)
-{
-       return FAILED;
-}
-
-static int sym53c416_device_reset(Scsi_Cmnd *SCpnt)
-{
-       return FAILED;
-}
-
 static int sym53c416_host_reset(Scsi_Cmnd *SCpnt)
 {
        int base;
@@ -865,10 +850,7 @@ static Scsi_Host_Template driver_template = {
        .detect =               sym53c416_detect,
        .info =                 sym53c416_info, 
        .queuecommand =         sym53c416_queuecommand,
-       .eh_abort_handler =     sym53c416_abort,
        .eh_host_reset_handler =sym53c416_host_reset,
-       .eh_bus_reset_handler = sym53c416_bus_reset,
-       .eh_device_reset_handler =sym53c416_device_reset,
        .release =              sym53c416_release,
        .bios_param =           sym53c416_bios_param,
        .can_queue =            1,
index 3c0e3f8301f1a7060640838ca38213bf030ebf70..fd6b120d38c4224e16c13b09e32d8084ed198fad 100644 (file)
@@ -26,10 +26,7 @@ static int sym53c416_detect(Scsi_Host_Template *);
 static const char *sym53c416_info(struct Scsi_Host *);
 static int sym53c416_release(struct Scsi_Host *);
 static int sym53c416_queuecommand(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
-static int sym53c416_abort(Scsi_Cmnd *);
 static int sym53c416_host_reset(Scsi_Cmnd *);
-static int sym53c416_bus_reset(Scsi_Cmnd *);
-static int sym53c416_device_reset(Scsi_Cmnd *);
 static int sym53c416_bios_param(struct scsi_device *, struct block_device *,
                sector_t, int *);
 static void sym53c416_setup(char *str, int *ints);
index 6dc2897672a127822954853dfb32a792ce7a039f..f4b780e35cb66b8299bcb7bf37951012123ff5e3 100644 (file)
@@ -437,8 +437,6 @@ static Scsi_Host_Template driver_template = {
        .queuecommand   = t128_queue_command,
        .eh_abort_handler = t128_abort,
        .eh_bus_reset_handler    = t128_bus_reset,
-       .eh_host_reset_handler   = t128_host_reset,
-       .eh_device_reset_handler = t128_device_reset,
        .bios_param     = t128_biosparam,
        .can_queue      = CAN_QUEUE,
         .this_id        = 7,
index 161ba53d982ba21cdd7d7b3dd1c4a54b5c13beee..9ad1d68827a70ec10a17ee744d6b30acf663aaa8 100644 (file)
@@ -96,9 +96,7 @@ static int t128_biosparam(struct scsi_device *, struct block_device *,
                          sector_t, int*);
 static int t128_detect(Scsi_Host_Template *);
 static int t128_queue_command(Scsi_Cmnd *, void (*done)(Scsi_Cmnd *));
-static int t128_host_reset(Scsi_Cmnd *);
 static int t128_bus_reset(Scsi_Cmnd *);
-static int t128_device_reset(Scsi_Cmnd *);
 
 #ifndef CMD_PER_LUN
 #define CMD_PER_LUN 2
@@ -140,8 +138,6 @@ static int t128_device_reset(Scsi_Cmnd *);
 #define do_NCR5380_intr do_t128_intr
 #define NCR5380_queue_command t128_queue_command
 #define NCR5380_abort t128_abort
-#define NCR5380_host_reset t128_host_reset
-#define NCR5380_device_reset t128_device_reset
 #define NCR5380_bus_reset t128_bus_reset
 #define NCR5380_proc_info t128_proc_info
 
index dca215411f683ce7b0aafaa68d548b626904e62e..a6a441937acba3a58d895557ad575a919538852d 100644 (file)
@@ -446,8 +446,6 @@ static struct scsi_host_template driver_template = {
                 .release                 = u14_34f_release,
                 .queuecommand            = u14_34f_queuecommand,
                 .eh_abort_handler        = u14_34f_eh_abort,
-                .eh_device_reset_handler = NULL,
-                .eh_bus_reset_handler    = NULL,
                 .eh_host_reset_handler   = u14_34f_eh_host_reset,
                 .bios_param              = u14_34f_bios_param,
                 .slave_configure         = u14_34f_slave_configure,