diff options
Diffstat (limited to 'drivers/scsi/ibmmca.c')
-rw-r--r-- | drivers/scsi/ibmmca.c | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/drivers/scsi/ibmmca.c b/drivers/scsi/ibmmca.c index a3fdead9bce9..b5dc35355570 100644 --- a/drivers/scsi/ibmmca.c +++ b/drivers/scsi/ibmmca.c | |||
@@ -2118,7 +2118,7 @@ static int ibmmca_queuecommand(Scsi_Cmnd * cmd, void (*done) (Scsi_Cmnd *)) | |||
2118 | return 0; | 2118 | return 0; |
2119 | } | 2119 | } |
2120 | 2120 | ||
2121 | static int ibmmca_abort(Scsi_Cmnd * cmd) | 2121 | static int __ibmmca_abort(Scsi_Cmnd * cmd) |
2122 | { | 2122 | { |
2123 | /* Abort does not work, as the adapter never generates an interrupt on | 2123 | /* Abort does not work, as the adapter never generates an interrupt on |
2124 | * whatever situation is simulated, even when really pending commands | 2124 | * whatever situation is simulated, even when really pending commands |
@@ -2225,7 +2225,19 @@ static int ibmmca_abort(Scsi_Cmnd * cmd) | |||
2225 | } | 2225 | } |
2226 | } | 2226 | } |
2227 | 2227 | ||
2228 | static int ibmmca_host_reset(Scsi_Cmnd * cmd) | 2228 | static int ibmmca_abort(Scsi_Cmnd * cmd) |
2229 | { | ||
2230 | struct Scsi_Host *shpnt = cmd->device->host; | ||
2231 | int rc; | ||
2232 | |||
2233 | spin_lock_irq(shpnt->host_lock); | ||
2234 | rc = __ibmmca_abort(cmd); | ||
2235 | spin_unlock_irq(shpnt->host_lock); | ||
2236 | |||
2237 | return rc; | ||
2238 | } | ||
2239 | |||
2240 | static int __ibmmca_host_reset(Scsi_Cmnd * cmd) | ||
2229 | { | 2241 | { |
2230 | struct Scsi_Host *shpnt; | 2242 | struct Scsi_Host *shpnt; |
2231 | Scsi_Cmnd *cmd_aid; | 2243 | Scsi_Cmnd *cmd_aid; |
@@ -2312,6 +2324,18 @@ static int ibmmca_host_reset(Scsi_Cmnd * cmd) | |||
2312 | return SUCCESS; | 2324 | return SUCCESS; |
2313 | } | 2325 | } |
2314 | 2326 | ||
2327 | static int ibmmca_host_reset(Scsi_Cmnd * cmd) | ||
2328 | { | ||
2329 | struct Scsi_Host *shpnt = cmd->device->host; | ||
2330 | int rc; | ||
2331 | |||
2332 | spin_lock_irq(shpnt->host_lock); | ||
2333 | rc = __ibmmca_host_reset(cmd); | ||
2334 | spin_unlock_irq(shpnt->host_lock); | ||
2335 | |||
2336 | return rc; | ||
2337 | } | ||
2338 | |||
2315 | static int ibmmca_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *info) | 2339 | static int ibmmca_biosparam(struct scsi_device *sdev, struct block_device *bdev, sector_t capacity, int *info) |
2316 | { | 2340 | { |
2317 | int size = capacity; | 2341 | int size = capacity; |