From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id ACD2DC4321E for ; Tue, 16 Nov 2021 01:36:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9749D615E1 for ; Tue, 16 Nov 2021 01:36:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241897AbhKPBj0 (ORCPT ); Mon, 15 Nov 2021 20:39:26 -0500 Received: from mail.kernel.org ([198.145.29.99]:42060 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241737AbhKOSb0 (ORCPT ); Mon, 15 Nov 2021 13:31:26 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id B7C4E60E8B; Mon, 15 Nov 2021 17:58:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1636999128; bh=4L911CvHSeVXx/2OkXHDlrWEFKl0sU8Aw6oIFirPZYM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lgx7WO8hQJwfZQbWYEsO24Y+tHOazJBCUru1ED9dubZZ4Q+4xkDM1rknEVREFuTXv jWaRA31sTSKKTz1K66EveBJrJa9nDH1hk/FcuNKTtTqcjtIvSWsYwIO+luDkl3Qsrr /AQraTpwS/zNHDir4FAdtLncD4OqgDWxJZRYCWcA= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tao Zhang , Leo Yan , Mathieu Poirier Subject: [PATCH 5.14 187/849] coresight: cti: Correct the parameter for pm_runtime_put Date: Mon, 15 Nov 2021 17:54:30 +0100 Message-Id: <20211115165426.505673036@linuxfoundation.org> X-Mailer: git-send-email 2.33.1 In-Reply-To: <20211115165419.961798833@linuxfoundation.org> References: <20211115165419.961798833@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Tao Zhang commit 692c9a499b286ea478f41b23a91fe3873b9e1326 upstream. 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 Reviewed-by: Leo Yan Fixes: 835d722ba10a ("coresight: cti: Initial CoreSight CTI Driver") Cc: stable Link: https://lore.kernel.org/r/1629365377-5937-1-git-send-email-quic_taozha@quicinc.com Signed-off-by: Mathieu Poirier Signed-off-by: Greg Kroah-Hartman --- drivers/hwtracing/coresight/coresight-cti-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- 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_drv 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 */