Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1998896ybb; Thu, 26 Mar 2020 19:13:23 -0700 (PDT) X-Google-Smtp-Source: ADFU+vumSYawSF0CwSAANCkK3B8HzqVvYpe9ECLRF8lJKI4iwLdHlefgEoJaypVmzXKhkJ5BzyJg X-Received: by 2002:a9d:6744:: with SMTP id w4mr8779380otm.220.1585275203510; Thu, 26 Mar 2020 19:13:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585275203; cv=none; d=google.com; s=arc-20160816; b=QLEBWAPc0FfWRxeW0ThWc+O9cvcmRnHM1k+XSwI2I6Uyq5tFtHcPCjA/U2533dbMzG zAx9IYN6Huqtp/M6BJ9VNhBwPidqa3pgM2Lekx/31vi6zW1mSdt6ogcOsbcrDHTcqdRk fNsdEo/vr8/QDOs9BMgjx5bMqGFMZZPuRxpfstSzjQ0xE1ihmTP/UW8/LFg2+AeGJiGF nzMeGuZdzYLt1e1nKDCYIewCWF78tXxYrKuvLSsfxZ+An2F2sahUZAgMsZ4IanyuPZLF CR2S2VjkhO1vvcB57+8eFmm0yXn0Wqm2RO2geo4hdqa62GO2nsPH7mKltyTuvebZgiWi 9yYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=5bvarpOWWeLxkVz2dL6Qx21vldJ+hgFTiWHLxR5fkAw=; b=0gYWoqAe+kYaEcM3h0o4N6qCRAVlrPsL8e3B7IwGOaf6JzF9kDv0htFogCXKBjRcCO BUkrQzS0Lf/S6lACxCKqJ7UkV3eHFfQ7IqHVMDGtjGzTlwp8vhS7YmTlEHwT6Xamwj5x rzEob7z0/HC1tvDZfLVyFgW03bAhR0yokDRtIEZK8ZS0wah99Elof0pY8z5B91qNkgQ2 WRYwkxXm3hLD5bJ9+FB0MRgDY3AVUWsxhDCzUTyRs5DMctG8MtdGCPwk9pKo1dzj1Mk0 AD1UZ0E+5jt40+jv4+Pc5N3n/g9WtbRF9+Th8KtU9Df6vx/42vLsQtATEXuC7LrKKmxT Yt4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=VmhSM0sg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l185si1839294oif.274.2020.03.26.19.13.11; Thu, 26 Mar 2020 19:13:23 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=VmhSM0sg; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727910AbgC0CL7 (ORCPT + 99 others); Thu, 26 Mar 2020 22:11:59 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:56288 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727666AbgC0CL6 (ORCPT ); Thu, 26 Mar 2020 22:11:58 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02R2A3Ao109633; Fri, 27 Mar 2020 02:11:46 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2020-01-29; bh=5bvarpOWWeLxkVz2dL6Qx21vldJ+hgFTiWHLxR5fkAw=; b=VmhSM0sgrgT40LeJyF4tp8kguA5KOOk5UlzBCZ9do+s7QhhjqUcKHIlIX63/jKv8i/Ed W3EEzAVOu4L4kUnfW2oAUR2KxBo/hkLF7DDLLbukmfmbvgtAmY8W00Fr1tkfw/JNbIQZ 1FBhct/BXonCFVf/Sau6eYaJjrQKI5qjYNUqiMg3m3GAILVChL57KZ7lu3AwadbTP0jf RQ60sMt8CZUAu8LqmCPMnIzG9PIs4QhzXpKatahvdtkm6w0ywuuD1xYFybddlbQvDzI2 8ybarv31OPqjcm63iMn6SD9NJANlOwkO+MNRzShXXZcqlgbh6bebTwLy9qC80/FhkKCm vQ== Received: from userp3020.oracle.com (userp3020.oracle.com [156.151.31.79]) by userp2130.oracle.com with ESMTP id 3014598nnu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 02:11:46 +0000 Received: from pps.filterd (userp3020.oracle.com [127.0.0.1]) by userp3020.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 02R2BkmA166048; Fri, 27 Mar 2020 02:11:46 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userp3020.oracle.com with ESMTP id 3003gn05pp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 27 Mar 2020 02:11:45 +0000 Received: from abhmp0015.oracle.com (abhmp0015.oracle.com [141.146.116.21]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 02R2BTUp009843; Fri, 27 Mar 2020 02:11:29 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 26 Mar 2020 19:11:29 -0700 To: Asutosh Das Cc: cang@codeaurora.org, martin.petersen@oracle.com, linux-scsi@vger.kernel.org, Nitin Rawat , linux-arm-msm@vger.kernel.org, Alim Akhtar , Avri Altman , "James E.J. Bottomley" , Stanley Chu , Bean Huo , Tomas Winkler , linux-kernel@vger.kernel.org (open list) Subject: Re: [ 1/1] scsi: ufs: Resume ufs host before accessing ufs device From: "Martin K. Petersen" Organization: Oracle Corporation References: Date: Thu, 26 Mar 2020 22:11:26 -0400 In-Reply-To: (Asutosh Das's message of "Tue, 24 Mar 2020 14:48:21 -0700") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9572 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 mlxlogscore=999 bulkscore=0 phishscore=0 adultscore=0 spamscore=0 malwarescore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270016 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9572 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 phishscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 mlxlogscore=999 adultscore=0 suspectscore=0 impostorscore=0 mlxscore=0 spamscore=0 clxscore=1011 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2003020000 definitions=main-2003270015 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Asutosh, > As a part of sysfs reading of descriptors/attributes/flags, query > commands should only be executed when hba's power runtime status is > active. To guarantee this, add pm_runtime_get/put_sync() to those > paths where query commands are sent. Applied to 5.7/scsi-queue, thanks! -- Martin K. Petersen Oracle Linux Engineering