From patchwork Tue Nov 8 08:03:20 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhang Qilong X-Patchwork-Id: 13035997 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id EA8E4C433FE for ; Tue, 8 Nov 2022 07:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:CC :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=UyynOFyXDJ0BU6ClzdhlqunohVRo70p8xH/Ru01/nh0=; b=2Ho21d44Oa06If 8DQZpyBUt0xS2jx6DNejby+8u6z0nKl+aJ/8/aHqs+P9lhB1lfum/yDtf4nlXYgWRSDOvLDb+DBXG eBg/GpwC+zeDXiT5hxayVat3iLEi8NLtvgjmL5O3XmGguksDtcbCLTeEePNmpI9N74ToJSIRz8E3Y SKOkt3xFz8CqLa3I5+Y0m1/oklKtOuN94QPvKyVCW3Ane/k+EVqlew43IVnm6IeiZ5OcJ+dQCG7wI 0gWUsUJyL+9q/6Ox9ttWSRb252CJuFBGxtFERZqCG+waqCg8uBzQ2dcjwAZUDZVVGU/qzmrxzl+01 2M1UD29hhTE/kFZDh+rw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1osJVV-003VjV-2z; Tue, 08 Nov 2022 07:58:53 +0000 Received: from szxga08-in.huawei.com ([45.249.212.255]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1osJV5-003VaX-Ak for linux-arm-kernel@lists.infradead.org; Tue, 08 Nov 2022 07:58:30 +0000 Received: from dggemv711-chm.china.huawei.com (unknown [172.30.72.56]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4N60p76mPRz15MTR; Tue, 8 Nov 2022 15:58:07 +0800 (CST) Received: from kwepemm600014.china.huawei.com (7.193.23.54) by dggemv711-chm.china.huawei.com (10.1.198.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 8 Nov 2022 15:58:18 +0800 Received: from huawei.com (10.90.53.225) by kwepemm600014.china.huawei.com (7.193.23.54) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 8 Nov 2022 15:58:18 +0800 From: Zhang Qilong To: , CC: Subject: [PATCH 0/2] soc: ti: Fix PM disable depth imbalance in probe Date: Tue, 8 Nov 2022 16:03:20 +0800 Message-ID: <20221108080322.52268-1-zhangqilong3@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd MIME-Version: 1.0 X-Originating-IP: [10.90.53.225] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600014.china.huawei.com (7.193.23.54) X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221107_235827_562719_4C2D4903 X-CRM114-Status: UNSURE ( 6.63 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed when error returns to keep it balanced. This series of patches fixed it in probe to avoid the warning issue like "Unbalanced pm_runtime_enable!". Zhang Qilong (2): soc: ti: Fix PM disable depth imbalance in knav_queue_probe soc: ti: smartreflex: Fix PM disable depth imbalance in omap_sr_probe drivers/soc/ti/knav_qmss_queue.c | 1 + drivers/soc/ti/smartreflex.c | 1 + 2 files changed, 2 insertions(+)