[This patch series is being re-sent unchanged due to email problems.] This series addresses issues which became apparent when Michael Schmitz tried to use an AztecMonster II SATA/SCSI adapter with a 5380 host. That target seems to have some bugs which thoroughly exercise driver error paths and EH. The patch by Hannes Reinecke was cherry-picked from his 'eh-reset.v5' branch. Finn Thain (9): NCR5380: Reduce goto statements in NCR5380_select() NCR5380: Have NCR5380_select() return a bool NCR5380: Withhold disconnect privilege for REQUEST SENSE NCR5380: Use DRIVER_SENSE to indicate valid sense data NCR5380: Check for invalid reselection target NCR5380: Don't clear busy flag when abort fails NCR5380: Don't call dsprintk() following reselection interrupt NCR5380: Handle BUS FREE during reselection NCR5380: Check for bus reset Hannes Reinecke (1): NCR5380: Clear all unissued commands on host reset drivers/scsi/NCR5380.c | 167 +++++++++++++++++++++++++++++-------------------- drivers/scsi/NCR5380.h | 2 +- 2 files changed, 101 insertions(+), 68 deletions(-) -- 2.16.4