Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp3677801pxb; Fri, 4 Feb 2022 13:56:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJyfFbBZl++OytJf3rMCw4jlZSnZ3anM5VcKfUj7DVWCNR0P1FnICjPpLzsZlMTmqSriOXTQ X-Received: by 2002:a17:902:ab11:: with SMTP id ik17mr5180397plb.9.1644011807527; Fri, 04 Feb 2022 13:56:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644011807; cv=none; d=google.com; s=arc-20160816; b=HwOn/CzDsG3h2l5zldNyn0WOkCSZowqvhNEf4F1uKlTVT7TyQ7eN+oVaGzvV4jrKBi QgYNrrJJQY+MDwh6qbV2Hmkea2s5nhYsy0O9wjeQy3dPa0t24gfOEGnZw1L8lCUP+Ln1 LqFuz8BxTcTfJAWz2YSuXHzPKGchhan/J/zbE0tD17xIApAQgwVsjq0HaQ16dcz3kJl3 2KSXG8MZNfxQVqpMxKE+CLn5v+cZjrPcgfsoqJsF4jurYqsNsKnIG4bup/BWEHMJP40I sQD73Pbek2qCQOLYldip6b+xZl+SnSmqlARrLwjq+u9t3DNPwhm9BtFJf7b8XgpOE1yh 745Q== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=cnjW8yKbEyG0FqNYK6ZIIplhyg3mHtVTjDUJ3agdcfQ=; b=V1988oGuja5ns/s1AzmPqjWJ6zt0Nrx8fytej4qOtXxyq8exJtjRbJwUjm1HipNHJt lsAYHonx/piZKP5YRqoHF1tH1pkOTmvZQyLMgRiS+xuUEx90epjHWZSAIpn1q2fJNfEl 3TWLPTYw3w3mOQDunPvNj5nquqKNffEv7N04RQoKBb6BDVnb3z3k+0k7Y4DGz+/QwjEK f3UAMBFmWu7a0ambWNs2RL/VU4r5nFvduFmuhPVhAFM2Tc6f4q8ONMBlRE74/KdI2rEs peV7dHWIz/FIJBgldJZn7JL6yYGge18UDLXzW6LZzbtP6Evpq7WfNZe3ENuEJoDBNxtD 0vew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Yc3P3/VZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id r10si2975543pff.33.2022.02.04.13.56.35; Fri, 04 Feb 2022 13:56:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="Yc3P3/VZ"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1376699AbiBDQ66 (ORCPT + 99 others); Fri, 4 Feb 2022 11:58:58 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:36563 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233140AbiBDQ65 (ORCPT ); Fri, 4 Feb 2022 11:58:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1643993936; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=cnjW8yKbEyG0FqNYK6ZIIplhyg3mHtVTjDUJ3agdcfQ=; b=Yc3P3/VZVjZ+efVak+ucUh8d93PnaxChDs7fF1HgSxiK4VkWsmDBQYaYXKa7OYmQDylB5R xwO/ylAKAWxpAhiZ4wWvwMejAvBCp+kypCuE4HLpvum9Ld1uXkuNPre8szCJp5LIEfOO3O zjhXMAIoj/9B5zmauJ/bdW7zijFZvco= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-244-yB7x48wRPSGm60yek7yULw-1; Fri, 04 Feb 2022 11:58:53 -0500 X-MC-Unique: yB7x48wRPSGm60yek7yULw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2842F51081; Fri, 4 Feb 2022 16:58:52 +0000 (UTC) Received: from jtoppins.rdu.csb (unknown [10.22.16.103]) by smtp.corp.redhat.com (Postfix) with ESMTP id E4FB2753FC; Fri, 4 Feb 2022 16:58:50 +0000 (UTC) From: Jonathan Toppins To: intel-wired-lan@lists.osuosl.org, lihong.yang@intel.com Cc: Jocelyn Falempe , Jesse Brandeburg , Tony Nguyen , "David S. Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RFC] ice: use msleep instead of mdelay Date: Fri, 4 Feb 2022 11:58:46 -0500 Message-Id: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use msleep for long delays instead of spinning in the driver. Suggested-by: Jocelyn Falempe Signed-off-by: Jonathan Toppins --- drivers/net/ethernet/intel/ice/ice_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/intel/ice/ice_common.c b/drivers/net/ethernet/intel/ice/ice_common.c index 408d15a5b0e3..50987d513faf 100644 --- a/drivers/net/ethernet/intel/ice/ice_common.c +++ b/drivers/net/ethernet/intel/ice/ice_common.c @@ -1107,7 +1107,7 @@ int ice_check_reset(struct ice_hw *hw) GLGEN_RSTCTL_GRSTDEL_S) + 10; for (cnt = 0; cnt < grst_timeout; cnt++) { - mdelay(100); + msleep(100); reg = rd32(hw, GLGEN_RSTAT); if (!(reg & GLGEN_RSTAT_DEVSTATE_M)) break; @@ -3196,7 +3196,7 @@ ice_set_fc(struct ice_port_info *pi, u8 *aq_failures, bool ena_auto_link_update) if (!status) break; - mdelay(100); + msleep(100); } if (status) -- 2.27.0