alistair23-linux/drivers/scsi/arm
Finn Thain b6488f97d3 ncr5380: Split NCR5380_init() into two functions
This patch splits the NCR5380_init() function into two parts, similar
to the scheme used with atari_NCR5380.c. This avoids two problems.

Firstly, NCR5380_init() may perform a bus reset, which would cause the
chip to assert IRQ. The chip is unable to mask its bus reset interrupt.
Drivers can't call request_irq() before calling NCR5380_init(), because
initialization must happen before the interrupt handler executes. If
driver initialization causes an interrupt it may be problematic on some
platforms. To avoid that, first move the bus reset code into
NCR5380_maybe_reset_bus().

Secondly, NCR5380_init() contains some board-specific interrupt setup code
for the NCR53C400 that does not belong in the core driver. In moving this
code, better not re-order interrupt initialization and bus reset. Again,
the solution is to move the bus reset code into NCR5380_maybe_reset_bus().

Signed-off-by: Finn Thain <fthain@telegraphics.com.au>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Tested-by: Ondrej Zary <linux@rainbow-software.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-01-06 21:42:52 -05:00
..
acornscsi-io.S [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach 2008-08-07 09:55:48 +01:00
acornscsi.c acornscsi: use scsi_print_command() 2014-11-12 11:15:58 +01:00
acornscsi.h Fix common misspellings 2011-03-31 11:26:23 -03:00
arxescsi.c scsi: Do not set cmd_per_lun to 1 in the host template 2015-05-31 18:06:28 -07:00
cumana_1.c ncr5380: Split NCR5380_init() into two functions 2016-01-06 21:42:52 -05:00
cumana_2.c scsi: Do not set cmd_per_lun to 1 in the host template 2015-05-31 18:06:28 -07:00
eesox.c scsi: Do not set cmd_per_lun to 1 in the host template 2015-05-31 18:06:28 -07:00
fas216.c scsi: replace seq_printf with seq_puts 2015-02-02 09:57:45 -08:00
fas216.h fas216: switch to ->show_info() 2013-04-09 14:13:26 -04:00
Kconfig drivers/scsi/arm: remove depends on CONFIG_EXPERIMENTAL 2013-01-21 14:52:45 -08:00
Makefile
msgqueue.c
msgqueue.h
oak.c ncr5380: Split NCR5380_init() into two functions 2016-01-06 21:42:52 -05:00
powertec.c [SCSI] remove deprecated IRQF_DISABLED from SCSI 2014-03-19 15:04:44 -07:00
queue.c scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
queue.h
scsi.h