Skip to content

Commit 74fa80e

Browse files
hreineckemartinkpetersen
authored andcommitted
scsi: acornscsi: move bus reset to host reset
The bus reset function is really a host reset, so move it to eh_host_reset_handler. Signed-off-by: Hannes Reinecke <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Johannes Thumshirn <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent af167bc commit 74fa80e

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

drivers/scsi/arm/acornscsi.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2725,23 +2725,24 @@ int acornscsi_abort(struct scsi_cmnd *SCpnt)
27252725
* Params : SCpnt - command causing reset
27262726
* Returns : one of SCSI_RESET_ macros
27272727
*/
2728-
int acornscsi_bus_reset(struct scsi_cmnd *SCpnt)
2728+
int acornscsi_host_reset(struct Scsi_Host *shpnt)
27292729
{
2730-
AS_Host *host = (AS_Host *)SCpnt->device->host->hostdata;
2730+
AS_Host *host = (AS_Host *)shpnt->hostdata;
27312731
struct scsi_cmnd *SCptr;
27322732

27332733
host->stats.resets += 1;
27342734

27352735
#if (DEBUG & DEBUG_RESET)
27362736
{
2737-
int asr, ssr;
2737+
int asr, ssr, devidx;
27382738

27392739
asr = sbic_arm_read(host, SBIC_ASR);
27402740
ssr = sbic_arm_read(host, SBIC_SSR);
27412741

27422742
printk(KERN_WARNING "acornscsi_reset: ");
27432743
print_sbic_status(asr, ssr, host->scsi.phase);
2744-
acornscsi_dumplog(host, SCpnt->device->id);
2744+
for (devidx = 0; devidx < 9; devidx ++) {
2745+
acornscsi_dumplog(host, devidx);
27452746
}
27462747
#endif
27472748

@@ -2884,7 +2885,7 @@ static struct scsi_host_template acornscsi_template = {
28842885
.info = acornscsi_info,
28852886
.queuecommand = acornscsi_queuecmd,
28862887
.eh_abort_handler = acornscsi_abort,
2887-
.eh_bus_reset_handler = acornscsi_bus_reset,
2888+
.eh_host_reset_handler = acornscsi_host_reset,
28882889
.can_queue = 16,
28892890
.this_id = 7,
28902891
.sg_tablesize = SG_ALL,

0 commit comments

Comments
 (0)