Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp681657pxb; Tue, 5 Apr 2022 18:34:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJH/58RZGhAYp+YzHA6sZl5VXXvJ1TC1XJLRfgq67WGgthEjcD1FGh4lG9hAVYramEUZK/ X-Received: by 2002:a05:6a00:16cd:b0:4e1:366:7ee8 with SMTP id l13-20020a056a0016cd00b004e103667ee8mr6333255pfc.9.1649208852620; Tue, 05 Apr 2022 18:34:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649208852; cv=none; d=google.com; s=arc-20160816; b=zqADNrplUF750WwbLHOcYH0+Z4s8KP7BojGVUL82VmFnim2IY1gH4nsLdcmzAdtUca Cqp81Rte+Xry4Yvh+75URMpRuxKnDBQ5BYjHThS4MyNegf0gijV1cPVvn9zv74q5sL0P LBmd26Rq4CI6DMibXvihJ1o5CQteNJ4uVE/X7ZZt12Cv5uAdC7hf1qlN1BvuvhYcBC8f Q04Z1+jhA+cuGsINU9X1lUdOHyH7hb5RV58030QzxEABbw7fZwVdWuXWqIczOUbefVL2 w0IXeQCeDwd3TPTIgkV7sfqgU2tjg1ilemw733eSBFLPWKmXzh5jj2Z46uV9fooXkY0q +lAw== 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=YkyEIPupKP31gjSyr5BZ0HKK3bJNNGTqXkZrXtV1u3r0OEymfIiqUvCK5GBqxAqMZP 87qpkNwY2UAQZPcCsqPxAxAHdAPQGU9pK1eRtIkwXC2mxbEED9peDuvnw2st7xD1h1jI 2DYdhnnj2Jk30oQDXDTnyV5zijPeKgstflBnIf0kipUtzm7U0z2YyqSHI667fz07qxm7 t3rlfCxF5HHwpA8aQnjt26VTsttQ1cntFxzWraUrFThhpAffcB7IDj5m3eACigWsP4HJ V6qF/FNQO6RE/p7IokU9NZkcVh4NsHP9LqsC58KO85BYuYMjAi4gK1m2JG4WB0LxTjti cuyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=12Wtblje; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z23-20020aa79497000000b004fa3a8e0066si15367749pfk.285.2022.04.05.18.33.58; Tue, 05 Apr 2022 18:34:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=12Wtblje; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231951AbiDEIdt (ORCPT + 99 others); Tue, 5 Apr 2022 04:33:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53734 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236330AbiDEICD (ORCPT ); Tue, 5 Apr 2022 04:02:03 -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 BA8DE49FB3; Tue, 5 Apr 2022 01:00:05 -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 76066B81B16; Tue, 5 Apr 2022 08:00:04 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D6284C340EE; Tue, 5 Apr 2022 08:00:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1649145603; bh=zNbstIO7fTReljmVQ05A1unZPeHQpqkHrt0QzvkAAfA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=12WtbljeNdb4uRS9U1cFjunzmCpAXBKc6gyAsQ8HPPUAnTYdyYmc548dbpAzCV1zW mJFS+jlg/Q8ZsrHwOmx0ecj/+htiGU+iZjS2rmNHmL5u0b3+8oXFO0bLT0bY2Rvpxs KdGRAWPTpNylaU9JetuHlme0vGT/dRg7IwiC4kFc= 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.17 0426/1126] drm/bridge: Add missing pm_runtime_disable() in __dw_mipi_dsi_probe Date: Tue, 5 Apr 2022 09:19:33 +0200 Message-Id: <20220405070420.129574971@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405070407.513532867@linuxfoundation.org> References: <20220405070407.513532867@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=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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