Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp719977pxb; Tue, 5 Apr 2022 20:13:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzUv519maA+BSp+wScHfFxiVLmK88u1xY5IQjZ99HzCy/IhDp4NizYvYkP/eOrt4aqxRiKi X-Received: by 2002:a63:340b:0:b0:398:dad:c396 with SMTP id b11-20020a63340b000000b003980dadc396mr5279651pga.574.1649214828446; Tue, 05 Apr 2022 20:13:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649214828; cv=none; d=google.com; s=arc-20160816; b=tszD48XCsma+6M/wZyGjSRspVyQ2X41VyQqiB1eLo4l3tdVU3ZpXbTpERMMoBMVYLu nEV7/CJ0mRit6/iPG74HyeZPXkuueiqZ89xziYUswnlF5x4Z0fz7aoOy53zfnuMxB2go 7WW8FVEKvqa7/O80gbGaXlWdRcRYhkMGvM8xZ4QjMG5VZ6dyUBdHm9KD3pvrsRij6MIt 2+b0MNtZv2uLb5IIRNxNHlG9ZWhmND00hgazan8zlhhUckE0B52HlV78SVKmac446IIu mEsRkngwRrJW6z97NR9kK7s3Re2IQQVlzZvt9Tvv8wvoDWLJ1hFTQstmb6oLFteTgppr pseg== 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=Nv1xbxgyhNyz8pyvV76NsX9joWyUpTD9L1OD0I6xDw0LJL3auguSVU2663YAWVmIcQ JQuQDZ8HTSuK3jK/qDrgrn3vHz4N9BhSpNXBF0PkZJemU8tA0HDA6ZOBlESByxSS4GrI Oi6lOlzVveIOl6TDvwG/xRPFzB4dc0LHG3nZMtw1NvIUYoTv7iEYtn8eX3zvaytwThBA JsRsxd1TZhQamk/A6h2Gdkb3Vct9pilWLgC/qNcyWBCKFDFuEAzcUeEDHNO06Gg7nD+q Bsujxl0xten6eHy6QlQ+RIZ0+gUenhhKEQtOHYpJfHXqDydrdngQ2ZnELYS0lPZo9mmb Pf3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=orwezfak; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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. [23.128.96.19]) by mx.google.com with ESMTPS id pf1-20020a17090b1d8100b001bf24ef7511si3871278pjb.125.2022.04.05.20.13.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 20:13:48 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=orwezfak; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 914EF2F0B08; Tue, 5 Apr 2022 19:53:11 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243584AbiDEMVW (ORCPT + 99 others); Tue, 5 Apr 2022 08:21:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245014AbiDEIxB (ORCPT ); Tue, 5 Apr 2022 04:53:01 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0507ECDD; Tue, 5 Apr 2022 01:49:29 -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 dfw.source.kernel.org (Postfix) with ESMTPS id 9767360FFB; Tue, 5 Apr 2022 08:49:28 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6B02C385A0; Tue, 5 Apr 2022 08:49:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649148568; bh=XoLi14Jvj17Qay94bQj6Gt2sk1ZC6Zgsi2JS+PwQfOI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=orwezfakQtyGZw2sgPi68j8gXDoZp6jJVyFGy4CA/ilzWn3b29hc+1XSy5CQovqPh rny3I5VhZW2SqUOxDf70IChreMZ2AR4h+dv05C+EJ8zNFUOOY46hNGBGgG3oxgWN42 qSodbzr1iWnLD6B/6SmzluEiVoFB+Qy6PrjpS57s= 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.16 0403/1017] drm/bridge: nwl-dsi: Fix PM disable depth imbalance in nwl_dsi_probe Date: Tue, 5 Apr 2022 09:21:56 +0200 Message-Id: <20220405070406.249577530@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070354.155796697@linuxfoundation.org> References: <20220405070354.155796697@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