Commit ecb8a7d0 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds

[PATCH] M68k wd33c93_{abort,host_reset}()

Use new wd33c93_{abort,host_reset}() routines introduced in 2.5.67 in the m68k
wd33c93-based SCSI host adapter drivers:
  - Amiga A2091 SCSI
  - Amiga A3000 SCSI
  - Amiga GVP Series II SCSI
  - MVME147 SCSI

These drivers still have to implement their own adapter-specific bus_reset()
routines!
parent 8c3b1bca
...@@ -233,6 +233,13 @@ int __init a2091_detect(Scsi_Host_Template *tpnt) ...@@ -233,6 +233,13 @@ int __init a2091_detect(Scsi_Host_Template *tpnt)
return num_a2091; return num_a2091;
} }
static int a2091_bus_reset(Scsi_Cmnd *cmd)
{
/* FIXME perform bus-specific reset */
wd33c93_host_reset(cmd);
return SUCCESS;
}
#define HOSTS_C #define HOSTS_C
static Scsi_Host_Template driver_template = { static Scsi_Host_Template driver_template = {
...@@ -241,8 +248,9 @@ static Scsi_Host_Template driver_template = { ...@@ -241,8 +248,9 @@ static Scsi_Host_Template driver_template = {
.detect = a2091_detect, .detect = a2091_detect,
.release = a2091_release, .release = a2091_release,
.queuecommand = wd33c93_queuecommand, .queuecommand = wd33c93_queuecommand,
.abort = wd33c93_abort, .eh_abort_handler = wd33c93_abort,
.reset = wd33c93_reset, .eh_bus_reset_handler = a2091_bus_reset,
.eh_host_reset_handler = wd33c93_host_reset,
.can_queue = CAN_QUEUE, .can_queue = CAN_QUEUE,
.this_id = 7, .this_id = 7,
.sg_tablesize = SG_ALL, .sg_tablesize = SG_ALL,
......
...@@ -206,6 +206,13 @@ int __init a3000_detect(Scsi_Host_Template *tpnt) ...@@ -206,6 +206,13 @@ int __init a3000_detect(Scsi_Host_Template *tpnt)
return 0; return 0;
} }
static int a3000_bus_reset(Scsi_Cmnd *cmd)
{
/* FIXME perform bus-specific reset */
wd33c93_host_reset(cmd);
return SUCCESS;
}
#define HOSTS_C #define HOSTS_C
static Scsi_Host_Template driver_template = { static Scsi_Host_Template driver_template = {
...@@ -214,8 +221,9 @@ static Scsi_Host_Template driver_template = { ...@@ -214,8 +221,9 @@ static Scsi_Host_Template driver_template = {
.detect = a3000_detect, .detect = a3000_detect,
.release = a3000_release, .release = a3000_release,
.queuecommand = wd33c93_queuecommand, .queuecommand = wd33c93_queuecommand,
.abort = wd33c93_abort, .eh_abort_handler = wd33c93_abort,
.reset = wd33c93_reset, .eh_bus_reset_handler = a3000_bus_reset,
.eh_host_reset_handler = wd33c93_host_reset,
.can_queue = CAN_QUEUE, .can_queue = CAN_QUEUE,
.this_id = 7, .this_id = 7,
.sg_tablesize = SG_ALL, .sg_tablesize = SG_ALL,
......
...@@ -355,6 +355,13 @@ int __init gvp11_detect(Scsi_Host_Template *tpnt) ...@@ -355,6 +355,13 @@ int __init gvp11_detect(Scsi_Host_Template *tpnt)
return num_gvp11; return num_gvp11;
} }
static int gvp11_bus_reset(Scsi_Cmnd *cmd)
{
/* FIXME perform bus-specific reset */
wd33c93_host_reset(cmd);
return SUCCESS;
}
#define HOSTS_C #define HOSTS_C
...@@ -366,8 +373,9 @@ static Scsi_Host_Template driver_template = { ...@@ -366,8 +373,9 @@ static Scsi_Host_Template driver_template = {
.detect = gvp11_detect, .detect = gvp11_detect,
.release = gvp11_release, .release = gvp11_release,
.queuecommand = wd33c93_queuecommand, .queuecommand = wd33c93_queuecommand,
.abort = wd33c93_abort, .eh_abort_handler = wd33c93_abort,
.reset = wd33c93_reset, .eh_bus_reset_handler = gvp11_bus_reset,
.eh_host_reset_handler = wd33c93_host_reset,
.can_queue = CAN_QUEUE, .can_queue = CAN_QUEUE,
.this_id = 7, .this_id = 7,
.sg_tablesize = SG_ALL, .sg_tablesize = SG_ALL,
......
...@@ -113,6 +113,13 @@ int mvme147_detect(Scsi_Host_Template *tpnt) ...@@ -113,6 +113,13 @@ int mvme147_detect(Scsi_Host_Template *tpnt)
return 0; return 0;
} }
static int mvme147_bus_reset(Scsi_Cmnd *cmd)
{
/* FIXME perform bus-specific reset */
wd33c93_host_reset(cmd);
return SUCCESS;
}
#define HOSTS_C #define HOSTS_C
#include "mvme147.h" #include "mvme147.h"
...@@ -123,8 +130,9 @@ static Scsi_Host_Template driver_template = { ...@@ -123,8 +130,9 @@ static Scsi_Host_Template driver_template = {
.detect = mvme147_detect, .detect = mvme147_detect,
.release = mvme147_release, .release = mvme147_release,
.queuecommand = wd33c93_queuecommand, .queuecommand = wd33c93_queuecommand,
.abort = wd33c93_abort, .eh_abort_handler = wd33c93_abort,
.reset = wd33c93_reset, .eh_bus_reset_handler = mvme147_bus_reset,
.eh_host_reset_handler = wd33c93_host_reset,
.can_queue = CAN_QUEUE, .can_queue = CAN_QUEUE,
.this_id = 7, .this_id = 7,
.sg_tablesize = SG_ALL, .sg_tablesize = SG_ALL,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment