scsi: NCR5380: Move bus reset to host reset
authorHannes Reinecke <hare@suse.de>
Fri, 25 Aug 2017 11:57:10 +0000 (13:57 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 21:21:11 +0000 (17:21 -0400)
The bus reset handler really is a host reset, so move it to
eh_bus_reset_handler.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/NCR5380.c
drivers/scsi/arm/cumana_1.c
drivers/scsi/arm/oak.c
drivers/scsi/atari_scsi.c
drivers/scsi/dmx3191d.c
drivers/scsi/g_NCR5380.c
drivers/scsi/mac_scsi.c
drivers/scsi/sun3_scsi.c

index acc33440bca0bfbc3e1c168ffb73ed952efe97d1..8a0812221d72fdb9488b33f5ff5bfe04bf137fcf 100644 (file)
@@ -2296,13 +2296,13 @@ out:
 
 
 /**
- * NCR5380_bus_reset - reset the SCSI bus
+ * NCR5380_host_reset - reset the SCSI host
  * @cmd: SCSI command undergoing EH
  *
  * Returns SUCCESS
  */
 
-static int NCR5380_bus_reset(struct scsi_cmnd *cmd)
+static int NCR5380_host_reset(struct scsi_cmnd *cmd)
 {
        struct Scsi_Host *instance = cmd->device->host;
        struct NCR5380_hostdata *hostdata = shost_priv(instance);
index a87b99c7fb9a7596810b3a7c4ecdddb4b3ff294f..ae1d809904fb7f63526bfd882443eb87fd5bb7e8 100644 (file)
@@ -216,7 +216,7 @@ static struct scsi_host_template cumanascsi_template = {
        .info                   = cumanascsi_info,
        .queuecommand           = cumanascsi_queue_command,
        .eh_abort_handler       = NCR5380_abort,
-       .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 6be6666534d4f662ff9e32cd8df1538d0c107515..05b7f755499b1dcad1c90cb353d9758299ac15f8 100644 (file)
@@ -105,7 +105,7 @@ static struct scsi_host_template oakscsi_template = {
        .info                   = oakscsi_info,
        .queuecommand           = oakscsi_queue_command,
        .eh_abort_handler       = NCR5380_abort,
-       .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 a75feebe6ad6252ad20a89adf7ea0f1b1581defa..89f5154c40b6ec1a61fb259ecd7f20c7441107c3 100644 (file)
@@ -671,7 +671,7 @@ static void atari_scsi_falcon_reg_write(unsigned int reg, u8 value)
 
 #include "NCR5380.c"
 
-static int atari_scsi_bus_reset(struct scsi_cmnd *cmd)
+static int atari_scsi_host_reset(struct scsi_cmnd *cmd)
 {
        int rv;
        unsigned long flags;
@@ -688,7 +688,7 @@ static int atari_scsi_bus_reset(struct scsi_cmnd *cmd)
                atari_dma_orig_addr = NULL;
        }
 
-       rv = NCR5380_bus_reset(cmd);
+       rv = NCR5380_host_reset(cmd);
 
        /* The 5380 raises its IRQ line while _RST is active but the ST DMA
         * "lock" has been released so this interrupt may end up handled by
@@ -711,7 +711,7 @@ static struct scsi_host_template atari_scsi_template = {
        .info                   = atari_scsi_info,
        .queuecommand           = atari_scsi_queue_command,
        .eh_abort_handler       = atari_scsi_abort,
-       .eh_bus_reset_handler   = atari_scsi_bus_reset,
+       .eh_host_reset_handler  = atari_scsi_host_reset,
        .this_id                = 7,
        .cmd_per_lun            = 2,
        .use_clustering         = DISABLE_CLUSTERING,
index 6af3394d051dcebee8394e01a5cebe657f044968..003c3d72623842a7ba4b8f2b71dbb5c15fd68475 100644 (file)
@@ -58,7 +58,7 @@ static struct scsi_host_template dmx3191d_driver_template = {
        .info                   = NCR5380_info,
        .queuecommand           = NCR5380_queue_command,
        .eh_abort_handler       = NCR5380_abort,
-       .eh_bus_reset_handler   = NCR5380_bus_reset,
+       .eh_host_reset_handler  = NCR5380_host_reset,
        .can_queue              = 32,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
index edf990b64714358c8c534f0d7739dc3fcd511b00..fc538181f8df16a2839835d442257a66875f6f82 100644 (file)
@@ -56,7 +56,7 @@
 #define NCR5380_intr                    generic_NCR5380_intr
 #define NCR5380_queue_command           generic_NCR5380_queue_command
 #define NCR5380_abort                   generic_NCR5380_abort
-#define NCR5380_bus_reset               generic_NCR5380_bus_reset
+#define NCR5380_host_reset              generic_NCR5380_host_reset
 #define NCR5380_info                    generic_NCR5380_info
 
 #define NCR5380_io_delay(x)             udelay(x)
@@ -695,7 +695,7 @@ static struct scsi_host_template driver_template = {
        .info                   = generic_NCR5380_info,
        .queuecommand           = generic_NCR5380_queue_command,
        .eh_abort_handler       = generic_NCR5380_abort,
-       .eh_bus_reset_handler   = generic_NCR5380_bus_reset,
+       .eh_host_reset_handler  = generic_NCR5380_host_reset,
        .can_queue              = 16,
        .this_id                = 7,
        .sg_tablesize           = SG_ALL,
index 196acc79714b9da9cffa92c52a1c2c188da59508..dd6057359d7c6e681544b9f7b2be5393b39c7f1a 100644 (file)
@@ -41,7 +41,7 @@
 #define NCR5380_intr                    macscsi_intr
 #define NCR5380_queue_command           macscsi_queue_command
 #define NCR5380_abort                   macscsi_abort
-#define NCR5380_bus_reset               macscsi_bus_reset
+#define NCR5380_host_reset              macscsi_host_reset
 #define NCR5380_info                    macscsi_info
 
 #include "NCR5380.h"
@@ -328,7 +328,7 @@ static struct scsi_host_template mac_scsi_template = {
        .info                   = macscsi_info,
        .queuecommand           = macscsi_queue_command,
        .eh_abort_handler       = macscsi_abort,
-       .eh_bus_reset_handler   = macscsi_bus_reset,
+       .eh_host_reset_handler  = macscsi_host_reset,
        .can_queue              = 16,
        .this_id                = 7,
        .sg_tablesize           = 1,
index e64b0c542f950aae912a4615f8578a73df31ce6e..9492638296c86183d01bae23e5e5cabbac6a2f10 100644 (file)
@@ -46,7 +46,7 @@
 #define NCR5380_write(reg, value)       out_8(hostdata->io + (reg), value)
 
 #define NCR5380_queue_command           sun3scsi_queue_command
-#define NCR5380_bus_reset               sun3scsi_bus_reset
+#define NCR5380_host_reset              sun3scsi_host_reset
 #define NCR5380_abort                   sun3scsi_abort
 #define NCR5380_info                    sun3scsi_info
 
@@ -495,7 +495,7 @@ static struct scsi_host_template sun3_scsi_template = {
        .info                   = sun3scsi_info,
        .queuecommand           = sun3scsi_queue_command,
        .eh_abort_handler       = sun3scsi_abort,
-       .eh_bus_reset_handler   = sun3scsi_bus_reset,
+       .eh_host_reset_handler  = sun3scsi_host_reset,
        .can_queue              = 16,
        .this_id                = 7,
        .sg_tablesize           = SG_NONE,