linux/drivers/scsi/arm
Finn Thain 22f5f10d2d ncr5380: Fix SCSI_IRQ_NONE bugs
Oak scsi doesn't use any IRQ, but it sets irq = IRQ_NONE rather than
SCSI_IRQ_NONE. Problem is, the core NCR5380 driver expects SCSI_IRQ_NONE
if it is to issue IDENTIFY commands that prevent target disconnection.
And, as Geert points out, IRQ_NONE is part of enum irqreturn.

Other drivers, when they can't get an IRQ or can't use one, will set
host->irq = SCSI_IRQ_NONE (that is, 255). But when they exit they will
attempt to free IRQ 255 which was never requested.

Fix these bugs by using NO_IRQ in place of SCSI_IRQ_NONE and IRQ_NONE.
That means IRQ 0 is no longer probed by ISA drivers but I don't think
this matters.

Setting IRQ = 255 for these ISA drivers is understood to mean no IRQ.
This remains supported so as to avoid breaking existing ISA setups (which
can be difficult to get working) and because existing documentation
(SANE, TLDP etc) describes this usage for the ISA NCR5380 driver options.

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Tested-by: Michael Schmitz <schmitzmic@gmail.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2014-11-20 09:11:07 +01:00
..
Kconfig
Makefile
acornscsi-io.S
acornscsi.c acornscsi: use scsi_print_command() 2014-11-12 11:15:58 +01:00
acornscsi.h
arxescsi.c
cumana_1.c ncr5380: Remove redundant AUTOSENSE macro 2014-11-20 09:11:06 +01:00
cumana_2.c
eesox.c
fas216.c scsi: Remove scsi_print_command when calling abort 2014-11-12 11:16:04 +01:00
fas216.h
msgqueue.c
msgqueue.h
oak.c ncr5380: Fix SCSI_IRQ_NONE bugs 2014-11-20 09:11:07 +01:00
powertec.c
queue.c
queue.h
scsi.h