Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3694475pxb; Mon, 24 Jan 2022 15:34:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJy4PVrZ4PIq5ahipQuAZbxEw3EH6+qn5xvgyi9PEDp3DtjVtguf+c/fLM57Baf+yjXYaQ1q X-Received: by 2002:a17:903:2451:b0:14b:60ca:edc8 with SMTP id l17-20020a170903245100b0014b60caedc8mr4105697pls.9.1643067274055; Mon, 24 Jan 2022 15:34:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643067274; cv=none; d=google.com; s=arc-20160816; b=MQgcJljVmAQCbAwhv0BXmNSoBBUVlnDmw9kes0DO+UpSP+OcElQxOyr6IcASVquqPl tSnWPyh7PguGIMuzYHQv7lr2N/Hz+Eu95ROXOfM3B5LOpK+B9U9UdDTeSXuZy7TeYwRt TdWkLAPpWP1sF6Z2fFst6m3T28S63Vfp+hiPW6Njc2+CSpMFjxLwQuGM8gzCfX89PAvt j+0PuOAwPs2LRXqIUcaAJT771Te9CsRyHYZy3sUKpiMqFRtgaNcCJ+s1XePXpJ8l3WJ/ yC1kjqn7qfL4g8nq2SK8Pr0ddfMNyT0F3jJ9tvYPSgutPqmyCvrSV/5AsRFLTFfJxCNe 2wTQ== 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=A6p4kUbOy1GM0WDED+RDgJ3z4CWl9dTetbOKabGj8CI=; b=Gwgc8gytCzSti8js4ETpI7waQ9JYsmL2YMkSzJGekeYTdDQGExYJU1HOsO4GCGfrJ8 xGjDdJFeIzrzRrglSlmqeiUMw0j56EtC96Ze/jEmGCAuT654onFF5qqyfEWfzXyT0+9O LDM3tY/cjwMoeqaNbcCcbMxubcuVefO0RYPDf8llvQ4lt6dBZ3ymNSDJRpmLDjuwEAN+ kymmVpfv+wOJuXPp60mVSob1lJ6kIYi5WFceVEr7FN3I77bRmQlTetnmMLFyzihiVn1h d+JxmdcQY3G9X6ny0NEDBTY+edk8AVe7bwUup0UrMqvRGgOR4/jkgYkOxSpjh7VXShbG 9ExA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=HDOyGQqM; 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 oc10si691144pjb.183.2022.01.24.15.34.21; Mon, 24 Jan 2022 15:34:34 -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=HDOyGQqM; 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 S1383498AbiAXXXa (ORCPT + 99 others); Mon, 24 Jan 2022 18:23:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40048 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1835195AbiAXWfs (ORCPT ); Mon, 24 Jan 2022 17:35:48 -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 87B4BC0D9435; Mon, 24 Jan 2022 12:58:44 -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 28B006135A; Mon, 24 Jan 2022 20:58:44 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 041C5C340E5; Mon, 24 Jan 2022 20:58:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057923; bh=cMFxYRYp6w8MatZ7/I2lqkhrIc1yyjMahxu07RfdL3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=HDOyGQqMPI94GYAYDo24Mq1s/AuzS2X6bbzOpMdtyQkx7QbyMTTWI1MJvwP+S4+ua 8axn+qHDmHKIwbMvGL9zCe7Rg4Bm13lhU138ujZc2oYxkTY/0ad84tVzKdsH0IIDne pb+OS2I4nAkaVW1oQ3aV0GqC9XC9kGT7CV60YTLY= 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.16 0090/1039] drm/rockchip: dsi: Fix unbalanced clock on probe error Date: Mon, 24 Jan 2022 19:31:19 +0100 Message-Id: <20220124184128.187650856@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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 @@ -1433,14 +1433,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)