Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3992889ybi; Mon, 29 Jul 2019 17:04:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqy6+lfc8UMEFXvjgHEneMV6dfO0V5LW+OairKfmJAtKVdsfTsStbyi+uYiaNddtxZIrG9p+ X-Received: by 2002:a17:90a:26ef:: with SMTP id m102mr112907791pje.50.1564445052245; Mon, 29 Jul 2019 17:04:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564445052; cv=none; d=google.com; s=arc-20160816; b=IlQd29/oIDevV91T9vErWQwnosiwzBnKj6KKtEK/DsTQEWqNrkv4pvhAn0W1wigALE vxfapzq9StC6igBS6Ig3OJKyHj7SIwjVmAUdDpwIF9QqWM+i13meV2aPiuPYlGzW4xDY BXBl79wLKvpIq5EHI+5C4562Ur+bbh1GhzzDmHINFJZzdvV7cJikmkfIIwGQSkrDplJk ZTep2MICDOGk0HO4bxOEKS1Cz4xFOW1suG5CrVN1+SW3bf0PxBZ5XoZ+ipuz+1LNNXLN pkwabF2bSPbR0Z4MJqZSxflTjmqwa6YHtwYOf0Pz1IwTQ2NG27OB7OtkXWWabbxJqaZr GzIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=lg2X1xfryh0FxNF8lLe9W8mcsQfYH5opGVeIw7Givew=; b=Mq7fv6L0WapdVex+7N9Ji9iyQ/AlD2nV4z+TIoIyUpJ7K34f4KxOgVga3Xw7iSFnc8 hewILqi+pHT3gqviWyGQJnxaYFyWHTjmLDSbSKZ4QhvDLmU8Ke6pI0PuMww+l4gk1ss0 5jXPOlMGnQ8IjdjZqCmac2EiU+DfI74dZqL6nqrZdKXB3C5UL0mIX5FvgMCLbiN4Y9oI Zbfrm6Xhm+AxSRsq/sfrZ0qbtb7pD3wfRMIWUneB92YBbY2X2qh7pm3RKE2FVrGqARhs mX9XDheYVylCg0IPItAz4Y1ms1aBElhSp9Rv3QV0JGaSoEG8EziikTiqvZ7sAIH+OSBg H+kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PheJRNPB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e16si27943482pgt.2.2019.07.29.17.03.57; Mon, 29 Jul 2019 17:04:12 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=PheJRNPB; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728363AbfG2T30 (ORCPT + 99 others); Mon, 29 Jul 2019 15:29:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:41980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727533AbfG2T3Q (ORCPT ); Mon, 29 Jul 2019 15:29:16 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2F714217D4; Mon, 29 Jul 2019 19:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1564428555; bh=LOARK0T404+azY1suHxq6Tt9I+LxkICd8FbLI+35sfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PheJRNPBQkjYTRJP91yw8vNrqWik0wZQkQrf1+Q6ysDoQsv28Izj6D5cE58bkyLWJ IPh38ehUMlznbLrrf3ewBGOxgnBNzy991+weKGDXBSHvZPUzDUOwkEnRZERdrFGJDU tu6O/47HD+LuzURPc5BY7PjEctEsFwjpM3Xo/pIk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Michael Schmitz , Finn Thain , Stan Johnson , "Martin K. Petersen" Subject: [PATCH 4.14 114/293] Revert "scsi: ncr5380: Increase register polling limit" Date: Mon, 29 Jul 2019 21:20:05 +0200 Message-Id: <20190729190833.357775795@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190729190820.321094988@linuxfoundation.org> References: <20190729190820.321094988@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Finn Thain commit 25fcf94a2fa89dd3e73e965ebb0b38a2a4f72aa4 upstream. This reverts commit 4822827a69d7cd3bc5a07b7637484ebd2cf88db6. The purpose of that commit was to suppress a timeout warning message which appeared to be caused by target latency. But suppressing the warning is undesirable as the warning may indicate a messed up transfer count. Another problem with that commit is that 15 ms is too long to keep interrupts disabled as interrupt latency can cause system clock drift and other problems. Cc: Michael Schmitz Cc: stable@vger.kernel.org Fixes: 4822827a69d7 ("scsi: ncr5380: Increase register polling limit") Signed-off-by: Finn Thain Tested-by: Stan Johnson Tested-by: Michael Schmitz Signed-off-by: Martin K. Petersen Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/NCR5380.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/scsi/NCR5380.h +++ b/drivers/scsi/NCR5380.h @@ -235,7 +235,7 @@ struct NCR5380_cmd { #define NCR5380_PIO_CHUNK_SIZE 256 /* Time limit (ms) to poll registers when IRQs are disabled, e.g. during PDMA */ -#define NCR5380_REG_POLL_TIME 15 +#define NCR5380_REG_POLL_TIME 10 static inline struct scsi_cmnd *NCR5380_to_scmd(struct NCR5380_cmd *ncmd_ptr) {