Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp953282pxb; Wed, 6 Apr 2022 05:12:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyGkEK+fJaAPLd4vglccy+ll/UzwY7gQprdVt5Ig05f1w+aR8SEMYNj6+VLN0WMQCmzyIAL X-Received: by 2002:a63:e0a:0:b0:380:fba9:f6e4 with SMTP id d10-20020a630e0a000000b00380fba9f6e4mr6828184pgl.481.1649247141624; Wed, 06 Apr 2022 05:12:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649247141; cv=none; d=google.com; s=arc-20160816; b=F/yr6i3b9ivAyQBaCNjN9usWzjaTQzn5pxGGXiNLQllHBjNf1kDU/ttLRQYr8x/ORr sgFDSs0AIt+lrvJQIaxVg4cz3p0R/YTfKSkxSxOG9NpL1wcEQfLmBjSwbwxAIgePcMwA 2TPqyS8dX5ytWYmUe++9sWCmPDmzLEV3PTO9BuigoenRy4iSHPDl6YBNKFCpOE5f04d7 3qXu9t8D/TVOlRNC6P9dZRPjQ1kPDOLohwYBS037Ge1CaAlAZwmKsMpBQaUqCHj6rGip fABPJUZpWQO38CeElQD1hJGoo5r+IaocS7+go+RcKuuDIWcm9QB1p/jAbKMEf5pv5Opa k7eg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=rBoSYPANZn7BlCE4Q9qiz4ZjWER65j9BkgnFUbZNnTA=; b=DQ0iNtVmw6gLLFQMrn+u2sdhGycwPrDERKGOa714HyChbc9iJhomHPMjO/57wX53wK dR3E24h5sl4N36W0DmDXk8dmbPr06KBkdu003MGJfMdAcRhcXQ0s9Mj8tHm2rosUVTYF uMi/KFM31OHnrycxZOrBtNH2ruYT3FYmPe6U299XE/mbeFldmjmVHc/pSteRUgh6CJyh FAk6ExTpnCEvFLZiILURN809+MF/M9S+MaBCawymw4SqyQiYGBC2yk/VmlNyuI5OIcpD qJfOvPi2F9N2RdPRNxZKQoZchOE9ElRm14L/Acf6+bcyJLk1jq94U8vpPJiYv0//Uuuu 7enQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G2jh/Olp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id j12-20020a056a00130c00b004fa87436110si16549617pfu.35.2022.04.06.05.12.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Apr 2022 05:12:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="G2jh/Olp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3C90450F015; Wed, 6 Apr 2022 03:49:48 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238426AbiDFA7e (ORCPT + 99 others); Tue, 5 Apr 2022 20:59:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348797AbiDEJsh (ORCPT ); Tue, 5 Apr 2022 05:48:37 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 120418A308; Tue, 5 Apr 2022 02:35:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id BF882B81C8B; Tue, 5 Apr 2022 09:35:39 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2E8F0C385A6; Tue, 5 Apr 2022 09:35:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151338; bh=XoLi14Jvj17Qay94bQj6Gt2sk1ZC6Zgsi2JS+PwQfOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=G2jh/OlpDQFrdQkpmmhjB75ojN7zIWv90fR3BbuqHyV5TZElICAcvHBkhJgKjD4/A ynWYitW8Ug2C5f9gus/QgPaL37nlzoUPekR6LRLFeAPtkbvwfiX7QWG6s7hsatb+cj ItGJ5k0siyJmgZ7Q3PV7BCLhhmtTm6dwWJEVpDw4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Miaoqian Lin , Robert Foss , Sasha Levin Subject: [PATCH 5.15 380/913] drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe Date: Tue, 5 Apr 2022 09:24:02 +0200 Message-Id: <20220405070351.238496841@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070339.801210740@linuxfoundation.org> References: <20220405070339.801210740@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Miaoqian Lin [ Upstream commit b146e343a9e05605b491b1bf4a2b62a39d5638d8 ] The pm_runtime_enable will increase power disable depth. Thus a pairing decrement is needed on the error handling path to keep it balanced according to context. Fixes: 44cfc6233447 ("drm/bridge: Add NWL MIPI DSI host controller support") Signed-off-by: Miaoqian Lin Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20220105104826.1418-1-linmq006@gmail.com Reviewed-by: Robert Foss Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/nwl-dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/nwl-dsi.c b/drivers/gpu/drm/bridge/nwl-dsi.c index af07eeb47ca0..6e484d836cfe 100644 --- a/drivers/gpu/drm/bridge/nwl-dsi.c +++ b/drivers/gpu/drm/bridge/nwl-dsi.c @@ -1204,6 +1204,7 @@ static int nwl_dsi_probe(struct platform_device *pdev) ret = nwl_dsi_select_input(dsi); if (ret < 0) { + pm_runtime_disable(dev); mipi_dsi_host_unregister(&dsi->dsi_host); return ret; } -- 2.34.1