mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-27 06:34:11 +08:00
ncr5380: Fix NDEBUG_NO_DATAOUT flag
NDEBUG_NO_DATAOUT should not disable DATA IN phases too. Fix this. (This bug has long been fixed in atari_NCR5380.c.) Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Tested-by: Ondrej Zary <linux@rainbow-software.org> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
161c0059a2
commit
bf1a0c6f8f
@ -1838,7 +1838,6 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
switch (phase) {
|
switch (phase) {
|
||||||
case PHASE_DATAIN:
|
|
||||||
case PHASE_DATAOUT:
|
case PHASE_DATAOUT:
|
||||||
#if (NDEBUG & NDEBUG_NO_DATAOUT)
|
#if (NDEBUG & NDEBUG_NO_DATAOUT)
|
||||||
printk("scsi%d : NDEBUG_NO_DATAOUT set, attempted DATAOUT aborted\n", instance->host_no);
|
printk("scsi%d : NDEBUG_NO_DATAOUT set, attempted DATAOUT aborted\n", instance->host_no);
|
||||||
@ -1848,6 +1847,7 @@ static void NCR5380_information_transfer(struct Scsi_Host *instance) {
|
|||||||
cmd->scsi_done(cmd);
|
cmd->scsi_done(cmd);
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
case PHASE_DATAIN:
|
||||||
/*
|
/*
|
||||||
* If there is no room left in the current buffer in the
|
* If there is no room left in the current buffer in the
|
||||||
* scatter-gather list, move onto the next one.
|
* scatter-gather list, move onto the next one.
|
||||||
|
Loading…
Reference in New Issue
Block a user