Received: by 2002:a05:6a10:eb17:0:0:0:0 with SMTP id hx23csp4106pxb; Thu, 2 Sep 2021 17:41:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9RL9jxFpGPgfL5CkACKdxKuyKYCHc8QrXDZTwsUUVtRSlDPafrA7OpjOlbFpyabSjbTvI X-Received: by 2002:a92:c68a:: with SMTP id o10mr628552ilg.163.1630629661423; Thu, 02 Sep 2021 17:41:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630629661; cv=none; d=google.com; s=arc-20160816; b=B2SYlF8FxS/JKAuQPkoNJ7bXbmyx7Bro9/w3L82sUyRkkUQh3C1m/Z8Fx0+k65Lp8D GlcNCDgwMBesSd7HFT+dDoPhVOVffUK2tBI66qWiDI1yNwPkLDanoJdIgECLD7Fpf9L/ U4+FZqci4l2l1ZgFAGS48VnLwHHN7qpzyqTAc62bbhEZc4F1vOiaG4HQCbAIxoe9QYlX 5Td3SeLn4LYmVLNDoNkRejgMg9FgXjU7JRicpS9NLe1NL6dxDi6McoiE1ezQiURde5jz LLIg6z0H3mxrCkjU/35cnu9rOmI7Q5rBQVW8bhC+ejudrodIrlMjfrYBGQWC2RFraVRc JXGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=necS4VUpe4t7hOX5NZ6mXxMU8h8wBvfjay7U9C07eQQ=; b=KdsJtPfMz/gM6BiuJ9e5ULwzx1wmoKiSIWEc6IWIhhybqHk56itybfjM89CKDmBeNb /1tEgUeP5B7avio5ncBhYTgYCNGsvmhxYf9vLGM9C6wWD0s245SE5OG8FImYMlZHkPZv yPU/a9nLwhjLcJtvCkP/9deDbLG/t5vxbI+ymcprarISeBIC041FnHOTVDtKCbXm/9Je YlrieXc2iKxe2q6XptiUtGd482IR8F1UqVGjnUAl1nz0YIWA9PRC2fU7gyxqToJFNFXI m19a9NwTEs63FTUsb+ihiFdSt32r/c/qrhs9NxQQNo8kprGwpS90HGJykpPsa4FhqS7E XNzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VJLDdqzk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i4si3411842ilv.27.2021.09.02.17.40.50; Thu, 02 Sep 2021 17:41:01 -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=pass header.i=@linaro.org header.s=google header.b=VJLDdqzk; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346521AbhIBRUH (ORCPT + 99 others); Thu, 2 Sep 2021 13:20:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59882 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242982AbhIBRUB (ORCPT ); Thu, 2 Sep 2021 13:20:01 -0400 Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09B54C061575 for ; Thu, 2 Sep 2021 10:19:01 -0700 (PDT) Received: by mail-pf1-x42f.google.com with SMTP id m26so2190354pff.3 for ; Thu, 02 Sep 2021 10:19:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=necS4VUpe4t7hOX5NZ6mXxMU8h8wBvfjay7U9C07eQQ=; b=VJLDdqzk3qgXNuXYDr1ZSorcfVQ3xeVIK8eVgKzfW+ov5t5VVcrbXTNquA/KMLDwsK q9GrsDuRDs/GxmQh0UrshO6ONiRcJOm0gUfRD28EBJL6JiifFpJLolnUhUGtFVkJdD0C 0GTeHI0FgfIZ8p4ITsXEZRNdnYBhTULje1nDYYgfMUxSL/zo/oJxDogSBZ6UtNt1E7q+ TmBwv8q+RubCc5JZKskX2ukB5Rb4u4zxFvP+bO9NN9aEn22197h7JlfIQW+Mp9xhoA2H 1otIcgNe5u+u5r6+WWAq46kO0vVrBXz3VovtGj4wrAmQ8qtHLZX1jlI9VYF8hT742n9V 7BZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=necS4VUpe4t7hOX5NZ6mXxMU8h8wBvfjay7U9C07eQQ=; b=MSm+q8iyiBlLeTO2spmS+CUJ8fS34AvKK3lEqSYfwpTfmPAxkknBjI95BnSJzlEFoc 0SsfxYmK1acme1cRr24b2fH3JQSnTV1c8DFl2ukoiyAix6uwkErEo3jdSBfAENfw3FOl QcbuekLPlkh3DsFIiJiWnTk3+L6Nh8olLiouFlL9Q6dpcsjZ9BOBCJODvYDa+ZsooTdn XvhhRb4u5p370CTqIBeK6bgLpzV1/9i170B/WJ/Wd/yTSvYHYxroA6JYG52B1OfBPFU5 85IcvYu6yEEsfCmvqdKFxOnjyYCASjhdSQdsA+AH0UU8QWDdDaf9WqMNzX/QvP2ztBVC KxPQ== X-Gm-Message-State: AOAM5328Fb/KPj86Et9LsnqewRZWzucyNG9oKzGyPlXQS7EQ1tsJ8jl4 GWdlfIvGzs21/o7Ytn3Kfvhu3w== X-Received: by 2002:aa7:938c:0:b0:3b2:87fe:a598 with SMTP id t12-20020aa7938c000000b003b287fea598mr4258210pfe.74.1630603141401; Thu, 02 Sep 2021 10:19:01 -0700 (PDT) Received: from p14s (S0106889e681aac74.cg.shawcable.net. [68.147.0.187]) by smtp.gmail.com with ESMTPSA id a11sm3083215pgj.75.2021.09.02.10.18.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Sep 2021 10:18:59 -0700 (PDT) Date: Thu, 2 Sep 2021 11:18:56 -0600 From: Mathieu Poirier To: Tao Zhang Cc: Suzuki K Poulose , Alexander Shishkin , Mike Leach , Leo Yan , Greg Kroah-Hartman , coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Tingwei Zhang , Mao Jinlong , Yuanfang Zhang Subject: Re: [PATCH] coresight: cti: Correct the parameter for pm_runtime_put Message-ID: <20210902171856.GA1078000@p14s> References: <1629365377-5937-1-git-send-email-quic_taozha@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1629365377-5937-1-git-send-email-quic_taozha@quicinc.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Tao, Apologies for the late reply - this patch fell through the cracks. On Thu, Aug 19, 2021 at 05:29:37PM +0800, Tao Zhang wrote: > 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); You are correct - I have added this patch to my next tree. Thanks, Mathieu > return 0; > > /* not disabled this call */ > -- > The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, > a Linux Foundation Collaborative Project >