Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4623370pxj; Wed, 12 May 2021 09:27:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVPLCn0uZs4+TN0Ynq3dVWbUybyI81zHWevk2pJQu3UCdpy5neG9mVnGeSDSByl6Zlxl1z X-Received: by 2002:a17:906:710a:: with SMTP id x10mr877132ejj.516.1620836861001; Wed, 12 May 2021 09:27:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620836860; cv=none; d=google.com; s=arc-20160816; b=D9faPPK8QrjpdzGcI+ek3iGGFdzwxXK2Gc9MS8ygvqdAXaJd53QNn+W42gkLMQMJCH oXf2OYeJMzoD20fke79YKcunAtoqEn1z09D0HAe1EKTw/cTamLKr/nt6CN3cUDxoq/yq mbfWjm+6MiXJ1oIa2CwUwU/wCJ904Dtq3dEikCU1VpuUpkQfSB/249rt+f/5l8bCsmwt /ZRCKAainSBkZ3mdQBMdN9JfLwrXMbPF/T/RBg4GGQUcZJear5D0bt+2d1pZy3by8Wc3 /4aXFY/q9G135GKJke6XgZ24PNpyZCFEOuD64a99PbPmG6TNYTcuKyt6xwJqKhsrTYZt E6pA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=8eZkdTWA+9X0M4K5tIQ7e2sDOv/3JItIhCF+Civ1TKY=; b=RVgvfyChgv+w2Q6zT4DtNjelqlRD36N9VQQj/AVfqzjxtojKO/Ax2opCadk4cF7rqe 5nGE9wKmGQVVUIyAxfu8hBiTq9G38AenPFCXaMtmrCvVVGEiC60FyXvrl1djVL86NbRz Nqi2+o3adsxRD+jVHwOg7SCDSiymUzh+9NKhi8esZcY5wnubriJAm00Mi5YOOFO0T5AB mDMJYJ+fJUODk3zTS/L99+SnWBh2rcayzvWIoau9v7WoIuEKuQ4l/c/xHEtiw4NxJTT+ oq0tT3KQTTUgbh5DaIS7wp+6E8C5k0pUX7Y6RUOeRkRAd3TzGqgJ1eAuQA8jjGrA1u/E AhVw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lWrN3cjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x11si129460edd.384.2021.05.12.09.27.09; Wed, 12 May 2021 09:27:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lWrN3cjB; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240514AbhELQSM (ORCPT + 99 others); Wed, 12 May 2021 12:18:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:54422 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235063AbhELPfP (ORCPT ); Wed, 12 May 2021 11:35:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id A236561995; Wed, 12 May 2021 15:17:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620832666; bh=mYhmyNGue0YNL3Jph8tkYFHnO4GoSpZVEKE1p7sTGWk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lWrN3cjBoQ5GTUAYuWyE1je23xele3B9OAD5nbwMIQsFecF7+5xNgHSiecrgc8o/W Cu2hClTFjlZ9GyUs8zNv4FsQLUspjQpExLuK56fHcYQt+/RFPpV+Usy1m4LF3uJsu3 nWXWUGw8MgDZ0DRabtAcUnj6UyrhGtNQ2vsoR5VE= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vishakha Channapattan , Jack Wang , Igor Pylypiv , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 328/530] scsi: pm80xx: Increase timeout for pm80xx mpi_uninit_check() Date: Wed, 12 May 2021 16:47:18 +0200 Message-Id: <20210512144830.586304527@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210512144819.664462530@linuxfoundation.org> References: <20210512144819.664462530@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Igor Pylypiv [ Upstream commit 3f744a14f331f56703a9d74e86520db045f11831 ] The mpi_uninit_check() takes longer for inbound doorbell register to be cleared. Increase the timeout substantially so that the driver does not fail to load. Previously, the inbound doorbell wait time was mistakenly increased in the mpi_init_check() instead of mpi_uninit_check(). It is okay to leave the mpi_init_check() wait time as-is as these are timeout values and if there is a failure, waiting longer is not an issue. Link: https://lore.kernel.org/r/20210406180534.1924345-2-ipylypiv@google.com Fixes: e90e236250e9 ("scsi: pm80xx: Increase timeout for pm80xx mpi_uninit_check") Reviewed-by: Vishakha Channapattan Acked-by: Jack Wang Signed-off-by: Igor Pylypiv Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/pm8001/pm80xx_hwi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/pm8001/pm80xx_hwi.c b/drivers/scsi/pm8001/pm80xx_hwi.c index 055f7649676e..27b354860a16 100644 --- a/drivers/scsi/pm8001/pm80xx_hwi.c +++ b/drivers/scsi/pm8001/pm80xx_hwi.c @@ -1488,9 +1488,9 @@ static int mpi_uninit_check(struct pm8001_hba_info *pm8001_ha) /* wait until Inbound DoorBell Clear Register toggled */ if (IS_SPCV_12G(pm8001_ha->pdev)) { - max_wait_count = 4 * 1000 * 1000;/* 4 sec */ + max_wait_count = 30 * 1000 * 1000; /* 30 sec */ } else { - max_wait_count = 2 * 1000 * 1000;/* 2 sec */ + max_wait_count = 15 * 1000 * 1000; /* 15 sec */ } do { udelay(1); -- 2.30.2