Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp741021pxb; Tue, 5 Apr 2022 21:14:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzp4tfjpl9chbIFNLhdvNPKXsiY5Cy48lLGGpbY+A0pb6TPl2PjY3I1JJoZ9e5NPBdfF2Od X-Received: by 2002:a63:d905:0:b0:399:370e:eee1 with SMTP id r5-20020a63d905000000b00399370eeee1mr5663915pgg.53.1649218488085; Tue, 05 Apr 2022 21:14:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649218488; cv=none; d=google.com; s=arc-20160816; b=zgkFx/8lSzJVqkFmU72DsmWjwKRZK1+Nqfj6KjlPbwSyel3lrC7qnlvNkUjvdJ9bwa yNbZ/7kGOC4EHGh2m55UL8XrEQt49vyQEROh+v9qgyWUmVuzUnXKcuTO4+R7neR0eeA4 mXwD3HB26XsD3oEberIqmNd6Wv0tBnjbP0MJBSHnyaxKdCQbUw0NaYvUml3ZKH+wPisc tzX75iAVWblBSA10xS52LqWW5sxix14gt3MgcSc0DXkxet7jBHqC/4jiV49o7kXsrxCy kIOshOpjATIfaSx1aMc3uDAbbU0ujh3kpADwL1URH/DajakKKWyq9Mxo6PBSleeSlzD1 J4Tg== 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=49wE5PWOYTj01sOpzy7i5oseKXR+SNcotUn7THdN2I0=; b=PLAlzE5Dk3L/59birlCGVczhegFf3JvAhxtRinKTuAIsWqOa3rRWBLsQJ9vFWajCPc ZLC5XqQkrjYaUoUNuSyFhob2hgmDIGUign0NE5tv1kt9MAMosmxXWy+YO6NBtIyla9zn tnBlMc7DB8ytsCdXDAgekkdoIowGvH/ode9sHyYam3ndtjdcQuZR0h+Glp0PG7OCEu+W 0qQXJUrCJQycMBgMM3u54wUODmajIKqOHswjQGEW7NVuWsRtKCG97173Qov7zP9u0aeU 4VUJlXPLsDctU273vhcaVPwSgh/3tkrDMpY7wU5egUZ+vlq+njlJUxWqAjQ/oe84Qwc0 fcaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=IPwnZiaY; 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 y7-20020a170902700700b00153b32092adsi13234003plk.158.2022.04.05.21.14.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 21:14: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=IPwnZiaY; 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 64D863C438F; Tue, 5 Apr 2022 21:07:33 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1380681AbiDEVhV (ORCPT + 99 others); Tue, 5 Apr 2022 17:37:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348795AbiDEJsg (ORCPT ); Tue, 5 Apr 2022 05:48:36 -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 8035D88B17; Tue, 5 Apr 2022 02:35:38 -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 2B3E8B81B93; Tue, 5 Apr 2022 09:35:37 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E4E6C385A0; Tue, 5 Apr 2022 09:35:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649151335; bh=zNbstIO7fTReljmVQ05A1unZPeHQpqkHrt0QzvkAAfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=IPwnZiaYu3HTk5n1jz6RxY2XkkC4jdBx5Aqc4W+77SteTndKiO2TRSowkJTbb+VBx h7Fr2skZOQvKAsKwH868NTlyZAIFTkzvPfarIO4R9kx8i5Qgc+jTwlk1N/7SlHoint t1CoE6EVw9XGSa2QEVzrD0pYxvFsBg0vAWF9qRNM= 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 379/913] drm/bridge: Add missing pm_runtime_disable() in __dw_mipi_dsi_probe Date: Tue, 5 Apr 2022 09:24:01 +0200 Message-Id: <20220405070351.209523550@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 96211b7c56b109a52768e6cc5e23a1f79316eca0 ] If the probe fails, we should use pm_runtime_disable() to balance pm_runtime_enable(). Add missing pm_runtime_disable() for __dw_mipi_dsi_probe. Fixes: 46fc51546d44 ("drm/bridge/synopsys: Add MIPI DSI host controller bridge") Signed-off-by: Miaoqian Lin Signed-off-by: Robert Foss Link: https://patchwork.freedesktop.org/patch/msgid/20220105104113.31415-1-linmq006@gmail.com Reviewed-by: Robert Foss Signed-off-by: Sasha Levin --- drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c index e44e18a0112a..56c3fd08c6a0 100644 --- a/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c +++ b/drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c @@ -1199,6 +1199,7 @@ __dw_mipi_dsi_probe(struct platform_device *pdev, ret = mipi_dsi_host_register(&dsi->dsi_host); if (ret) { dev_err(dev, "Failed to register MIPI host: %d\n", ret); + pm_runtime_disable(dev); dw_mipi_dsi_debugfs_remove(dsi); return ERR_PTR(ret); } -- 2.34.1