Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5726113imb; Fri, 8 Mar 2019 00:32:36 -0800 (PST) X-Google-Smtp-Source: APXvYqxE+hfSm/PI6vKWEdlh4bUKxT7BljZJ9M8xdy3dh9iUKNxose7jZ/SNAYjgIWSp2cPPU1SY X-Received: by 2002:a17:902:4545:: with SMTP id m63mr17178601pld.71.1552033956148; Fri, 08 Mar 2019 00:32:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552033956; cv=none; d=google.com; s=arc-20160816; b=ds+WXNoALkeVhwt/kRPYNhwNr/7ov90DNo9SZof+XZDSFyATTsfwQPLxUZ2GxsrYq1 Kj60BhbPCTV1Dv8pKqf2oyV3/5lQjQ2JwYYsoGvfuDV3OVEemIndhBRoNh8bimuHkmsp Yq75zmc6VWJO6IONxicgYfS1brfBEYO23X80D79D7SjRWPDgOTlyhQfUGq/oPZN+x037 87jzpzLrQgImFcp3Dh8OrCH8BKJjfw8pMRhe8L6YSgHtNGsXdOE3yTre3kOf2RgCCS3Q 9cwEtCWbtkvFvXfobkqMYKA0kmIF7VBiC/80fPmAAi2PgnQLPhHwnDiK549K6pvCaBs+ //vw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dmarc-filter:dkim-signature:dkim-signature; bh=XjRQMwgWzSHTfEwrh8X0OJnOTYG/xhITEbCV5N6IrHI=; b=g9Mi69WWKNoPxC+VVXh7QMkTD1r7PuILUG4xTjdTZHt/jrX/yvm8ffkFrGvlFYfDaI e5GVZrK4X4ZIJQfILGLC4cc88D/28UtINy7nAx+OXm6AygDavzaQD237Jn4IcWAVuad9 XTO4byyDOnbDDXjHV4J9FhlcrAqsfkYJOA8zfivp56gbv3HJPKZiZ2QFpu9BItDqLpt9 E6mQwdTuoOcj8azyTq5JmyLiWeEzhHwZm3C5+A6iB9F0l8PHway1aOxMeEdiEIK4wz8T FiUPRc83TZJ4AhyR5Dhg0hL9OLpnv4Nuzdd2FxVUv4Kg8ew5XGQeCQlUR5/xNITnf79C rxzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=lFGu56uc; dkim=pass header.i=@codeaurora.org header.s=default header.b=kI2sLTGY; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f17si6085098pgm.210.2019.03.08.00.32.20; Fri, 08 Mar 2019 00:32:36 -0800 (PST) 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=@codeaurora.org header.s=default header.b=lFGu56uc; dkim=pass header.i=@codeaurora.org header.s=default header.b=kI2sLTGY; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726530AbfCHIbm (ORCPT + 99 others); Fri, 8 Mar 2019 03:31:42 -0500 Received: from smtp.codeaurora.org ([198.145.29.96]:35868 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726323AbfCHIbi (ORCPT ); Fri, 8 Mar 2019 03:31:38 -0500 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 4465C602BA; Fri, 8 Mar 2019 08:31:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552033898; bh=a24jmQoPWqyDJptJlj3oRA4mUTzWhIfrj+Q4I+O9kSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lFGu56ucBAn7Ajv2VDEFhDpIfhMLSmRholwws22G99noC2oFZTH/1Osqfe+oq99IY cUUwutmxkohNwBOE4W7EaB8Il+ft5N7DLvtH+02uPxajncdBhfd/V/tGGMmM4xcDDr tswzTbr/aONPjjq8PsfCrjSYh1/BZ8ZmKQNQNeUg= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from blr-ubuntu-173.qualcomm.com (blr-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.18.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: rnayak@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 492D461195; Fri, 8 Mar 2019 08:31:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1552033897; bh=a24jmQoPWqyDJptJlj3oRA4mUTzWhIfrj+Q4I+O9kSw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kI2sLTGYmJ1dKyqppG9aVCwEQoh83TleGta3FS/McKAtyHP5cRcW36TPGcikMelsU xjFQFNVNzHqECUzQaKegIvoVOZRQcFauefNe5E1PBMp6TaFGxCrFgLPrw6IX432dX6 dn+ENlP719b7m3KZDfRM/V2CTozuPa4EenLTOKfQ= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 492D461195 Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=rnayak@codeaurora.org From: Rajendra Nayak To: vinholikatti@gmail.com, alim.akhtar@samsung.com, pedrom.Sousa@synopsys.com Cc: subhashj@codeaurora.org, asutoshd@codeaurora.org, linux-scsi@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Rajendra Nayak Subject: [PATCH 3/3] scsi: ufs: qcom: Remove unnecessary runtime pm calls Date: Fri, 8 Mar 2019 14:00:53 +0530 Message-Id: <20190308083053.30631-4-rnayak@codeaurora.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190308083053.30631-1-rnayak@codeaurora.org> References: <20190308083053.30631-1-rnayak@codeaurora.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Doing a runtime pm get/put as part of ufs_qcom_testbus_config() seems completely unnecessary, since this is called only early during ufs_qcom_init() when the runtime operations are not completely setup for ufs runtime suspend/resume to even work. Signed-off-by: Rajendra Nayak --- drivers/scsi/ufs/ufs-qcom.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/ufs/ufs-qcom.c b/drivers/scsi/ufs/ufs-qcom.c index 3aeadb14aae1..3590741eea2f 100644 --- a/drivers/scsi/ufs/ufs-qcom.c +++ b/drivers/scsi/ufs/ufs-qcom.c @@ -1558,7 +1558,6 @@ int ufs_qcom_testbus_config(struct ufs_qcom_host *host) } mask <<= offset; - pm_runtime_get_sync(host->hba->dev); ufshcd_hold(host->hba, false); ufshcd_rmwl(host->hba, TEST_BUS_SEL, (u32)host->testbus.select_major << 19, @@ -1573,7 +1572,6 @@ int ufs_qcom_testbus_config(struct ufs_qcom_host *host) */ mb(); ufshcd_release(host->hba); - pm_runtime_put_sync(host->hba->dev); return 0; } -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation