Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp4100371rdg; Wed, 18 Oct 2023 15:17:26 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFDpPtIFc/wbOuldAWjTiUSDttkAE0PI/FVV3QDq/8Y5n07CwHK8aMSPREPs/31eSkNzGbw X-Received: by 2002:a05:6a21:a108:b0:174:c134:81fa with SMTP id aq8-20020a056a21a10800b00174c13481famr400013pzc.17.1697667446565; Wed, 18 Oct 2023 15:17:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697667446; cv=none; d=google.com; s=arc-20160816; b=q5GzrFjTkIdi38cBICWVSeTJbzavKlqk8dMlBJvSMo+IeUVjue4KcFOzVt8vK5NEq4 P7MxbU6hffjhEpowv1AeiGdrs3fVPzG7zRhs3ua492xZudyF9YFpYeWCGRGyePxcY9Ht tUUJgOYi6uH5WPAbUweSuRjEPl7ekSF7/Xm1QaBw2onM/EPJjxQ8mWHr1wB68uQb7aNE xJKiAgx7DDuZSHb0uaHAqXsTf1HoJHRKweMvRH2qMOHIL/TjEN3YseNze0b9GYky7NHM cPPjaQ+msmseVblEYA7N5o6B+5RUM5Cm8OOgT16tEuAP1E0eCrK1Kt/DowPjtrOvryOs PMdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=snokNDOxsr5znCjCh1iiBrwA56ITpA0ErAn6gKIVsTE=; fh=W19Me8SRfTHesTlVe5aIh9s4mMeIPZf7xwP2pgcT+eo=; b=SVpQB78UcLYs/Y4LI0UlA3c2pdUyfhTvadYsFQ9s1jG+K7HhsWRBcwbnMhCx9LjNq4 WHnjGvl4YSSbiIjhDrBOuj8b0wjL3pU+g41AuZKJ5Ui+io+5Qfx4P/WiiSDWNZBVnYAa t5Z+EARtcUpz6Hxw/F/glXyg+/f45PqjOOPnvpCvWx3d2nm5Y4TOksqvPyIKEtnIPAfU u2V2xP/RvkKF2lKJBH/lrwM48pvhHH0GMv1Mhu7ZsbFVhvsS3CeAoQROMg2Jn/dzDzsq UbrThqONiOnFfPdMmiLh7rhZCEfAhKY31te4KU5HfPRSS6zEFi4v1TEPoOTawPbX24CK tTHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VnKBOTMf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from snail.vger.email (snail.vger.email. [23.128.96.37]) by mx.google.com with ESMTPS id bv68-20020a632e47000000b00578c9144913si2950981pgb.364.2023.10.18.15.17.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 15:17:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) client-ip=23.128.96.37; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=VnKBOTMf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.37 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 765A9820DA14; Wed, 18 Oct 2023 15:17:25 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231567AbjJRWRR (ORCPT + 99 others); Wed, 18 Oct 2023 18:17:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229726AbjJRWRO (ORCPT ); Wed, 18 Oct 2023 18:17:14 -0400 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 111F510F for ; Wed, 18 Oct 2023 15:17:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1697667433; x=1729203433; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=uYBVBXbi85koNDPpvMhT/9afV4TOrNCWEn+UPSqZ71o=; b=VnKBOTMf74ngIQGTLukRhPp8hY3JRQl9+jKS8wx7J3QqihZ/HMyqkR/T eKwzIonjB1betlUiHb0DKVL0uCAYXhhUeOX+lfCGjdeJN2e4eDoNYLsXw B5BZxejLFBqt/uSb8lb2rty89cZ+8d1cWZZb9a1ChecMKu5cbd1JX2RFr x9okIQNm7OdewxjcsSYqnx0ExWLK5otIJ0JC1PrTVKC1ppHD7wPwnMcZ5 3nPV7Pu898haQkRsbxfdDdMmrFrG41suavPxm/88lMm9eYzC2wMO42Vqa akU6wEjRBXUTdUmuEBu1wh/nWsJto9PxawDe0OPt/L2MMFWQiuWhcoCaZ A==; X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="385005528" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="385005528" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 15:17:12 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10867"; a="733331062" X-IronPort-AV: E=Sophos;i="6.03,236,1694761200"; d="scan'208";a="733331062" Received: from aschofie-mobl2.amr.corp.intel.com (HELO aschofie-mobl2) ([10.212.171.196]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 15:17:12 -0700 Date: Wed, 18 Oct 2023 15:17:10 -0700 From: Alison Schofield To: Karolina Stolarek Cc: Julia Lawall , Greg Kroah-Hartman , kenechukwu maduechesi , outreachy@lists.linux.dev, shreeya.patel23498@gmail.com, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rts5208: Replace delay function. Message-ID: References: <20231018004300.GA3189@ubuntu> <7bc719c4-459f-3d8-7ed-b1e1adf158@inria.fr> <1118ec6d-e1e7-79f3-08e4-9a79c996eed1@intel.com> <2023101853-axis-stylist-f1b9@gregkh> <7dde176b-1059-e9a4-a023-0243cce61d01@intel.com> <12b375b1-acd3-476e-17bc-b4db22efba69@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 18 Oct 2023 15:17:25 -0700 (PDT) On Wed, Oct 18, 2023 at 12:40:33PM +0200, Karolina Stolarek wrote: > On 18.10.2023 12:28, Julia Lawall wrote: > > > > > > On Wed, 18 Oct 2023, Karolina Stolarek wrote: > > > > > On 18.10.2023 09:45, Greg Kroah-Hartman wrote: > > > > On Wed, Oct 18, 2023 at 09:32:46AM +0200, Karolina Stolarek wrote: > > > > > On 18.10.2023 09:03, Julia Lawall wrote: > > > > > > > > > > > > > > > > > > On Tue, 17 Oct 2023, kenechukwu maduechesi wrote: > > > > > > > > > > > > > Replace udelay() with usleep_range() for more precise delay handling. > > > > > > > > > > > > > > Reported by checkpatch: > > > > > > > > > > > > > > CHECK: usleep_range is preferred over udelay > > > > > > > > > > > > This message is typically not a good candidate for outreachy patches, > > > > > > because you need access to the device to be sure that any change is > > > > > > correct. > > > > > > > > > > Could we add a paragraph on how to pick good checkpatch.pl error to fix to > > > > > the Outreachyfirstpatch docs? This could go to "Find a driver to clean up" > > > > > section, for example. > > > > > > > > The ability to find a "good" error changes over time, so this might be > > > > hard to do. > > > > > > I agree, but we can all agree that experimenting with udelay during Outreachy > > > is not a good idea, and people should know about it > > > > In general, I think that it is better in the contribution period to do the > > wrong thing and then learn about why it is wrong, but this case comes up > > over and over, and it is always not the right thing to do, so I added an > > appropriate explanation. Thanks for the suggestion. > > Absolutely. Thanks for the docs update. Still, one thing -- is empty section > after "Some drivers that are on their way out of the kernel are:" > intentional? > > All the best, > Karolina Perhaps an applicant can expand on that "Find a driver to clean up..." section with a overview of how to use the Outreachy Mailing list, or any Mailing list to search for patches that cleaned up up the checkpatch error/warning/check that they are examining. Here's the query for the udelay one: https://lore.kernel.org/outreachy/?q=%22CHECK%3A+usleep_range+is+preferred+over+udelay%22 When submitters include the actual checkpatch string in their commit log it very easy to find and reference. For the first patch tutorial, I'll suggest something as simple as: 1) goto https://lore.kernel.org/outreachy/ 2) enter the checkpatch string in the 'search' box 3) boom - go see what others have done with this checkpatch error Or, if someone wants to get fancy they can add screenshots :) Note, that we really like to keep the language similar on these cleanups. Find a few references, and do as they did. > > > > > julia > > > > > > > > All the best, > > > Karolina > > > > > > > > > > > good luck! > > > > > > > > greg k-h > > > >