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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8FBDDC00144 for ; Tue, 2 Aug 2022 03:19:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231535AbiHBDTV (ORCPT ); Mon, 1 Aug 2022 23:19:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbiHBDTU (ORCPT ); Mon, 1 Aug 2022 23:19:20 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7A0D6422CF; Mon, 1 Aug 2022 20:19:19 -0700 (PDT) X-UUID: d854270fb5ce4d4287c9eee988725f98-20220802 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.8,REQID:a0fc4b1d-dcdc-4afb-8363-75be426cd6d0,OB:0,LO B:0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,RULE:Release_Ham,ACT ION:release,TS:45 X-CID-INFO: VERSION:1.1.8,REQID:a0fc4b1d-dcdc-4afb-8363-75be426cd6d0,OB:0,LOB: 0,IP:0,URL:0,TC:0,Content:0,EDM:0,RT:0,SF:45,FILE:0,RULE:Release_Ham,ACTIO N:release,TS:45 X-CID-META: VersionHash:0f94e32,CLOUDID:51d905d0-a6cf-4fb6-be1b-c60094821ca2,C OID:1b35f9da6b07,Recheck:0,SF:28|17|19|48,TC:nil,Content:-5,EDM:-3,IP:nil, URL:0,File:nil,QS:nil,BEC:nil,COL:0 X-UUID: d854270fb5ce4d4287c9eee988725f98-20220802 Received: from mtkcas11.mediatek.inc [(172.21.101.40)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 1551468664; Tue, 02 Aug 2022 11:19:12 +0800 Received: from mtkmbs11n1.mediatek.inc (172.21.101.186) by mtkmbs10n1.mediatek.inc (172.21.101.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Tue, 2 Aug 2022 11:19:10 +0800 Received: from [172.21.84.99] (172.21.84.99) by mtkmbs11n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Tue, 2 Aug 2022 11:19:10 +0800 Subject: Re: [PATCH v1] PM-runtime: Check supplier_preactivated before release supplier From: Peter Wang To: "Rafael J. Wysocki" CC: "Rafael J. Wysocki" , Greg Kroah-Hartman , Linux PM , LKML References: <20220613120755.14306-1-peter.wang@mediatek.com> <12028598.O9o76ZdvQC@kreacher> <90b5f619-2dd6-817b-fe2d-f895be0b5b98@mediatek.com> <7c3ec17e-296f-ab15-6055-fd59a7d8f036@mediatek.com> Message-ID: <5c9a3908-a2c6-76d7-db6d-d762503d640a@mediatek.com> Date: Tue, 2 Aug 2022 11:19:10 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <7c3ec17e-296f-ab15-6055-fd59a7d8f036@mediatek.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org > Hi Rafael, > > Yes, it is very clear! > I miss this important key point that usage_count is always > > rpm_active 1. > I think this patch could work. > > Thanks. > Peter > > > > Hi Rafael, After test with commit ("887371066039011144b4a94af97d9328df6869a2 PM: runtime: Fix supplier device management during consumer probe") past weeks, The supplier still suspend when consumer is active "after" pm_runtime_put_suppliers. Do you have any idea about that? Thanks. Peter