Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp1192416rwd; Wed, 7 Jun 2023 12:25:21 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6X9g3a+CIfUbXC85n0rIQqcMzAwYndlkzHIEtLyRv+dTAFdT329YkSl/0GnOF/5J5GzTOH X-Received: by 2002:a17:902:d487:b0:1af:d812:d27 with SMTP id c7-20020a170902d48700b001afd8120d27mr8017067plg.9.1686165921616; Wed, 07 Jun 2023 12:25:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686165921; cv=none; d=google.com; s=arc-20160816; b=cs5vTBF/yFkcp/XRkUR/DOuIVZceUG/7fg2AaCbggK3+vICN6onbj/B9+M/c/S+wmu zmPMj3VipG0OPiHmv5LIl9Lltdvirtp7EwgoUv8cFRMnYaplyqcWZzVkKT9w3m78sdbj j+s5s8zsHA3/8RvdLfNAG7gRHOvpOF4zg+O6aj8ziJm8T2QFizMdyayRosLs+Ni6j33c m964Fi2D0NkXaJyo5SgoxKm328hcLXJ8fJDzIgMeCNvYGWrk0a7oJv8D2LJMcaEjQQG5 n/GHJYpwqNE9mp8R9OXnLPsOCZRNdfYKMZ8cJKH2WSXWUuZWf1kfV0d2a0LfQyFObH9i 0+5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:to:content-language:subject:user-agent:mime-version:date :message-id; bh=PCQq6w9tCTxruq8TeYqlXmiFHaDLEPuIhfTxDFbYYTc=; b=oj66+p0zeYu9sDsYBtBTVkfOF92MZmqqksOEmwyufZgXegJSxyt6VW7VdJJSgdCgwD BtKOeix06ShKUlsKNH9XUZS5/fC5K6WMZ9fxo5fzbe5Ae9raIXClCHBmh1QQVBEGUCDQ 95Ueja9tgmI6i4S9Od/jCLH9WS8Xt6zt9tXucADWJtgUYEcUlXZHgIQAzyMKRF36IAC5 3+rcSkGJb25RpR+oLMQWKpoptNI2s40FneRraPE3CNtoDhm6x3BuQgP7AGSOeqrkSFyn zSer52V4Ljg24xFp3jHyTTLUsLqTPf6AMHPV2JlwYncQORHvZAYez19cEVA2zHMT5a2X b1sw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n17-20020a170903111100b001b053ea9bc0si9493996plh.469.2023.06.07.12.25.09; Wed, 07 Jun 2023 12:25:21 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=acm.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232414AbjFGTBh (ORCPT + 99 others); Wed, 7 Jun 2023 15:01:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35328 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231534AbjFGTBe (ORCPT ); Wed, 7 Jun 2023 15:01:34 -0400 Received: from mail-pj1-f44.google.com (mail-pj1-f44.google.com [209.85.216.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C4411BF5; Wed, 7 Jun 2023 12:01:33 -0700 (PDT) Received: by mail-pj1-f44.google.com with SMTP id 98e67ed59e1d1-256531ad335so6278335a91.0; Wed, 07 Jun 2023 12:01:33 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686164493; x=1688756493; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=PCQq6w9tCTxruq8TeYqlXmiFHaDLEPuIhfTxDFbYYTc=; b=D9tsg7eYz9LA0t/XxCoAGHrSqjx+QOZPpP2nMESXzVBmndmajRqJ7sXkbcGKZ0A+F9 H3oEatV+ihAVLusDq979XheOCes12jkTrYwwKGRPGcG6SRJkFh5y9oC6jrt+CZP9g5xS Zfxvbf/MZdsR6bQ94TQReGYDU/++QKpXXvAgk9/v70K96z1zgXa9lQWllN7uI9M4j4gg btsWpbFFe1fvjYSVkO4tLJhhQCA7FpgPYV3zbHMcLAxVpZpUmVRv0dd4IWpRPd7cDebN PnE045GlE9TbEpM9WTZ5NKBP4Fnha3tUdU0s+sC90zBo7we4e2+M3WRh0pTiiWoW8csv xeNw== X-Gm-Message-State: AC+VfDy8xEWdGG2caUBSCY6hA3OlrVjm+S0VhC75VFzVlStijegt+i8z kp0KqFrRq/Y783ziWPKSz+0= X-Received: by 2002:a17:90a:1996:b0:255:c061:9e5b with SMTP id 22-20020a17090a199600b00255c0619e5bmr5778380pji.37.1686164492844; Wed, 07 Jun 2023 12:01:32 -0700 (PDT) Received: from [192.168.51.14] ([98.51.102.78]) by smtp.gmail.com with ESMTPSA id u10-20020a17090ae00a00b00256bbfbabcfsm1696996pjy.48.2023.06.07.12.01.31 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Jun 2023 12:01:32 -0700 (PDT) Message-ID: <4eda6575-c124-3ca3-e772-567a7014d895@acm.org> Date: Wed, 7 Jun 2023 12:01:31 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 3/3] ufs: poll pmc until another pa request is completed Content-Language: en-US To: Kiwoong Kim , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, alim.akhtar@samsung.com, avri.altman@wdc.com, jejb@linux.ibm.com, martin.petersen@oracle.com, beanhuo@micron.com, adrian.hunter@intel.com, sc.suh@samsung.com, hy50.seo@samsung.com, sh425.lee@samsung.com, kwangwon.min@samsung.com, junwoo80.lee@samsung.com References: <67ce698df39ca0c277c078dca729d7f607b9feb2.1685927620.git.kwmad.kim@samsung.com> From: Bart Van Assche In-Reply-To: <67ce698df39ca0c277c078dca729d7f607b9feb2.1685927620.git.kwmad.kim@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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 6/4/23 18:15, Kiwoong Kim wrote: > v2 -> v3 > 1) check time in the loop with jiffies, instead of miliseconds. > 2) change a variable's name and fix a typo and wrong alignment. > > v1 -> v2 > 1) remove clearing hba->active_uic_cmd at the end of __ufshcd_poll_uic_pwr > 2) change commit message on the cited clause: 5.7.12.11 -> 5.7.12.1.1 > 3) add mdelay to avoid too many issueing > 4) change the timeout for the polling to 100ms because I found it > sometimes takes much longer than expected. A change history like the above should either occur below the "---" separator or in a cover letter instead of in the patch description. > diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c [ ... ] There are two changes in this patch: the introduction of the __ufshcd_poll_uic_pwr() helper function and also the introduction of a wait loop. Please split this patch into two patches - one patch that introduces the helper function and a second patch that introduces the wait loop. That will make this patch series easier to review. Thanks, Bart.