aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/NCR5380.c
diff options
context:
space:
mode:
authorJames Bottomley <jejb@titanic.(none)>2005-06-17 19:42:23 -0400
committerJames Bottomley <jejb@titanic.(none)>2005-06-17 19:42:23 -0400
commit3237ee78fc00f786d5f5aec6f9310b0e39069f15 (patch)
tree4c94e70ab846ffcb8bb5715fb3c8d8473358a323 /drivers/scsi/NCR5380.c
parent9ee1c939d1cb936b1f98e8d81aeffab57bae46ab (diff)
parentdf0ae2497ddefd72a87f3a3b34ff32455d7d4ae0 (diff)
merge by hand (fix up qla_os.c merge error)
Diffstat (limited to 'drivers/scsi/NCR5380.c')
-rw-r--r--drivers/scsi/NCR5380.c42
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
2828static int NCR5380_bus_reset(Scsi_Cmnd * cmd) { 2828static 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
2847static 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
2861static int NCR5380_host_reset(Scsi_Cmnd * cmd) { 2840 return SUCCESS;
2862 return FAILED;
2863} 2841}