Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3635788pxb; Mon, 24 Jan 2022 14:04:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJwplpN3aR3R3ICzO8sLE0f+2XyK7UOkJ7A1XhyO97qamD5v6BeDhOkYZppiqVTbfxVibstQ X-Received: by 2002:a63:eb07:: with SMTP id t7mr13121151pgh.112.1643061880616; Mon, 24 Jan 2022 14:04:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643061880; cv=none; d=google.com; s=arc-20160816; b=No2lXAYolCpNrCTKz2Rno/djPs7ImIhDd71bZHBAwYkazDL9JjrIXkta/ZkFw8QJe2 v2MEPKiZPPT+fGNmLGKB+YNSlbVHtFlsCdZilSLHSNnkIEu+ADjnpNSDuD1jebwdMpOz mrNl0Jdx818NT8lYmHGta0rjq5gIJerwGoS5AUVSQ8NGYSOHyAZCk36xdFbylAi4OODy N2rMzogXm+/IwEUlzvKg29bjFsLTG6lxipxWXpvkH33A5JdZujcHiiXW72F/ezUgIv6A WemI8AyQ/r6DxsY2mwEdz0ztZ4NBSKDaW2BMgjNRLqgamY6ar0j1ULmrXJaXoKRdf9+X wzwQ== 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=osUidIR51Zmo8g3JL0QiF9BEo4HVZ9UTEXjKPXPaBfo=; b=kODeAoemRXdnCPiol26US5SEB/Q0u2kfLo654RJVB+fyOpYyZe8l9XA94zP94QF0fK Y2c3UVA7xOofvEICdU49xmLY+oq9jSpU5hvU5OH3HzgxL/qUAvQAZl1OpX0gWwkWItkp 5ZxNocwSJG8ppOZ9HJc4TxPWyhYslu7wEX3vrseSWv6XhPBCIe/z/sMU7i2Ck6WEqli2 OF3HnQoMFTo2sWByJAI0e/G0+YzFRMXkOiuhwn0cpbMKzngRyknrkZ1ofuXSCZJtIvlH hXyP9RAAUSNCR+Msu/xcoBCp6PXgNmQs8pQQZ+lyF08Ey15IDSqf6mOmBfcMP7v9rAdA W5pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=xB9rUZxC; 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 10si14704578pgc.813.2022.01.24.14.04.28; Mon, 24 Jan 2022 14:04:40 -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=xB9rUZxC; 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 S1576397AbiAXVxd (ORCPT + 99 others); Mon, 24 Jan 2022 16:53:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50956 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1450663AbiAXVVI (ORCPT ); Mon, 24 Jan 2022 16:21:08 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30E92C0604D4; Mon, 24 Jan 2022 12:15:23 -0800 (PST) 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 C420E61371; Mon, 24 Jan 2022 20:15:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A0A10C340E7; Mon, 24 Jan 2022 20:15:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055322; bh=3i3CBiVMZBkewYtFO/rlHuYcQ0pOBSw9avcWBceQj+o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xB9rUZxCoQ99vJF3gy2HrbUF0h8pV9A3Ro4W0Yy9fYTW1pQeYzaHjL/1vZXYN7P+v NM87UNMmJe52T6amNBztL57njzd7ckkBi+AvCjCxM97P+Moo5qS80SgAH0PP41l+0S CaP9B6Vge25GIS2q4DPhTyofhriTodzHrYDQ/DjM= 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.15 081/846] drm/rockchip: dsi: Fix unbalanced clock on probe error Date: Mon, 24 Jan 2022 19:33:18 +0100 Message-Id: <20220124184103.788290244@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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(-) diff --git a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c index a2262bee5aa47..b7eaffafbccbc 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1397,14 +1397,10 @@ static int dw_mipi_dsi_rockchip_probe(struct platform_device *pdev) 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) -- 2.34.1