Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp411168pxv; Thu, 24 Jun 2021 10:34:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIuVuR+nVMEOMqcAdjEZewyVCCjIPxRjJLSp2NSq9Jqvrt6H420P4YSItoWuAEhRtJgKwN X-Received: by 2002:a17:906:b201:: with SMTP id p1mr6639648ejz.316.1624556068691; Thu, 24 Jun 2021 10:34:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1624556068; cv=none; d=google.com; s=arc-20160816; b=c0kUvhtOHdT+snJvNjYRPpkEmmtRRh8nUFNoCBQWiy6acSNFoLh2PcYFoIpQQINWyo oSLC6QULYK1/tuRzfnTtU7H0x1IvXVh915UET7ZMdfaKtexKZ9C18NITtnKnjlKfVAhz 0FLbNxs/OBjS/EFBXlCmoKKRQoA4PcuqLsvcSoARBMAUTPoNldP9DSzCvYg3wxWQw59P TFPchOuSum4aPuDKhvEpnDpmxPo6HeosAXcZ1hUDEFxvVIGpITOBBzOolcTwPffrfVxy jLAf4VbFFGpQNszdUnwMAKMQbVwQ74JIBxdFjKCjWYF420CG1/qokq3DuG/ZYZAtwsYE EIww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=7mkCkEwXQBHYc4yoTuGzapJQixnK7les2iDpwlzJsuo=; b=DQwqTDuA/El6rivQ73HOwPyKbZOXCjEwBIrlYuR6FUfMqiS/e7TgMZewYGVig5yHc0 /AYVz95LqKwUGv0ABc2BrYvGIQzDmFIWJGYyN0Ny3IU7ipP2lkwgiBoAGrYPacjLk6bB MqNZ+489UfuaPQ/myI8Kr+qTH41kbQwDxDneid9B6IU1u0Coe80Guh4zVoZ/fJg9rnOE xuN2htP2G/qcPU3v3wnwCzBYEyfbjI7nyZMR757A7CHQr65jm2y41ATa4ZCNH6kSF850 Ih20cVAAQFzxJ5OpmAXD893ESDmI9T8dPb25iKBarFueHniexp757fQ2nBYu7rF+Ia/P hxWw== 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 q8si3461610edb.138.2021.06.24.10.34.04; Thu, 24 Jun 2021 10:34:28 -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 S232425AbhFXRfA (ORCPT + 99 others); Thu, 24 Jun 2021 13:35:00 -0400 Received: from mail-pl1-f170.google.com ([209.85.214.170]:37549 "EHLO mail-pl1-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbhFXRe6 (ORCPT ); Thu, 24 Jun 2021 13:34:58 -0400 Received: by mail-pl1-f170.google.com with SMTP id y21so3324426plb.4; Thu, 24 Jun 2021 10:32:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=7mkCkEwXQBHYc4yoTuGzapJQixnK7les2iDpwlzJsuo=; b=NdDxU8/6SN3l+4qljsFjZ4gHMKksDEQPmLgiiBqm9NcXx8vTGNvhxC+nKf3LpiYlNW gL151sqWWu6PfHDIgAzpxJK8iOD5gLdpBRqWEvhsmMo3+17o7z6GpQ/rYH+2uDBBDg9g sk0+koYvwL9MW9w2i4NOWeFtlNcpvqNkwxm+4nwGS6WmAbLxIxtDsbK4u3/O0UoKIIB8 ihis5nauAkFIOfCcmLpLEg3XlgWwi7Ryuglo/S9U5IdVxuJxrAbpbHstO3E5SScRaOiZ UYdZE9m6CgrR0qUt5YF25xdly708MDa3gpN3wvCxmW6FaYE25GD4nJEWVlDpqRqKl4o6 7CJA== X-Gm-Message-State: AOAM532m21JgHrX/dDx4Et0cv6p0K78VUdeKKD9fO7eMPrN4qtz1KDJO EDleOfHTDyGESxQAP0IdgyJ+c1lHHL5IeQ== X-Received: by 2002:a17:902:e545:b029:111:6990:4103 with SMTP id n5-20020a170902e545b029011169904103mr5192664plf.63.1624555957778; Thu, 24 Jun 2021 10:32:37 -0700 (PDT) Received: from [192.168.3.217] (c-73-241-217-19.hsd1.ca.comcast.net. [73.241.217.19]) by smtp.gmail.com with ESMTPSA id 18sm8741183pje.22.2021.06.24.10.32.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 24 Jun 2021 10:32:37 -0700 (PDT) Subject: Re: [PATCH v4 01/10] scsi: ufs: Rename flags pm_op_in_progress and is_sys_suspended To: Can Guo , asutoshd@codeaurora.org, nguyenb@codeaurora.org, hongwus@codeaurora.org, ziqichen@codeaurora.org, linux-scsi@vger.kernel.org, kernel-team@android.com Cc: Andy Gross , Bjorn Andersson , Alim Akhtar , Avri Altman , "James E.J. Bottomley" , "Martin K. Petersen" , Stanley Chu , Bean Huo , Jaegeuk Kim , Adrian Hunter , Kiwoong Kim , Satya Tangirala , "open list:ARM/QUALCOMM SUPPORT" , open list References: <1624433711-9339-1-git-send-email-cang@codeaurora.org> <1624433711-9339-2-git-send-email-cang@codeaurora.org> From: Bart Van Assche Message-ID: <71e7d714-8cb9-1f57-9035-e43c147b5c61@acm.org> Date: Thu, 24 Jun 2021 10:32:34 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0 MIME-Version: 1.0 In-Reply-To: <1624433711-9339-2-git-send-email-cang@codeaurora.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 6/23/21 12:35 AM, Can Guo wrote: > Rename pm_op_in_progress and is_sys_suspended to wlu_pm_op_in_progress and > is_wlu_sys_suspended accordingly. Can the pm_op_in_progress variable be removed if the UFS driver checks whether q->rpm_status == RPM_SUSPENDING || q->rpm_status == RPM_RESUMING instead of using pm_op_in_progress? The fewer state variables we maintain the lower the chance that these are inconsistent or incorrect. See also block/blk-pm.c for the code that sets q->rpm_status. Thanks, Bart.