Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2620234pxb; Sun, 17 Oct 2021 20:43:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHE0+gkWnGaPMcuR5L9d1kQDEeo8pbT1zABPFNU3sHxkSSq9D0QIL+mAFpSS852/tb7wGz X-Received: by 2002:a62:7b90:0:b0:44d:fa6:325 with SMTP id w138-20020a627b90000000b0044d0fa60325mr26268008pfc.1.1634528626785; Sun, 17 Oct 2021 20:43:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1634528626; cv=none; d=google.com; s=arc-20160816; b=SvFANi0oJFh9Pu7x4pHwpQZnpOm9sAau5EYCUrPHyB6j3vzAzcQD8JS14PlsC4Y0o+ ZBPwMGgjhn2lUidnx9DG4P1YlFoN4eEE1QhbLEJ/I1JOa8Th4Qz61PGgPIOwlIPp92hS EBL6sVaQNdHmrWP0DIxY2SX/Korzcqs+p/ctkp4ie+0HlBOx+yqlwn56ceGd+/AJwRw/ fErOBloRsz8Jp83LJtTJ4HsqdYgKNby9WE/VrCrzSizd4QSDsKSnIyPCx62C6nbZGAwC 2FaZkoSAmcgMIjDJ+PsZ9+If2cmvb74M3dcO4Nf7c4nQQ9w1cVZaE+SkTDjo2p4HeUlX PyrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:ironport-hdrordr; bh=dULlVPyt3fgcTZjG8vqP3A4wwpH0rtCc4+UOlTDYi9M=; b=GQ9z8PQIov2sYAirMWS2Lx5nUk8IdD4zoaFGCqWqcQV0QoM/uwbbSmOEo9kP6HsYy7 KGjuSvLMEDgeUXqSeWlqHndAcGo04mnZyuzP90CtiMVwp34Bx9l+laIvyzXr8YoQ0Qde sGvfN9HNTQKsUqNXO+27Pr0UO/jj7HLMT2b/QPZUDttIPUss82fM1159HqDUgmqqMZlk JP5f3U/VQowBzG79uH/qVXOfbg52ApFXiovBBDQOFDNpuS34GqGocvC6VFtLppjblvvx E36t/cT7/+NfJ8FnhTr/HCsYpI6gyFDFEfO1JQkSsmULJNec+IohoPNvkIxCh6ToYMxI FwRg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y127si2989729pfc.157.2021.10.17.20.43.34; Sun, 17 Oct 2021 20:43:46 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245657AbhJQMgJ (ORCPT + 98 others); Sun, 17 Oct 2021 08:36:09 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:15111 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242197AbhJQMgJ (ORCPT ); Sun, 17 Oct 2021 08:36:09 -0400 IronPort-HdrOrdr: =?us-ascii?q?A9a23=3Adpz58asSHLVfAgw7szFQVONF7skD7NV00zEX?= =?us-ascii?q?/kB9WHVpm6yj+vxG+85rrSMc6QxhIU3J+7i7VpVoJEm8yXcb2+ks1NuZLWrbUQ?= =?us-ascii?q?iTXedfBOnZslnd8kTFn4Y3v8sOT0EUMqyUMbEVt7eZ3OD1KadG/DHAmprY/9s3?= =?us-ascii?q?qB1WPHpXgy4M1XYIe3WmO3wzYhJHC94YLfOnl7V6jgvlQG8QaMujAHkDQqzsm/?= =?us-ascii?q?3n/aiWHSIuNlof8w+Jgiqv6LnmVz6i/jlbfQ9u7N4ZgBX4eyqQ3NTTjxh+8G6j?= =?us-ascii?q?61Pu?= X-IronPort-AV: E=Sophos;i="5.84,326,1620684000"; d="scan'208";a="396163947" Received: from 173.121.68.85.rev.sfr.net (HELO hadrien) ([85.68.121.173]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Oct 2021 14:33:57 +0200 Date: Sun, 17 Oct 2021 14:33:57 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Stefan Wahren cc: Kushal-kothari , linux-arm-kernel@lists.infradead.org, mike.rapoport@gmail.com, kushalkothari2850@gmail.com, outreachy-kernel@googlegroups.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev, nsaenz@kernel.org, bcm-kernel-feedback-list@broadcom.com Subject: Re: [PATCH v2] staging: vc04_services: replace msleep() by usleep_range() In-Reply-To: <83076fd7-3183-5665-a9df-63a0b7e13c3f@i2se.com> Message-ID: References: <20211017092900.134752-1-kushalkothari285@gmail.com> <83076fd7-3183-5665-a9df-63a0b7e13c3f@i2se.com> User-Agent: Alpine 2.22 (DEB 394 2020-01-19) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 17 Oct 2021, Stefan Wahren wrote: > Hi, > > Am 17.10.21 um 11:29 schrieb Kushal-kothari: > > Fixed the warning:-msleep < 20ms can sleep for up to 20ms by replacing > > msleep(unsigned long msecs) by usleep_range(unsigned long min, unsigned long max) > > in usecs as msleep(1ms~20ms) can sleep for upto 20 ms. > > > > Signed-off-by: Kushal-kothari > > --- > > > > Changes from v1: Reword both the subject and the log message. > > > > drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 4 ++-- > > 1 file changed, 2 insertions(+), 2 deletions(-) > > > > diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > > index 6fbafdfe340f..80a7898c5331 100644 > > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c > > @@ -857,7 +857,7 @@ vchiq_bulk_transmit(unsigned int handle, const void *data, unsigned int size, > > if (status != VCHIQ_RETRY) > > break; > > > > - msleep(1); > > + usleep_range(1000, 2000); > > there was a recent discussion about this checkpatch warning [1] Should there be a comment about it? julia > > Best regards > > [1] > https://lore.kernel.org/linux-staging/260b38b8-6f3f-f6cc-0388-09a269ead507@i2se.com/ > >