Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp414626pxb; Thu, 19 Aug 2021 02:34:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwRmVx7q6OJEdwHLJm+Zph2f82F12sHl+nNnUv27eb2SpPrT5zjsqXoH/5l+0fDU75/jtf0 X-Received: by 2002:a05:6402:14d1:: with SMTP id f17mr14930782edx.167.1629365696037; Thu, 19 Aug 2021 02:34:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629365696; cv=none; d=google.com; s=arc-20160816; b=OrAn5aP47uP6DQB8G90Dvy01hvnR7ZVcl51cJfrbdxx3usV1MDH3oRbXWX0BZKUPoU rt+eSVQCXecRLc3V01Y4xXJmoKM5yj4memiBuwQtiSAqoMk9qn6AFqPfk7r6GYwxiBXV e5Cg2SmgDuHnTwE9vkDCWDQV4rTR9LSOs9UnbgiIsT8p7H2gwEql/DN14jWbLmqe7n+C +FJPT2rTmT0MfndRDewHiFnauivbB4eTzKriQ6/36mJmNW2GQC1HlUTG2Hv03beoKP1V 9VhZYdwpqHlQfFAPlEFjUJlczEr3s9ulBmpW9alyaHXPYbCSDNvB/a6nh5MyWKqIccJA /InA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=UWfIfUJKxZxNUFPEInfjYLr40IhkIYSpl9ri/jtDxlw=; b=vKhh6aURS0oF0V18xLweGD8cO+LJpzegTyPPXn8h6pddHrgaCkP/JQchtf40MPO4xg QJUPRaidHn4dk70l06kZ6rNm2cdyiKR/2WRHfFKLN7t6TmfrdfZmlMWJCtvAO/hpdHMV JCj83XWsiLDLM3rEGa/DOs2lJJV2rjDB+H2tSOa0KnXgNkTJydjdBYq8iW1ekRa73ab1 EmqVQz9VCD483985DFeRi+T8WTFy58nmryDUQkunBCDOv6N8YRbbmythYti3nHaGKAyu MCv0i5M6fbbyJbIXJ5IyYtpGsbkUniklELOQTJpk5ux56Fb4tR/Gqqr20yypVNgt5/q+ ftew== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=dBuvvWCV; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ee53si2899135edb.395.2021.08.19.02.34.33; Thu, 19 Aug 2021 02:34:56 -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; dkim=fail header.i=@quicinc.com header.s=qcdkim header.b=dBuvvWCV; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237579AbhHSJaa (ORCPT + 99 others); Thu, 19 Aug 2021 05:30:30 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:32740 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237031AbhHSJa2 (ORCPT ); Thu, 19 Aug 2021 05:30:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1629365392; x=1660901392; h=from:to:cc:subject:date:message-id:mime-version; bh=Fzuqzyw6STOgkcYikx6TJv/NYM/Np4OItRMgwIlSz90=; b=dBuvvWCVAYZPLNwcmhHL7rRSJSvUc6ijfupKKHZxbPMWBGuOaf2DupUv RCswPzWN+eNxrtFLEdCYJE5cOCA1lRWpdUW3hGbg+O9BNejT0CP5VqxWf 9YzECMl2fUkQzzzJ7jSvFZYibbqacGbWsczv1d36NatQdVhqaivP5ZIx3 4=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 19 Aug 2021 02:29:52 -0700 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Aug 2021 02:29:52 -0700 Received: from nalasex01c.na.qualcomm.com (10.47.97.35) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Thu, 19 Aug 2021 02:29:52 -0700 Received: from taozha-gv.qualcomm.com (10.80.80.8) by nalasex01c.na.qualcomm.com (10.47.97.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.858.15; Thu, 19 Aug 2021 02:29:49 -0700 From: Tao Zhang To: Mathieu Poirier , Suzuki K Poulose , Alexander Shishkin CC: Tao Zhang , Mike Leach , Leo Yan , Greg Kroah-Hartman , , , , Tingwei Zhang , Mao Jinlong , Yuanfang Zhang Subject: [PATCH] coresight: cti: Correct the parameter for pm_runtime_put Date: Thu, 19 Aug 2021 17:29:37 +0800 Message-ID: <1629365377-5937-1-git-send-email-quic_taozha@quicinc.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01b.na.qualcomm.com (10.46.141.250) To nalasex01c.na.qualcomm.com (10.47.97.35) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The input parameter of the function pm_runtime_put should be the same in the function cti_enable_hw and cti_disable_hw. The correct parameter to use here should be dev->parent. Signed-off-by: Tao Zhang --- drivers/hwtracing/coresight/coresight-cti-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/hwtracing/coresight/coresight-cti-core.c b/drivers/hwtracing/coresight/coresight-cti-core.c index e2a3620..8988b2e 100644 --- a/drivers/hwtracing/coresight/coresight-cti-core.c +++ b/drivers/hwtracing/coresight/coresight-cti-core.c @@ -175,7 +175,7 @@ static int cti_disable_hw(struct cti_drvdata *drvdata) coresight_disclaim_device_unlocked(csdev); CS_LOCK(drvdata->base); spin_unlock(&drvdata->spinlock); - pm_runtime_put(dev); + pm_runtime_put(dev->parent); return 0; /* not disabled this call */ -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project