diff options
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r-- | drivers/scsi/NCR5380.c | 42 |
1 files changed, 10 insertions, 32 deletions
diff --git a/drivers/scsi/NCR5380.c b/drivers/scsi/NCR5380.c index 770fa841e389..f8ec6fe7d858 100644 --- a/drivers/scsi/NCR5380.c +++ b/drivers/scsi/NCR5380.c | |||
@@ -2825,39 +2825,17 @@ static int NCR5380_abort(Scsi_Cmnd * cmd) { | |||
2825 | * Locks: host lock taken by caller | 2825 | * Locks: host lock taken by caller |
2826 | */ | 2826 | */ |
2827 | 2827 | ||
2828 | static int NCR5380_bus_reset(Scsi_Cmnd * cmd) { | 2828 | static int NCR5380_bus_reset(Scsi_Cmnd * cmd) |
2829 | NCR5380_local_declare(); | 2829 | { |
2830 | NCR5380_setup(cmd->device->host); | 2830 | struct Scsi_Host *instance = cmd->device->host; |
2831 | |||
2832 | NCR5380_print_status(cmd->device->host); | ||
2833 | do_reset(cmd->device->host); | ||
2834 | return SUCCESS; | ||
2835 | } | ||
2836 | |||
2837 | /* | ||
2838 | * Function : int NCR5380_device_reset (Scsi_Cmnd *cmd) | ||
2839 | * | ||
2840 | * Purpose : reset a SCSI device | ||
2841 | * | ||
2842 | * Returns : FAILED | ||
2843 | * | ||
2844 | * Locks: io_request_lock held by caller | ||
2845 | */ | ||
2846 | 2831 | ||
2847 | static int NCR5380_device_reset(Scsi_Cmnd * cmd) { | 2832 | NCR5380_local_declare(); |
2848 | return FAILED; | 2833 | NCR5380_setup(instance); |
2849 | } | 2834 | NCR5380_print_status(instance); |
2850 | 2835 | ||
2851 | /* | 2836 | spin_lock_irq(instance->host_lock); |
2852 | * Function : int NCR5380_host_reset (Scsi_Cmnd *cmd) | 2837 | do_reset(instance); |
2853 | * | 2838 | spin_unlock_irq(instance->host_lock); |
2854 | * Purpose : reset a SCSI device | ||
2855 | * | ||
2856 | * Returns : FAILED | ||
2857 | * | ||
2858 | * Locks: io_request_lock held by caller | ||
2859 | */ | ||
2860 | 2839 | ||
2861 | static int NCR5380_host_reset(Scsi_Cmnd * cmd) { | 2840 | return SUCCESS; |
2862 | return FAILED; | ||
2863 | } | 2841 | } |