Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10233853ybi; Wed, 24 Jul 2019 18:58:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqzFKS8opNMtsb0u2PNyt/RAz6Uyp+mmvHHqyuMas7yFQ2aggBSb6EMRlllLDotXVOCx955I X-Received: by 2002:a17:90a:f98a:: with SMTP id cq10mr90505917pjb.43.1564019900377; Wed, 24 Jul 2019 18:58:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564019900; cv=none; d=google.com; s=arc-20160816; b=FY24Xs52VmJiMIWbn8BviyLhq377W4Rw8TbKncJ7qXUkK5aeiMGHM1RvytfVG/5H58 WAQuF954PFd/pZB/waaH+XenCwUcVUnJHdk6GZVCLxqMDp5zZQR6UEsfFcnceeSAPPQs 2VeuTcJwC15VHEB4JKP32mM8Nr9qE6oZ+ym55KirH41C7oLlPn1zYe3oQjuu3FA0u+kC EQZs2taZ81j+6RR0qyzXEVsDR+Y+epa7DViazSdd+M37IKPE0FDfPoNHExtNTtpe5xu2 mhKFMCKkfLVMHmDfiqSheLI0GBcHhLnmQK/yG7/1WAiNxJwkv1GOAg4uZen2BDCsv8LS hs3A== 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=YHwGtM2XKXA3/kFZfGZ0BpAig4CLAEj6h+zeVGknJPRLSrYHI1o3oOKevC6KNI2dTB oxhakQ/hbj+JIMDDWq5DTWdG0+m/D36qFoHe+QYyu4yB66qNDlwYEBlU315UBwWGtmFE HVHog/LXrOioiHIgQDtjyS+NJ1KBHa7mCh69JdwNn3KUgJVyKuBfHq/yJLlDwuUuDo04 5MQUzGKTUp3Rj5nZHWsPWbPxhacucXygEXX/M8iwQCCS5RDvyyUHJ3Ewm8UMX2G+hWla IpLKd4c58ORCS5m1heRE0lgS4ivFrJiMPXLRY5qKbvw9PJcDz9Ua5+IMbW3kPJgb81Re jZUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=KW8aMPEu; 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 i9si15844930plt.387.2019.07.24.18.58.05; Wed, 24 Jul 2019 18:58:20 -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=KW8aMPEu; 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 S1728475AbfGXTgW (ORCPT + 99 others); Wed, 24 Jul 2019 15:36:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:35986 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388989AbfGXTgU (ORCPT ); Wed, 24 Jul 2019 15:36:20 -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 668A020659; Wed, 24 Jul 2019 19:36:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1563996979; bh=LOARK0T404+azY1suHxq6Tt9I+LxkICd8FbLI+35sfo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KW8aMPEubHhIRyFzKtjGiKYKLO9HsXrUmToEN07lggzidWySsNb8M2scXYu3Nwk/Y NE0KA2dL0S2pSHyQZUKAdhYYl9tjfZ+d7IzGh6MTGdZDG5/+CoO8uc7kwKGqNAc2qX yzjBPVi6cn2FyyJadu1o8ecI0lJ54fnML7d5CCfE= 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 5.2 255/413] Revert "scsi: ncr5380: Increase register polling limit" Date: Wed, 24 Jul 2019 21:19:06 +0200 Message-Id: <20190724191754.201080120@linuxfoundation.org> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190724191735.096702571@linuxfoundation.org> References: <20190724191735.096702571@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) {