From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752324AbbLVCdN (ORCPT ); Mon, 21 Dec 2015 21:33:13 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:40509 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752849AbbLVCbS (ORCPT ); Mon, 21 Dec 2015 21:31:18 -0500 Message-Id: <20151222011750.505466143@telegraphics.com.au> User-Agent: quilt/0.50-1 Date: Tue, 22 Dec 2015 12:18:24 +1100 From: Finn Thain To: "James E.J. Bottomley" , Michael Schmitz , , , , "Martin K. Petersen" Subject: [PATCH v3 46/77] ncr5380: Fix NDEBUG_NO_DATAOUT flag References: <20151222011737.980475848@telegraphics.com.au> Content-Disposition: inline; filename=ncr5380-fix-NDEBUG_NO_DATAOUT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/scsi/NCR5380.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/scsi/NCR5380.c =================================================================== --- linux.orig/drivers/scsi/NCR5380.c 2015-12-22 12:16:37.000000000 +1100 +++ linux/drivers/scsi/NCR5380.c 2015-12-22 12:16:40.000000000 +1100 @@ -1838,7 +1838,6 @@ static void NCR5380_information_transfer continue; } switch (phase) { - case PHASE_DATAIN: case PHASE_DATAOUT: #if (NDEBUG & NDEBUG_NO_DATAOUT) printk("scsi%d : NDEBUG_NO_DATAOUT set, attempted DATAOUT aborted\n", instance->host_no); @@ -1848,6 +1847,7 @@ static void NCR5380_information_transfer cmd->scsi_done(cmd); return; #endif + case PHASE_DATAIN: /* * If there is no room left in the current buffer in the * scatter-gather list, move onto the next one.