Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3572003pxb; Mon, 24 Jan 2022 12:31:15 -0800 (PST) X-Google-Smtp-Source: ABdhPJxjspyEm3PqGYcnoAY4gSIYOc+B2d0OM8ZSSV+3l2TO1grO0r3EyqDr/QatIDVrAkybAFFQ X-Received: by 2002:a17:903:41c8:b0:14a:66f2:b16e with SMTP id u8-20020a17090341c800b0014a66f2b16emr15663096ple.98.1643056274869; Mon, 24 Jan 2022 12:31:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643056274; cv=none; d=google.com; s=arc-20160816; b=THCT/sLzDFrmv65koG4aJIQ5L2QzRYUpiM1xpAUIKcA8D/ppuF3eBBiDMqnnREEwHe ycTytGXNKuCXaGQeqG7T/Oh844D9aDo4yCcpFzePZNv7uaKBnUXLqzJpFoHPiBh0JAjM k2FGvC4COjiSGumbx+M1YPk4e4HLdcU7DYviakTewHGD8NSoQ52+yhMiMdtO09RHiANS ZAtC9UfaNFpML1wT6BDcZt9pRy64rwSAIN9ABVeQ/ZZh2oNPoy0I6Mq3l9LjeIlBgrHF HZUIRhN/Ns+L8hsxRafkHjHrdXe6eyJReCcBDlXdaBlvhDlxOQfwME2fX49t2bCNTnAh b/sw== 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=2TcNQ4EBQBRQHeRdtFDExvp/xhB1foeA2gfvOQegHdw=; b=QXdoTd1vw73I2MynIdvxJonqjkUYpfpBqESP79R64THqGJ7SM0GwzPNGQTr0ELhO7j q3lnAmyh/6ahvJ7sKY55RP+cksPKUN/BE57P96dbdIiEuzhnJHW4Ng+zyTxP/UJzau+g jG9s1D5LE2YvP/n/QvSgyGC+UsUh74ruYn5QswSumxBcbY6e4gBCOJf+GyNmFfkrqCl/ 6GKYDSvI1V9ACKREfjW+g6JrrWNH6qQ5btYZRqcJMuaMk8e/MC3qAbIeXqsV7CiSte2z YNrWuZoKJS3YyiobYC+QxT3v2I6s09H4b5Nu8W8bZgQ/fkgvloHLJs5qOf8hJSbDKS0E TONg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oLsZQQBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si3851808plg.343.2022.01.24.12.31.02; Mon, 24 Jan 2022 12:31:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=oLsZQQBr; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353458AbiAXTep (ORCPT + 99 others); Mon, 24 Jan 2022 14:34:45 -0500 Received: from dfw.source.kernel.org ([139.178.84.217]:53838 "EHLO dfw.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351195AbiAXT0K (ORCPT ); Mon, 24 Jan 2022 14:26:10 -0500 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 D2C9E60BB9; Mon, 24 Jan 2022 19:26:08 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A3B38C340E5; Mon, 24 Jan 2022 19:26:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643052368; bh=DU3CIw3p50KSKQOPg73wZG2FU2DsWzcnpkARL7xOBgw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=oLsZQQBrFp/dTzspCjDI3uyxslHknsdGV9FbJhmZdRRCq+hgrE3wTyG8KFHFaLGfC xuJ/r/AV/CdChrQ+YnVwFCxbeOD3Yq+oPOt1ZeD1U0kD1TamkzrU9M9McbdEXmiTfP HmsX2IoLQqK8jvbWfyU8Zk03R3im5PjHKhdi3yGI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Brian Norris , Chen-Yu Tsai , "=?UTF-8?q?N=C3=ADcolas=20F . =20R . =20A . =20Prado?=" , Heiko Stuebner , Sasha Levin Subject: [PATCH 5.4 036/320] drm/rockchip: dsi: Fix unbalanced clock on probe error Date: Mon, 24 Jan 2022 19:40:20 +0100 Message-Id: <20220124183954.978288662@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124183953.750177707@linuxfoundation.org> References: <20220124183953.750177707@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Brian Norris [ Upstream commit 251888398753924059f3bb247a44153a2853137f ] Our probe() function never enabled this clock, so we shouldn't disable it if we fail to probe the bridge. Noted by inspection. Fixes: 2d4f7bdafd70 ("drm/rockchip: dsi: migrate to use dw-mipi-dsi bridge driver") Signed-off-by: Brian Norris Reviewed-by: Chen-Yu Tsai Tested-by: NĂ­colas F. R. A. Prado Signed-off-by: Heiko Stuebner Link: https://patchwork.freedesktop.org/patch/msgid/20210928143413.v3.3.Ie8ceefb51ab6065a1151869b6fcda41a467d4d2c@changeid Signed-off-by: Sasha Levin --- drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1023,14 +1023,10 @@ static int dw_mipi_dsi_rockchip_probe(st if (ret != -EPROBE_DEFER) DRM_DEV_ERROR(dev, "Failed to probe dw_mipi_dsi: %d\n", ret); - goto err_clkdisable; + return ret; } return 0; - -err_clkdisable: - clk_disable_unprepare(dsi->pllref_clk); - return ret; } static int dw_mipi_dsi_rockchip_remove(struct platform_device *pdev)