Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp410208rwi; Wed, 19 Oct 2022 23:46:48 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6qBG43DIyEOXuS7EegldljHwIF2ijG8Kao89w+jFPm+EHYFJFPYM2lWKFJExFgxKE0X0jZ X-Received: by 2002:a17:90a:f016:b0:20b:a65f:af42 with SMTP id bt22-20020a17090af01600b0020ba65faf42mr14291686pjb.79.1666248407795; Wed, 19 Oct 2022 23:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666248407; cv=none; d=google.com; s=arc-20160816; b=jfgiQtfDO3EBDXLpO6I+l0FF+DyR9Po0U/2yB+7JOHkS0GFSdCSMmZ+1r4EpoJR4KP A66jBf3/MnJo0OWdDWVh72HVtc34EpY8FonmXFZCm20JLZlpvcBEkmNxj1S2ZpBzxHBu B5is+B5TQ4EKRsCzc0u72BcVozX27gihy3fINGUTObv5uCtLRGpqpD7UMLoHeDnRNwq/ 6WnTBeAePM9JFSyTAN19tP2Tf+pLuv5vKCX02fTuFLfOA/KLUdMl7oK6ogPw/n9iVUHN NgN6Lt+DiJJCxkRFAcNOqS8zEbF++BfsobZTaPK6cg0/kGBO3UPR0DEBT4ubvO9aJPLP 8wAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=/RG1YBqePLHwSbzu3AJsQIoB61hk/GXZV1mOupc8Gyo=; b=OuyIXKyrP3ex9LhqbzdhAAEbxFMso3joYtBv4JihgJ7ysmiBe6XEI+HRgq80f09Ggv iKOKClcIKbKo9yIbaFIKb/FPcn/ycNFMvIEQJ++Whz7cBoT0n0MKtekKc4iT5spOur6F qT2EuhJ+ewcVV5QXK24qtv6hCmuXK5TPVBTWaZDUCsxfqAbZH71o63hKpmLZWqVviqwn ikpN6QjoEcnTq5xPSiWpDW6HVlUAkvYdC0gO80AcOHVq1V+WpbgS+wYwWsH1ejt1jI31 VVWymzaravf3cGAMf+d4xBh6isU4m7f8Ek3be/xztHli/fEvybli0x0N3PC2Zd+Thnob WtmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RtPHpXEs; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id d4-20020a655ac4000000b0043c5d3dc0d4si21598802pgt.332.2022.10.19.23.46.35; Wed, 19 Oct 2022 23:46:47 -0700 (PDT) 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=@gmail.com header.s=20210112 header.b=RtPHpXEs; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229735AbiJTGIg (ORCPT + 99 others); Thu, 20 Oct 2022 02:08:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229875AbiJTGIc (ORCPT ); Thu, 20 Oct 2022 02:08:32 -0400 Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B13D91B2BBA for ; Wed, 19 Oct 2022 23:08:31 -0700 (PDT) Received: by mail-qk1-x730.google.com with SMTP id x13so12195525qkg.11 for ; Wed, 19 Oct 2022 23:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=/RG1YBqePLHwSbzu3AJsQIoB61hk/GXZV1mOupc8Gyo=; b=RtPHpXEsb4v2QI31P+EyeZd3bAC/JgU/h4qX7QnK3qPc6YJTnnNnXnL8ZTTjkmSl3c SkpS9NcPggugkrtCiFYiKNzYfFF+7PEht/xidMPrJuE3/AAnBOi+XhUZrvYwrcyeBlUO hrtIEu697rFuICn0W5YMtlul/o9mW1Vzcjihd776oWmI3KuEMpkpTL11DJIo0nCtiQiz 1x6X3/8vAYv5dbl2eSaU/gsU/O47AgXOKWk3u6CIJhQAhhtHgVhXtQ8otJhxFhV/KTAq 6IKBAHfPzLwE8F1c8jSGg9Kzh2hYa9V6sjcUu72IUARu+DyVlbulmc0zE9+Z7SMjniON TB/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=/RG1YBqePLHwSbzu3AJsQIoB61hk/GXZV1mOupc8Gyo=; b=mGAN1sl02cy2fg8uFRYrYng9H5VJLdZ8zsbycS8uWVbjb9q8r7HJhsZaucYqubYMdg jiEwwdUI6P7WUoxX0gP7zSTV7NPi1DM/6NcZWxhAa2vJkji4HWA94OeCMWmzSQZoXiQD 7kvmM6ITOnLexWQkXfsLL95gILib0nmxg2fOJD9UqrbSq56t8d/vzyeOkwWhkhT6xJka PUFB+vhgJ1S9CsCXT6KwQCcsB3Kmy5kpIXa7C9N1o5a/k04YYCu+eqa4yrvHv0M8/To8 03TfjJlkFMvU8GkV2TXpyBvZc+yU1/XplI/bnetxrD311byZCUmYVD2+cIOM4OTv7gG3 NC+w== X-Gm-Message-State: ACrzQf0FXkK0tFsAe3+Bbv4bTiuWbwftLvB1+lnKhJYgHKXS2gTAy0xv ZSERBC13ID9SV3IExXoCWIPapT8tkPrmXstdJWnHNAk0qqSrmaSBlEM= X-Received: by 2002:a05:620a:22c3:b0:6ec:53bb:d296 with SMTP id o3-20020a05620a22c300b006ec53bbd296mr8095266qki.158.1666246110878; Wed, 19 Oct 2022 23:08:30 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Tanju Brunostar Date: Thu, 20 Oct 2022 07:08:18 +0100 Message-ID: Subject: Re: [PATCH] staging: rts5208: Replace instances of udelay by usleep_range To: Joe Perches Cc: gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, outreachy@lists.linux.dev Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 20, 2022 at 5:40 AM Joe Perches wrote: > > On Tue, 2022-10-18 at 14:04 +0000, Tanjuate Brunostar wrote: > > Replace the use of udelay by usleep_range as suggested by checkpatch: > > > > CHECK: usleep_range is preferred over udelay; see Documentation/timers/timers-howto.rst > > + udelay(30); > [] > > diff --git a/drivers/staging/rts5208/ms.c b/drivers/staging/rts5208/ms.c > [] > > @@ -3235,7 +3235,7 @@ static int ms_write_multiple_pages(struct rtsx_chip *chip, u16 old_blk, > > return STATUS_FAIL; > > } > > > > - udelay(30); > > + usleep_range(30, 30); > > >This isn't useful. Please read the Documentation/timers. Yes I read the documentation and realized the changes were not necessary