Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp29963pxb; Tue, 28 Sep 2021 14:39:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy/+HZIxhoRhbfG88tztaAY0lUNp7gca/oqMPAG+fYXeoHw96f+JawoibV7Tg9MRiFDt0wK X-Received: by 2002:a65:6a4b:: with SMTP id o11mr6267069pgu.278.1632865160847; Tue, 28 Sep 2021 14:39:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632865160; cv=none; d=google.com; s=arc-20160816; b=HQTNd9EoXX6FaM2QWg39G/r/pHCdGP+HfKi45vE6hNIJZlIdH5o8YNOXJyoUmjPTgG OJwwqPq+V+W3X2iS0hJIkgeCHgqAhA9MIsesWQu2YQLiXZcY4zYGY7aWrwyqulhkalXh ljIDOMuC9b8OJrUufhNkGICpbZuGgj4m8qW0NDlbbxvRFw0YWo8YBa3hsTrOwBItr8yz 5KDqUbPr1gY8I5Dw7urrXI+/WZ81kQlpw1DenZyyHkSw1jEyfVgTuWua0CUEHeiB4twc s8KeEJAiaKHCp/G9ZYvzhCwlZT3Vu5Mf41mh+g/qKWbjDAXNMBBLeOFZK9Rts1/8PEeu +jMA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=hQX8GmY7T6q1qGlMzAWCdy7ICpLGZnTQF7PCVQGgK8s=; b=aM29Fzd/KDSfI33WvUXW8Nv1B88+WI7+wws9YjD92TBtY9w890KKb/AoZBN29OKpSu kQOMES0b2Gp4LmlnNSrAMCWQ71u/JuC/nUK01Mqr2J45RT8Grgvzt8yD6z0+1KNbNxGf A/wiTlYBHVFL5d1/2+RBLM8CBr89Ds4Z3I4lgJhNn1qYSuqqTwuukU6aPNo5NrS/tI7O 0qO+PLC4DZH442ph3Y0AW2iLYcXS4RAQcJcgDJY/pHwQOv5hBPSavT7KKnSaBBFFbZHQ wMqQroNyEadhVHtqIsIr5P4SmgzGFueligW543FZKlnlGs+lAIaTQHxe34sk3CZfJ37u 6d6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="S/hCXUAp"; 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=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a8si209846pls.53.2021.09.28.14.39.08; Tue, 28 Sep 2021 14:39:20 -0700 (PDT) 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=@chromium.org header.s=google header.b="S/hCXUAp"; 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=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242992AbhI1Vh4 (ORCPT + 99 others); Tue, 28 Sep 2021 17:37:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38988 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242969AbhI1Vhu (ORCPT ); Tue, 28 Sep 2021 17:37:50 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7EBCC061745 for ; Tue, 28 Sep 2021 14:36:10 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id me5-20020a17090b17c500b0019af76b7bb4so2672884pjb.2 for ; Tue, 28 Sep 2021 14:36:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=hQX8GmY7T6q1qGlMzAWCdy7ICpLGZnTQF7PCVQGgK8s=; b=S/hCXUApz8v+EUOzq+kJgswsyDLmDLWGOGe8+KqWZqgpB6uopZbXwSsAQXyn13zg4Y Z3qFD6UkcUsi3aLN/halyD1zf32opsJxPdQW4xmUCxET4iCZmwlzJPcxK76nAeupUudL 5n8BzBLWXkGtKPCUHcFDAqlWt1aCP/7LZH7NQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=hQX8GmY7T6q1qGlMzAWCdy7ICpLGZnTQF7PCVQGgK8s=; b=FfWmOSl1vmTO9H6lLYQKXUWpasp7rl1UmKXiUyu1Yf+qBeF1HEYxmfNgV/jHk6LJaR oIez9XEyCi4HSm7RET1rmWBV+u/BbPoR7tOAaeocObmZMOFMLadxRKjIhxfFBQoLQwcf SO2RTs42Z0wddVvOejV25P4eNXcn4FFSPV7BVm/KdBNp34yCuv/wbkWDhp7Gr4Bcz6X3 WyDHvwj7euR9p54c/VgbzkWkGuObm35bUc0QX3mYUXPDFPzWQmVE4lMajkhcafRW6XEt TC5jqJ35v5WJkMYb6FklZcRR5IcpkYMG9p5FkYulJPZsxVcAZ5EITL9/eAIwuVpYsSKX OPlw== X-Gm-Message-State: AOAM530WrZ0YvLVI48pzuu3UnVm5YPKlID4VqrcxHLZWqbH0+Gm1ZMAO aFZk0HMvxRZNGJTCDZw7wAwe/A== X-Received: by 2002:a17:902:cec2:b0:13b:5916:59e1 with SMTP id d2-20020a170902cec200b0013b591659e1mr6841845plg.76.1632864970399; Tue, 28 Sep 2021 14:36:10 -0700 (PDT) Received: from localhost ([2620:15c:202:201:d7ca:580:94ab:8af8]) by smtp.gmail.com with UTF8SMTPSA id n18sm105073pfa.42.2021.09.28.14.36.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 28 Sep 2021 14:36:09 -0700 (PDT) From: Brian Norris To: =?UTF-8?q?Heiko=20St=C3=BCbner?= Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-rockchip@lists.infradead.org, Sandy Huang , Chen-Yu Tsai , Thomas Hebb , Brian Norris Subject: [PATCH v3 3/4] drm/rockchip: dsi: Fix unbalanced clock on probe error Date: Tue, 28 Sep 2021 14:35:51 -0700 Message-Id: <20210928143413.v3.3.Ie8ceefb51ab6065a1151869b6fcda41a467d4d2c@changeid> X-Mailer: git-send-email 2.33.0.685.g46640cef36-goog In-Reply-To: <20210928213552.1001939-1-briannorris@chromium.org> References: <20210928213552.1001939-1-briannorris@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- (no changes since v1) 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 21c67343cc6c..8ea852880d1c 100644 --- a/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c +++ b/drivers/gpu/drm/rockchip/dw-mipi-dsi-rockchip.c @@ -1434,14 +1434,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.33.0.685.g46640cef36-goog